Recurring job with a certain frequency.
# File lib/rufus/sc/jobs.rb, line 280
280: def determine_at
281:
282: return unless @frequency
283:
284: @last = @at
285: # the first time, @last will be nil
286:
287: @at = if @last
288: @last + @frequency
289: else
290: if fi = @params[:first_in]
291: Time.now.to_f + Rufus.duration_to_f(fi)
292: elsif fa = @params[:first_at]
293: Rufus.at_to_f(fa)
294: else
295: Time.now.to_f + @frequency
296: end
297: end
298: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.