Created
June 19, 2015 17:39
-
-
Save jbodah/75c9d8726fd8992735bf to your computer and use it in GitHub Desktop.
prompt for input
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
| TerminalNotifier.notify("Awaiting input for deploy: #{filter}") | |
| print 'Continue with deploy? (y/n): ' | |
| res = $stdin.gets.strip | |
| raise unless res == 'y' | |
| # Hide input | |
| print "Please enter password for #{user}: " | |
| password = STDIN.noecho(&:gets).chomp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment