Skip to content

Instantly share code, notes, and snippets.

@tony612
Forked from yctay/figaro-capistrano.rb
Created March 20, 2014 04:34
Show Gist options
  • Save tony612/9657325 to your computer and use it in GitHub Desktop.
Save tony612/9657325 to your computer and use it in GitHub Desktop.
namespace :figaro do
desc "SCP transfer figaro configuration to the shared folder"
task :setup do
transfer :up, "config/application.yml", "#{shared_path}/application.yml", :via => :scp
end
desc "Symlink application.yml to the release path"
task :finalize do
run "ln -sf #{shared_path}/application.yml #{release_path}/config/application.yml"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment