module Puppet::Util::Watcher::Common

Public Class Methods

file_ctime_change_watcher(filename) click to toggle source
# File lib/puppet/util/watcher.rb, line 7
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