Capistrano prompt for input or password
To prompt for user input:
set(:user) { Capistrano::CLI.ui.ask "Username=> " }
If you want an immediate prompt, use:
set(:user, Capistrano::CLI.ui.ask "Username=> ")
Password:
set_default(:mysql_password) { Capistrano::CLI.password_prompt "MySQL Password=> " }
Written by Denis Savitskiy
Related protips
1 Response
Good tip! But, it always request for the input even if I'm running a cap -vT
:(
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Prompt
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#