Sha256: 511994f40632bee9d49696b747df92c3b2262ba02b9426602a241b548ddd3a84
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
module CapistranoRecipes module Figaro def self.load_into(configuration) configuration.load do namespace :figaro do desc 'Upload application.yml to remote server' task :upload, :roles => :app, :except => { :no_release => true } do transfer :up, "config/application.yml", "#{config_path}/application.yml", :via => :scp end before 'deploy:finalize_update' do figaro.upload if agree? 'Upload application.yml?' end after 'deploy:setup' do figaro.upload if agree? 'Setup application.yml?' end desc 'Download application.yml from remote server' task :download, :roles => :app, :except => { :no_release => true } do download "#{config_path}/application.yml", "config/application.yml", :via => :scp end if agree? "Your local config/application.yml file will be overwritten. Continue?" desc 'Symlink application.yml to config path' task :symlink, :roles => :app, :except => { :no_release => true } do run "ln -nfs #{config_path}/application.yml #{release_path}/config/application.yml" end after 'deploy:finalize_update', 'figaro:symlink' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano_recipes-1.3.1 | lib/capistrano/recipes/figaro.rb |