Method: Puppet::Util::IniConfig::PhysicalFile#read

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

#readObject

Read and parse the on-disk file associated with this object



137
138
139
140
141
142
143
144
# File 'lib/puppet/util/inifile.rb', line 137

def read
  text = @filetype.read
  if text.nil?
    raise IniParseError, _("Cannot read nonexistent file %{file}") % { file: @file.inspect }
  end

  parse(text)
end