Sha256: b485494374e1067da095d61be44ea2d74373b22d4915a8620737909001fe9ae6
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
###################################################################### # SUBVERSION DEFAULTS # ###################################################################### Capistrano::Configuration.instance(:must_exist).load do extend ChickenSoup namespace :capabilities do namespace :defaults do desc "[internal] Sets intelligent version control defaults for deployments" task :svn do set :scm, :subversion # _cset :github_account, ENV["USER"] # _cset :deploy_via, :remote_cache # _cset(:repository) {"git@github.com:#{github_account}/#{application}.git"} # _cset(:branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") } # _cset(:remote) { `git remote`.match(/(\S+)\s/m)[1] || raise("Couldn't determine default remote repository") } # ssh_options[:forward_agent] = true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chicken_soup-0.6.1 | lib/chicken_soup/capabilities/svn/svn-defaults.rb |
chicken_soup-0.6.0 | lib/chicken_soup/capabilities/svn/svn-defaults.rb |