Class: IniFileNoGlobal
- Inherits:
-
Puppet::Util::IniFile
- Object
- Puppet::Util::IniFile
- IniFileNoGlobal
- Defined in:
- lib/puppet/provider/splunk_metadata/ini_setting.rb
Instance Method Summary collapse
Instance Method Details
#add_section(section) ⇒ Object
26 27 28 |
# File 'lib/puppet/provider/splunk_metadata/ini_setting.rb', line 26 def add_section(section) super(SectionNoGlobal.new(section)) end |
#parse_file ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/puppet/provider/splunk_metadata/ini_setting.rb', line 17 def parse_file super # We do not need a global section but allow one with an empty name. # parse_file always adds the former which will get overwritten by the # latter (if it exists) but will add '' to the section_names array twice. @section_names = @section_names.uniq end |