Sha256: 23671fca7ba681a46c563589574b816ef8552b810b3f818fdb26aea50f493d8f
Contents?: true
Size: 353 Bytes
Versions: 16
Compression:
Stored size: 353 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 current_value = stat.ftype end current_value end validate do fail "type is read-only" end end end
Version data entries
16 entries across 16 versions & 2 rubygems