Skip to content

Instantly share code, notes, and snippets.

@jbodah
Created June 19, 2015 17:39
Show Gist options
  • Save jbodah/75c9d8726fd8992735bf to your computer and use it in GitHub Desktop.
Save jbodah/75c9d8726fd8992735bf to your computer and use it in GitHub Desktop.
prompt for input
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