Method: Puppet::Settings::IniFile#set_default_section_write_sectionline
- Defined in:
- lib/puppet/settings/ini_file.rb
#set_default_section_write_sectionline(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
100 101 102 103 104 105 |
# File 'lib/puppet/settings/ini_file.rb', line 100 def set_default_section_write_sectionline(value) index = @lines.find_index { |line| line.is_a?(DefaultSection) } if index @lines[index].write_sectionline = true end end |