Sha256: b1a9dc10b00a97cdc76fe75f01307b5cad0da72f006a3ca1b206f93ed849c985
Contents?: true
Size: 672 Bytes
Versions: 4
Compression:
Stored size: 672 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 desc "Setup configuration files from config repo" 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 end end after "deploy:update_code", "config:setup" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
capper-0.7.3 | lib/capper/config.rb |
capper-0.7.2 | lib/capper/config.rb |
capper-0.7.1 | lib/capper/config.rb |
capper-0.7.0 | lib/capper/config.rb |