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

Update "ask" example in README.md

The actual method definition for the ask() method accepts a key and a default value for that key, not a key and question text.
This commit is contained in:
Arron Washington 2013-11-18 17:13:53 -05:00
parent 5e1dba2a23
commit 18f946b249

View file

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