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

Changeset 7694

Show
Ignore:
Timestamp:
09/30/07 14:50:32 (1 year ago)
Author:
minam
Message:

Use the --password switch for subversion by default, but add :scm_prefer_prompt

Files:

Legend:

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

    r7393 r7694  
     1*SVN* 
     2 
     3* Use the --password switch for subversion by default, but add :scm_prefer_prompt variable (defaults to false) [Jamis Buck] 
     4 
     5 
    16*2.0.100 (2.1 Preview 1)* September 1, 2007 
    27 
  • tools/capistrano/lib/capistrano/recipes/deploy/scm/subversion.rb

    r7384 r7694  
    8282        private 
    8383 
    84           # If a username is configured for the SCM, return the =command-line 
     84          # If a username is configured for the SCM, return the command-line 
    8585          # switches for that. Note that we don't need to return the password 
    8686          # switch, since Capistrano will check for that prompt in the output 
     
    9090            return "" unless username 
    9191            result = "--username #{variable(:scm_username)} " 
     92            result << "--password #{variable(:scm_password)} " unless variable(:scm_prefer_prompt) 
    9293            result << "--no-auth-cache " unless variable(:scm_auth_cache) 
    9394            result