Module: Puppet::Util::Watcher::Common
- Defined in:
- lib/puppet/util/watcher.rb
Class Method Summary collapse
Class Method Details
.file_ctime_change_watcher(filename) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# 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 |