| Class | Symbiosis::CrontabRecord |
| In: |
cron/lib/symbiosis/crontab.rb
|
| Parent: | Object |
This class represents and individual line of a crontab
| WDAY | = | %w(sun mon tue wed thu fri sat) | Weekday names that can be used in records | |
| MON | = | %w(jan feb mar apr may jun jul aug sep oct nov dec) | Month names that can be used in records. | |
| SHORTCUTS | = | { "(?:year|annual)ly" => "0 0 1 1 *", "monthly" => "0 0 1 * *", "weekly" => "0 0 * * 0", "(?:daily|midnight)" => "0 0 * * *", "hourly" => "0 * * * *" | Hash of names that correspond to @ shortcuts. |
| command | [R] | |
| hour | [R] | |
| mday | [R] | |
| min | [R] | |
| mon | [R] | |
| wday | [R] |
Create a new CrontabRecord, setting the minute, hour, month-day, month, week-day and command. Raises a CrontabFormatError if any of the arguments fail to parse.
Create a new CrontabRecord using a string. Raises CrontabFormatError if the string parsing fails.