Skip to content

Commit

Permalink
Mention retrieval of defined tasks
Browse files Browse the repository at this point in the history
This is useful for reconfiguring tasks in 3rd party recipes.

See deployphp/deployer#1008
  • Loading branch information
mbrodala authored Feb 13, 2017
1 parent 956f63a commit 5daefb5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ task('notify', function () {

> Note what calling `run` inside that task will have same effect as calling `runLocally`.
### Reconfigure

You can reconfigure tasks, e.g. provided by 3rd part recipes by retrieving them by name:

```php
task('notify')->onlyOn([
'firstserver',
'thirdserver',
]);
```

### Using input options

You can define additional input options and arguments, before defining tasks:
Expand Down

0 comments on commit 5daefb5

Please sign in to comment.