Method: Puppet::Util::FileWatcher#watch
- Defined in:
- lib/puppet/util/file_watcher.rb
#watch(filename) ⇒ Object
18 19 20 21 22 |
# File 'lib/puppet/util/file_watcher.rb', line 18 def watch(filename) return if watching?(filename) @files[filename] = Puppet::Util::WatchedFile.new(filename) end |