Method |
Description |
|
__construct ( string $name, callable $callback = null ) |
|
|
addAfter ( string $task ) |
|
|
addBefore ( string $task ) |
|
|
desc ( string $description ) : Task |
Set task description. |
|
getAfter ( ) : string[] |
Get after tasks names. |
|
getBefore ( ) : string[] |
Get before tasks names. |
|
getDescription ( ) : string |
|
|
getName ( ) : string |
|
|
getOnlyForStage ( ) : array |
|
|
getOnlyOn ( ) : array |
|
|
isForStages ( $stages ) : boolean |
Decide to run or not to run for these stages. |
|
isOnServer ( string $serverName ) : boolean |
Decide to run or not to run on this server. |
|
isOnce ( ) : boolean |
|
|
isPrivate ( ) : boolean |
|
|
once ( ) : Task |
Set this task local and run only once. |
|
onlyForStage ( array | string $stages = [] ) : Task |
Indicate for which stages this task should be run. |
|
onlyOn ( array | string $servers = [] ) : Task |
|
|
run ( Deployer\Task\Context $context ) |
Run task. |
|
setPrivate ( ) : Task |
Mark task as private. |
|