Skip to content

Instantly share code, notes, and snippets.

@vdv
Created April 25, 2012 12:01
Show Gist options
  • Save vdv/2489231 to your computer and use it in GitHub Desktop.
Save vdv/2489231 to your computer and use it in GitHub Desktop.
# Prompt to make really sure we want to deploy into prouction
puts "\n\e[0;31m ######################################################################"
puts " #\n # Are you REALLY sure you want to deploy to production?"
puts " #\n # Enter y/N + enter to continue\n #"
puts " ######################################################################\e[0m\n"
proceed = STDIN.gets[0..0] rescue nil
exit unless proceed == 'y' || proceed == 'Y'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment