lib/capistrano-deploy-management/whenever.rb in capistrano-deploy-management-0.1.0 vs lib/capistrano-deploy-management/whenever.rb in capistrano-deploy-management-0.1.1
- old
+ new
@@ -1,9 +1,10 @@
module CapistranoDeployManagement
module Whenever
def self.load_into(configuration)
configuration.load do
+
set :whenever_cmd do
if using_recipe?(:bundle)
'bundle exec whenever'
else
'whenever'
@@ -27,9 +28,10 @@
desc 'Clear crontab file'
task :clear_crontab, :roles => :db, :only => {:primary => true} do
run "cd #{current_path} && #{whenever_cmd} --clear-crontab #{whenever_identifier}"
end
end
+
end
end
end
end
\ No newline at end of file