Class: Puppet::Scheduler::Timer Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/scheduler/timer.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#nowObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


9
10
11
# File 'lib/puppet/scheduler/timer.rb', line 9

def now
  Time.now
end

#wait_for(seconds) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


3
4
5
6
7
# File 'lib/puppet/scheduler/timer.rb', line 3

def wait_for(seconds)
  if seconds > 0
    sleep(seconds)
  end
end