We Recommend

Beginning Ruby: From Novice to Professional Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.


Posted By

therobot on 10/28/08


Tagged

deployment capistrano


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

webstic


Ask for a password in a Capistrano deployment


Published in: Ruby 


  1. set(:scm_username) { Capistrano::CLI.ui.ask("Type is your svn username: ") }
  2. set(:scm_password){ Capistrano::CLI.password_prompt("Type your svn password for user #{scm_username}: ") }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: therobot on October 28, 2008

This sets the variables scmusername and scmpassword you can do the same with user, or other capistrano variables.

You need to login to post a comment.