Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (11 sloc) 0.405 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'

namespace :deploy do
  task :symlink_config_files do
    ["config/database.yml"].each do |file|
      run "ln -s #{deploy_to}/shared/files/#{file} #{deploy_to}/current/#{file}"
    end
  end
end

after "deploy:symlink", "deploy:symlink_config_files"
Something went wrong with that request. Please try again.