You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param \de\codenamephp\deployer\base\task\iTask|callable|array|null $body Callable task, array of other tasks names or nothing to get a defined tasks
* Registers a task with deployer. The task itself is used as body and the name is the identifier that the task is registered with. Implementations should
40
+
* support the iTaskWithDescription interface and add the description as well if the task has the interface.
41
+
*
42
+
* @param iTaskWithName $task The task to register with deployer
* Licensed under the Apache License, Version 2.0 (the "License");
6
+
* you may not use this file except in compliance with the License.
7
+
* You may obtain a copy of the License at
8
+
*
9
+
* http://www.apache.org/licenses/LICENSE-2.0
10
+
*
11
+
* Unless required by applicable law or agreed to in writing, software
12
+
* distributed under the License is distributed on an "AS IS" BASIS,
13
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+
* See the License for the specific language governing permissions and
15
+
* limitations under the License.
16
+
*/
17
+
18
+
namespacede\codenamephp\deployer\base\task;
19
+
20
+
/**
21
+
* Interface to automatically add a description for the task when used with our custom registerTask() method. This is what you would add with the desc() method
22
+
*/
23
+
interface iTaskWithDescription extends iTask {
24
+
25
+
/**
26
+
* Gets the description of the task that will be shown in the task list. This is what you would pass to the desc() function.
self::assertEquals('Copies the media from one remote to another. The copy is done using rsync directly between the hosts.', $this->sut->getDescription());
0 commit comments