lib/capper/whenever.rb in capper-0.3.4 vs lib/capper/whenever.rb in capper-0.3.5

- old
+ new

@@ -33,26 +33,17 @@ task :update_crontab do on_rollback do if previous_release run "cd #{previous_release} && #{whenever_command} #{whenever_update_flags}" else - run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}" + run "crontab /dev/null" end end run "cd #{current_path} && #{whenever_command} #{whenever_update_flags}" end - desc <<-DESC - Clear application's crontab entries using Whenever. You can configure \ - the command used to invoke Whenever by setting the :whenever_command \ - variable, which can be used with Bundler to set the command to \ - "bundle exec whenever". You can configure the identifier used by setting \ - the :whenever_identifier variable, which defaults to the same value configured \ - for the :application variable. Finally, you can completely override all \ - arguments to the Whenever command by setting the :whenever_clear_flags variable. - DESC task :clear_crontab do - run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}" + run "crontab /dev/null" end end end