Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/watcher.rb
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
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!