Skip to content

Instantly share code, notes, and snippets.

@AndrewO
Created May 11, 2009 18:19
Show Gist options
  • Save AndrewO/110086 to your computer and use it in GitHub Desktop.
Save AndrewO/110086 to your computer and use it in GitHub Desktop.
set :additional_shared_paths, ["public/page_attachments", "public/excel_page_attachments"]
namespace :deploy do
after "deploy:update_code", "deploy:link_additional_shared_paths"
desc "Link directories to shared paths if they're in the additional_shared_paths variable"
task :link_additional_shared_paths do
additional_shared_paths.each do |path|
run "ln -nfs #{shared_path}/#{path} #{release_path}/#{path}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment