Sha256: 003b8864e9286bc0300cb22a41fac955e6d9e5cc56fe6cc28b0f2349b95e3275

Contents?: true

Size: 447 Bytes

Versions: 120

Compression:

Stored size: 447 Bytes

Contents

module Puppet::Util::Watcher
  require_relative 'watcher/timer'
  require_relative 'watcher/change_watcher'
  require_relative 'watcher/periodic_watcher'

  module Common
    def self.file_ctime_change_watcher(filename)
      Puppet::Util::Watcher::ChangeWatcher.watch(lambda do
        begin
          Puppet::FileSystem.stat(filename).ctime
        rescue Errno::ENOENT, Errno::ENOTDIR
          :absent
        end
      end)
    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/util/watcher.rb
puppet-7.34.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-7.34.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-7.34.0-universal-darwin lib/puppet/util/watcher.rb
puppet-7.33.0 lib/puppet/util/watcher.rb
puppet-7.33.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-7.33.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-7.33.0-universal-darwin lib/puppet/util/watcher.rb
puppet-7.32.1 lib/puppet/util/watcher.rb
puppet-7.32.1-x86-mingw32 lib/puppet/util/watcher.rb
puppet-7.32.1-x64-mingw32 lib/puppet/util/watcher.rb
puppet-7.32.1-universal-darwin lib/puppet/util/watcher.rb
puppet-7.31.0 lib/puppet/util/watcher.rb
puppet-7.31.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-7.31.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-7.31.0-universal-darwin lib/puppet/util/watcher.rb
puppet-7.30.0 lib/puppet/util/watcher.rb
puppet-7.30.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-7.30.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-7.30.0-universal-darwin lib/puppet/util/watcher.rb