From 0af19935f659776be55f2946e7ca40e56d5eeb02 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Tue, 5 Nov 2013 13:22:27 -0500 Subject: [PATCH] Fix ask example in readme per issues #768 and #747 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23a99ddb..9a1593bb 100644 --- a/README.md +++ b/README.md @@ -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 ```