Skip to content

Instantly share code, notes, and snippets.

@jun1st
Created January 22, 2014 03:47
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 jun1st/8553203 to your computer and use it in GitHub Desktop.
Save jun1st/8553203 to your computer and use it in GitHub Desktop.
update crontab with whenever
desc "update crotab with whenever"
task :update_crontab do
on roles(:all) do
within release_path do
execute :bundle, :exec, "whenever --update-crontab #{fetch(:whenever_identifier)} "
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment