Capistrano::Configuration.instance(true).load do namespace :whenever do desc "Update the crontab file" task :update_crontab, :roles => :db do run "cd #{release_path} && whenever --update-crontab #{application}" end end end