Skip to content

Instantly share code, notes, and snippets.

@pixelmatrix
Created July 22, 2010 19:34
Show Gist options
  • Save pixelmatrix/486467 to your computer and use it in GitHub Desktop.
Save pixelmatrix/486467 to your computer and use it in GitHub Desktop.
Creating a prompt in a Rake Task
require "rake"
task :say_hi do
puts "What's your name?"
name = $stdin.gets.chomp
puts "Hi #{name}!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment