Sha256: de15245fdc12eab3f7ff674181a3061dd4f50e9df0306b94587e1092af3f1299
Contents?: true
Size: 343 Bytes
Versions: 53
Compression:
Stored size: 343 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 |val| fail "mtime is read-only" end end end
Version data entries
53 entries across 53 versions & 3 rubygems