Sha256: 6c23d66a9a8fc91e1cf1db681957a739c6e7f66c9856036659358212d611f0cf

Contents?: true

Size: 477 Bytes

Versions: 20

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true
module Puppet::Util::Watcher
  require_relative 'watcher/timer'
  require_relative 'watcher/change_watcher'
  require_relative 'watcher/periodic_watcher'

  module Common
    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
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/util/watcher.rb
puppet-8.3.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.3.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.3.0-universal-darwin lib/puppet/util/watcher.rb
puppet-8.3.1 lib/puppet/util/watcher.rb
puppet-8.3.1-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.3.1-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.3.1-universal-darwin lib/puppet/util/watcher.rb
puppet-8.2.0 lib/puppet/util/watcher.rb
puppet-8.2.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.2.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.2.0-universal-darwin lib/puppet/util/watcher.rb
puppet-8.1.0 lib/puppet/util/watcher.rb
puppet-8.1.0-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.1.0-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.1.0-universal-darwin lib/puppet/util/watcher.rb
puppet-8.0.1 lib/puppet/util/watcher.rb
puppet-8.0.1-x86-mingw32 lib/puppet/util/watcher.rb
puppet-8.0.1-x64-mingw32 lib/puppet/util/watcher.rb
puppet-8.0.1-universal-darwin lib/puppet/util/watcher.rb