1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Update ´invoke()´ docu in README

Update following user report in #571
This commit is contained in:
Ain Tohvri 2014-03-03 01:05:48 +01:00
parent 85b090ab67
commit 31eb508dc6

View file

@ -6,7 +6,7 @@
## Support
Need help with getting Capistrano up and running? Got a code problem you want to get solved quickly?
Need help with getting Capistrano up and running? Got a code problem you want to get solved quickly?
Get <a href="http://codersclan.net/?repo_id=325&source=link">Capistrano support on CodersClan.</a>
@ -126,12 +126,14 @@ end
The final way to call out to other tasks is to simply `invoke()` them:
``` ruby
task :one do
on roles(:all) { info "One" }
end
task :two do
invoke :one
on roles(:all) { info "Two" }
namespace :example do
task :one do
on roles(:all) { info "One" }
end
task :two do
invoke "example:one"
on roles(:all) { info "Two" }
end
end
```