| Class | OpenWFE::CronJob |
| In: |
lib/openwfe/util/scheduler.rb
|
| Parent: | Job |
A cron job.
| cron_line | [RW] | The CronLine instance representing the times at which the cron job has to be triggered. |
# File lib/openwfe/util/scheduler.rb, line 1096
1096: def initialize (scheduler, cron_id, line, params, &block)
1097:
1098: super(scheduler, cron_id, params, &block)
1099:
1100: if line.is_a?(String)
1101:
1102: @cron_line = CronLine.new(line)
1103:
1104: elsif line.is_a?(CronLine)
1105:
1106: @cron_line = line
1107:
1108: else
1109:
1110: raise \
1111: "Cannot initialize a CronJob " +
1112: "with a param of class #{line.class}"
1113: end
1114: end