Created
June 5, 2016 13:36
-
-
Save keernel/f706d1ddfb2db08c1d32e4a9932eb1ea to your computer and use it in GitHub Desktop.
prompt confirmation on rake tasks
This file contains hidden or 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
| STDOUT.puts "Do you wish to clean your current database? \n Please respond with 'yes' or 'no' (or 'y' or 'n'). \n" | |
| answer = STDIN.gets.chomp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment