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
9 10 11 12 13 14 15 |
# File 'lib/puppet/util/watcher.rb', line 9 def self.file_ctime_change_watcher(filename) Puppet::Util::Watcher::ChangeWatcher.watch(lambda do Puppet::FileSystem.stat(filename).ctime rescue Errno::ENOENT, Errno::ENOTDIR :absent end) end |