Sha256: 4863c0e25d0fdf61536397ded74ba744d1a3d438cb7a849d3b1587ecc9861ea9
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
require File.dirname(__FILE__) + '/base' unless defined?(Capper) Capper.load do _cset(:config_repo, nil) after "deploy:setup" do unless config_repo.nil? run "rm -rf #{config_path} && git clone -q #{config_repo} #{config_path}" end end namespace :config do task :setup, :roles => :app, :except => { :no_release => true } do unless config_repo.nil? run "cd #{config_path} && git pull -q" end fetch(:config_files, []).each do |f| run "cp #{config_path}/#{f} #{release_path}/config/" end fetch(:symlinks, {}).each do |source, dest| run "rm -rf #{release_path}/#{dest} && ln -nfs #{shared_path}/#{source} #{release_path}/#{dest}" end end end after "deploy:update_code", "config:setup" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capper-0.6.8 | lib/capper/config.rb |
capper-0.6.7 | lib/capper/config.rb |
capper-0.6.6 | lib/capper/config.rb |