Sha256: be9c2be3425819b337fe7d5276260aa96071f9608e6cfb8af97586165b401f26

Contents?: true

Size: 478 Bytes

Versions: 12

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
puppet-8.5.1 lib/puppet/util/watcher.rb
puppet-8.5.1-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.5.1-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.5.1-universal-darwin lib/puppet/util/watcher.rb
puppet-8.5.0 lib/puppet/util/watcher.rb
puppet-8.5.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.5.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.5.0-universal-darwin lib/puppet/util/watcher.rb
puppet-8.4.0 lib/puppet/util/watcher.rb
puppet-8.4.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.4.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.4.0-universal-darwin lib/puppet/util/watcher.rb