Sha256: 619cc0ef9b0d032ba6b8cd1fc0d82ee90206c941972f4eb5f1754d2f814b1831
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
module Puppet Puppet.type(:file).newproperty(:type) do require 'etc' desc "A read-only state to check the file type." #munge do |value| # raise Puppet::Error, ":type is read-only" #end def retrieve currentvalue = :absent if stat = @resource.stat(false) currentvalue = stat.ftype end # so this state is never marked out of sync @should = [currentvalue] return currentvalue end def sync raise Puppet::Error, ":type is read-only" end end end # $Id: type.rb 2500 2007-05-09 22:05:32Z luke $
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.23.0 | lib/puppet/type/pfile/type.rb |
puppet-0.23.1 | lib/puppet/type/pfile/type.rb |
puppet-0.23.2 | lib/puppet/type/pfile/type.rb |