Module: Puppet::Scheduler

Defined in:
lib/puppet/scheduler.rb,
lib/puppet/scheduler/job.rb,
lib/puppet/scheduler/timer.rb,
lib/puppet/scheduler/scheduler.rb,
lib/puppet/scheduler/splay_job.rb

Defined Under Namespace

Classes: Job, Scheduler, SplayJob, Timer

Class Method Summary collapse

Class Method Details

.create_job(interval, splay = false, splay_limit = 0, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/puppet/scheduler.rb', line 11

def create_job(interval, splay = false, splay_limit = 0, &block)
  if splay
    Puppet::Scheduler::SplayJob.new(interval, splay_limit, &block)
  else
    Puppet::Scheduler::Job.new(interval, &block)
  end
end