Last Updated: May 15, 2019
·
4.917K
· sadfuzzy

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=> " }

1 Response
Add your response

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

over 1 year ago ·