lib/capper/whenever.rb in capper-0.1.0 vs lib/capper/whenever.rb in capper-0.2.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'capper' unless defined?(Capper)
+require File.dirname(__FILE__) + '/base' unless defined?(Capper)
# whenever requires bundler
require 'capper/bundler'
Capper.load do
@@ -31,16 +31,16 @@
by setting the :whenever_update_flags variable.
DESC
task :update_crontab do
on_rollback do
if previous_release
- run "cd #{previous_release} && #{whenever_command} #{whenever_update_flags}", options
+ run "cd #{previous_release} && #{whenever_command} #{whenever_update_flags}"
else
- run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}", options
+ run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}"
end
end
- run "cd #{current_path} && #{whenever_command} #{whenever_update_flags}", options
+ 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 \