Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.401 kb
require "whenever/capistrano/recipes"
Capistrano::Configuration.instance(:must_exist).load do
# Disable cron jobs at the begining of a deploy.
before "deploy:finalize_update", "whenever:clear_crontab"
# Write the new cron jobs near the end.
after "deploy:finalize_update", "whenever:update_crontab"
# If anything goes wrong, undo.
after "deploy:rollback", "whenever:update_crontab"
end
Jump to Line
Something went wrong with that request. Please try again.