Sha256: 8c7491e8cc1e00c6319491c40a531d4d3329cf17fdc5e021ac084f791a6d7506
Contents?: true
Size: 1.25 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano_recipes-1.4.0 | lib/capistrano/recipes/figaro.rb |