Sha256: 14379712a7dbf19d76e23e2cbfb0045ea8a451f892d27a33ad11461dd2f30fd6

Contents?: true

Size: 345 Bytes

Versions: 14

Compression:

Stored size: 345 Bytes

Contents

module Puppet
  Puppet::Type.type(:file).newproperty(:ctime) do
    desc "A read-only state to check the file ctime."

    def retrieve
      current_value = :absent
      if stat = @resource.stat(false)
        current_value = stat.ctime
      end
      current_value
    end

    validate do
      fail "ctime is read-only"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
puppet-2.6.18 lib/puppet/type/file/ctime.rb
puppet-2.6.17 lib/puppet/type/file/ctime.rb
puppet-2.6.16 lib/puppet/type/file/ctime.rb
puppet-2.6.15 lib/puppet/type/file/ctime.rb
puppet-2.6.14 lib/puppet/type/file/ctime.rb
puppet-2.6.13 lib/puppet/type/file/ctime.rb
puppet-2.6.12 lib/puppet/type/file/ctime.rb
puppet-2.6.11 lib/puppet/type/file/ctime.rb
puppet-2.6.10 lib/puppet/type/file/ctime.rb
puppet-2.6.9 lib/puppet/type/file/ctime.rb
puppet-2.6.8 lib/puppet/type/file/ctime.rb
puppet-2.6.7 lib/puppet/type/file/ctime.rb
puppet-2.6.6 lib/puppet/type/file/ctime.rb
puppet-2.6.5 lib/puppet/type/file/ctime.rb