Method: Puppet::Util::IniConfig::PhysicalFile#read
- Defined in:
- lib/puppet/util/inifile.rb
#read ⇒ Object
Read and parse the on-disk file associated with this object
136 137 138 139 140 141 142 |
# File 'lib/puppet/util/inifile.rb', line 136 def read text = @filetype.read if text.nil? raise IniParseError, _("Cannot read nonexistent file %{file}") % { file: @file.inspect } end parse(text) end |