Cron
The cron resource will set cron jobs at the intervals you set
Usage
1 has_cron(:name => '...') do
2
3
4 end
Options
- name
- The name of the cronjob
- user
- The user's who owns the cronjob
- command
- The cronjob command to run
- minute
- Set the minute of the cronjob
- hour
- Set the hour of the cronjob
- month
- Set the month of the cronjob
- monthday
- Set the day of the month of the cronjob
- weekday
- Set the weekday of the cronjob, in 0-6 format, where 0 is Sunday
Example
1 has_cron(:name => "report mailer", :minute => "5", :hour => "0", :weekday => 1) do
2 command "/bin/sh /home/user/email_reports.sh"
3 end