2x2itq
Last Updated: February 25, 2016
·
4.462K
· sadfuzzy
Why s

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=> " }
Say Thanks
Respond

1 Response
Add your response

6180
Beer avatar

Good tip! But, it always request for the input even if I'm running a cap -vT :(

over 1 year ago ·