Sha256: a05ecfbc01c049ef52599453e8eaf782f9caf137033e7a1f011990f1a8d2b3f6

Contents?: true

Size: 442 Bytes

Versions: 8

Compression:

Stored size: 442 Bytes

Contents

module Puppet::Util::Watcher
  require 'puppet/util/watcher/timer'
  require 'puppet/util/watcher/change_watcher'
  require 'puppet/util/watcher/periodic_watcher'

  module Common
    def self.file_ctime_change_watcher(filename)
      Puppet::Util::Watcher::ChangeWatcher.watch(lambda do
        begin
          File.stat(filename).ctime
        rescue Errno::ENOENT, Errno::ENOTDIR
          :absent
        end
      end)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-3.3.2 lib/puppet/util/watcher.rb
puppet-3.3.1 lib/puppet/util/watcher.rb
puppet-3.3.1.rc3 lib/puppet/util/watcher.rb
puppet-3.3.1.rc2 lib/puppet/util/watcher.rb
puppet-3.3.1.rc1 lib/puppet/util/watcher.rb
puppet-3.3.0 lib/puppet/util/watcher.rb
puppet-3.3.0.rc3 lib/puppet/util/watcher.rb
puppet-3.3.0.rc2 lib/puppet/util/watcher.rb