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.
10 11 12 |
# File 'lib/puppet/scheduler/timer.rb', line 10 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.
4 5 6 7 8 |
# File 'lib/puppet/scheduler/timer.rb', line 4 def wait_for(seconds) if seconds > 0 sleep(seconds) end end |