Sha256: cbd22b7b267bfee005b49f296496c60652cd7876752452d025b2f56e21ee0f6e
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 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_file, :roles => :app, :except => { :no_release => true } do transfer :up, "config/application.yml", "#{config_path}/application.yml", :via => :scp end before 'deploy:finalize_update', 'figaro:upload_file' after 'deploy:setup' do figaro.upload_file if agree? 'Setup application.yml?' end desc 'Download application.yml from remote server' task :download_file, :roles => :app, :only => { :primary => true } do if agree? "Your local config/application.yml file will be overwritten. Continue?" download "#{config_path}/application.yml", "config/application.yml", :via => :scp end end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano_recipes-1.4.2 | lib/capistrano/recipes/figaro.rb |
capistrano_recipes-1.4.1 | lib/capistrano/recipes/figaro.rb |