- put
crontab.cap
intolib/capistrano/tasks/crontab.cap
- create your crontab file (you can use ERB) and put it somewhere
- set
crontab_template
to point to your crontab file, eg:
set :crontab_template, File.expand_path('./crontab.erb', File.dirname(__FILE__))
- setup
crontab:update
when appropriate, eg:
after :publishing, 'crontab:update'
-
Add role
cron
to all servers that you want the crontab to be updated. -
Enjoy!