Sha256: acae44ea9fd639cfbdec8632be1e4f205cf79c7c5c79ad18b04255c955ba3d09
Contents?: true
Size: 337 Bytes
Versions: 16
Compression:
Stored size: 337 Bytes
Contents
module Puppet Puppet::Type.type(:file).newproperty(:mtime) do desc "A read-only state to check the file mtime." def retrieve current_value = :absent if stat = @resource.stat current_value = stat.mtime end current_value end validate do fail "mtime is read-only" end end end
Version data entries
16 entries across 16 versions & 2 rubygems