Method: Puppet::Provider::ParsedFile#initialize
- Defined in:
- lib/vendor/puppet/provider/parsedfile.rb
#initialize(record) ⇒ ParsedFile
Returns a new instance of ParsedFile.
346 347 348 349 350 351 352 353 |
# File 'lib/vendor/puppet/provider/parsedfile.rb', line 346 def initialize(record) super # The 'record' could be a resource or a record, depending on how the provider # is initialized. If we got an empty property hash (probably because the resource # is just being initialized), then we want to set up some defualts. @property_hash = self.class.record?(resource[:name]) || {:record_type => self.class.name, :ensure => :absent} if @property_hash.empty? end |