Method: Capistrano::Deploy::SCM::Cvs#handle_data
- Defined in:
- lib/capistrano/recipes/deploy/scm/cvs.rb
#handle_data(state, stream, text) ⇒ Object
Determines what the response should be for a particular bit of text from the SCM. Password prompts, connection requests, passphrases, etc. are handled here.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/capistrano/recipes/deploy/scm/cvs.rb', line 81 def handle_data(state, stream, text) logger.info "[#{stream}] #{text}" case text when /\bpassword.*:/i # prompting for a password "#{variable(:scm_password) || variable(:password)}\n" when %r{\(yes/no\)} # let's be agreeable... "yes\n" end end |