lib/recipes/log.rb in ricodigo-capistrano-recipes-0.1.2 vs lib/recipes/log.rb in ricodigo-capistrano-recipes-0.1.3

- old
+ new

@@ -20,11 +20,11 @@ missingok notifempty copytruncate }} put rotate_script, "#{shared_path}/logrotate_script" - "#{sudo} cp #{shared_path}/logrotate_script /etc/logrotate.d/#{application}" + sudo "cp #{shared_path}/logrotate_script /etc/logrotate.d/#{application}" run "rm #{shared_path}/logrotate_script" rotate_script = %Q{/var/log/mongodb/*.log { daily rotate #{ENV['days'] || 7} @@ -33,10 +33,10 @@ missingok notifempty copytruncate }} put rotate_script, "#{shared_path}/logrotate_script" - "#{sudo} cp #{shared_path}/logrotate_script /etc/logrotate.d/mongodb" + sudo "cp #{shared_path}/logrotate_script /etc/logrotate.d/mongodb" run "rm #{shared_path}/logrotate_script" end end end