Method: Puppet::Util::IniConfig::PhysicalFile#get_section

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

#get_section(name) ⇒ Puppet::Util::IniConfig::Section?

Returns The section with the given name if it exists, else nil.

Returns:



205
206
207
# File 'lib/puppet/util/inifile.rb', line 205

def get_section(name)
  @contents.find { |entry| entry.is_a? Section and entry.name == name }
end