Skip to content

Instantly share code, notes, and snippets.

@joho
Created January 27, 2009 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joho/53167 to your computer and use it in GitHub Desktop.
Save joho/53167 to your computer and use it in GitHub Desktop.
cheap and easy way to manage crontab with cap
# the simplest thing that could work...
desc 'install crontab from config/crontab.txt'
task :install_crontab, :roles => :cron_runner, :except => { :no_release => true, :no_symlink => true } do
run "cd #{current_release}; crontab config/crontab.txt"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment