-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prompt for command-line input #30
Comments
I'm not sure how this can fit into:
All you need is probably puts 'Enter MySQL database password: '
passwd = gets.strip |
The highline gem works well, as in the following example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the set of deploy scripts I currently use for most Rails projects I have Capistrano prompt for a password to insert into the database.yml file that will go on the server.
Here's the tutorial I originally followed: http://www.simonecarletti.com/blog/2009/06/capistrano-and-database-yml/ and here's the Cap command:
Capistrano::CLI.ui.ask("Enter MySQL database password: ")
Before attempting to build a helper method like this for Mina I figured I'd just ask if anyone else has attempted this or has other preferred methods of getting passwords into config files.
(By the way, a big thanks to the folks who have been working on Mina. It's such a clean and well-documented library in comparison with Capistrano!)
The text was updated successfully, but these errors were encountered: