Class: Puppet::Scheduler::Timer Private
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
- #now ⇒ Object private
- #wait_for(seconds) ⇒ Object private
Instance Method Details
#now ⇒ 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.
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 |