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

Fix ask example in readme per issues #768 and #747

This commit is contained in:
Daniel O'Connor 2013-11-05 13:22:27 -05:00
parent fca55c25ff
commit 0af19935f6

View file

@ -126,9 +126,9 @@ This method is widely used.
``` ruby
desc "Ask about breakfast"
task :breakfast do
breakfast = ask(:breakfast, "What would you like your colleagues to bring you for breakfast?")
ask(:breakfast, "What would you like your colleagues to bring you for breakfast?")
on roles(:all) do |h|
execute "echo \"$(whoami) wants #{breakfast} for breakfast!\" | wall"
execute "echo \"$(whoami) wants #{fetch(:breakfast)} for breakfast!\""
end
end
```