Changeset 111

Show
Ignore:
Timestamp:
06/28/07 11:19:17 (2 years ago)
Author:
mbailey
Message:

bugfix :setup_svn no longer stomps on :repository config value

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-7-stable/lib/deprec/recipes/svn.rb

    r110 r111  
    5555  end 
    5656   
    57   # XXX sudo apt-get install swig python-dev 
    58   # XXX requires apache already installed... 
     57  # I'd like to be able to construct :repository if it's not explicitly set 
     58  # However we're grabbing values from it in the lines above so it would get a bit recursive 
     59  # set :repository, lambda { "#{svn_scheme}://#{scm_host == 'localhost' ? '/' : user+'@'+scm_host}#{repos_path}" } 
     60   
     61  # XXX requires apache to have already been installed... 
    5962  desc "install Subversion version control system" 
    6063  task :svn_install, :roles => :scm do 
     
    131134  desc "Import project into subversion repository." 
    132135  task :svn_import, :roles => :scm do  
    133     repository ||= "#{svn_scheme}://#{scm_host == 'localhost' ? '/' : user+'@'+scm_host}#{repos_path}"  
    134136    new_path = "../#{application}" 
    135137    tags = repository.sub("trunk", "tags")