Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8754

Show
Ignore:
Timestamp:
01/30/08 05:56:23 (7 months ago)
Author:
minam
Message:

If subversion asks for a password, prompt as a last resort (closes #9885)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r8753 r8754  
    11*SVN* 
     2 
     3* If subversion asks for a password, prompt as a last resort [Jamis Buck] 
    24 
    35* Use checkout --lightweight for bzr checkout, instead of branch [michiels] 
  • tools/capistrano/lib/capistrano/recipes/deploy/scm/subversion.rb

    r7869 r8754  
    7373          when /\bpassword.*:/i 
    7474            # subversion is prompting for a password 
    75             "#{variable(:scm_password) || variable(:password)}\n" 
     75            "#{scm_password_prompt}\n" 
    7676          when %r{\(yes/no\)} 
    7777            # subversion is asking whether or not to connect 
     
    108108            variable(:scm_verbose) ? nil : "-q" 
    109109          end 
     110 
     111          def scm_password_prompt 
     112            @scm_password_prompt ||= variable(:scm_password) || 
     113              variable(:password) || 
     114              Capistrano::CLI.password_prompt("Subversion password: ") 
     115          end 
    110116      end 
    111117