Sha256: 59e35b852b8bf206a60a253af2e7a71986ba28e537ba527959cb34c90b3bc68b
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 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_application_file, :roles => :app, :except => { :no_release => 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano_recipes-1.3.2 | lib/capistrano/recipes/figaro.rb |