Created
May 17, 2012 02:58
-
-
Save wnuqui/2715883 to your computer and use it in GitHub Desktop.
prompt in rake task definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _thanks_ to where I saw this | |
task :prompt do | |
STDOUT.puts "Prompt? " | |
prompt = STDIN.gets.chomp | |
STDOUT.puts "Cool! Prompt is #{prompt}." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment