Sha256: 0b93045244ee1fe31f995167abf874987f46f1fb6fdf2125c70216e0f12827aa
Contents?: true
Size: 360 Bytes
Versions: 14
Compression:
Stored size: 360 Bytes
Contents
module Puppet Puppet::Type.type(:file).newproperty(:type) do require 'etc' desc "A read-only state to check the file type." def retrieve current_value = :absent if stat = @resource.stat(false) current_value = stat.ftype end current_value end validate do fail "type is read-only" end end end
Version data entries
14 entries across 14 versions & 1 rubygems