Method: Puppet::Util::IniConfig::PhysicalFile#initialize

Defined in:
lib/puppet/util/inifile.rb

#initialize(file, options = {}) ⇒ PhysicalFile

Returns a new instance of PhysicalFile.



127
128
129
130
131
132
133
# File 'lib/puppet/util/inifile.rb', line 127

def initialize(file, options = {})
  @file = file
  @contents = []
  @filetype = Puppet::Util::FileType.filetype(:flat).new(file)

  @destroy_empty = options.fetch(:destroy_empty, false)
end