Sha256: a400ce99d1c3dcbf6d8618669f879feaab0e54eada78285336d35fd4c082faaa
Contents?: true
Size: 344 Bytes
Versions: 53
Compression:
Stored size: 344 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 current_value = stat.ctime end current_value end validate do |val| fail "ctime is read-only" end end end
Version data entries
53 entries across 53 versions & 3 rubygems