Sha256: 3914d93c4d03b696f1277ad02523a2c550797adf7004d7a6e5827abd858be436
Contents?: true
Size: 344 Bytes
Versions: 14
Compression:
Stored size: 344 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(false) current_value = stat.mtime end current_value end validate do fail "mtime is read-only" end end end
Version data entries
14 entries across 14 versions & 1 rubygems