lib/ms_deploy/recipes/deploy/symlink.rb in ms_deploy-0.0.1 vs lib/ms_deploy/recipes/deploy/symlink.rb in ms_deploy-0.0.2
- old
+ new
@@ -2,11 +2,11 @@
namespace :deploy do
desc <<-DESC
Symlink shared directories and files.
DESC
- task :symlink_dependencies do
+ task :symlink_dependencies, :roles => :web, :except => {:no_release => true} do
shared_directories_to_link = fetch(:shared_directories_to_link, [])
directories_to_create = fetch(:directories_to_create, [])
files_to_delete = fetch(:files_to_delete, [])
files_to_link = fetch(:files_to_link, {})
chmods_to_set = fetch(:chmods_to_set, [])
@@ -17,8 +17,9 @@
files_to_link.each { |source, target| run "ln -s #{source} #{target}"}
chmods_to_set.each { |target, chmod| run "chmod #{chmod} #{target}" }
end
end
+ before 'deploy:finalize_update', 'deploy:symlink'
after 'deploy:symlink', 'deploy:symlink_dependencies'
end