Sha256: f1850e01ab798d6f2c2e65b26c210aff2a4fcc7c858f989a3f79e88bc2f28941

Contents?: true

Size: 204 Bytes

Versions: 32

Compression:

Stored size: 204 Bytes

Contents

# frozen_string_literal: true

module Puppet::Scheduler
  class Timer
    def wait_for(seconds)
      if seconds > 0
        sleep(seconds)
      end
    end

    def now
      Time.now
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/scheduler/timer.rb
puppet-8.10.0-x86-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.10.0-x64-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.10.0-universal-darwin lib/puppet/scheduler/timer.rb
puppet-8.9.0 lib/puppet/scheduler/timer.rb
puppet-8.9.0-x86-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.9.0-x64-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.9.0-universal-darwin lib/puppet/scheduler/timer.rb
puppet-8.8.1 lib/puppet/scheduler/timer.rb
puppet-8.8.1-x86-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.8.1-x64-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.8.1-universal-darwin lib/puppet/scheduler/timer.rb
puppet-8.7.0 lib/puppet/scheduler/timer.rb
puppet-8.7.0-x86-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.7.0-x64-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.7.0-universal-darwin lib/puppet/scheduler/timer.rb
puppet-8.6.0 lib/puppet/scheduler/timer.rb
puppet-8.6.0-x86-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.6.0-x64-mingw32 lib/puppet/scheduler/timer.rb
puppet-8.6.0-universal-darwin lib/puppet/scheduler/timer.rb