Method: Puppet::Settings::IniFile#section_exists_with_default_section_name?

Defined in:
lib/puppet/settings/ini_file.rb

#section_exists_with_default_section_name?Boolean

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.

Returns:

  • (Boolean)


94
95
96
97
98
# File 'lib/puppet/settings/ini_file.rb', line 94

def section_exists_with_default_section_name?
  section_lines.any? do |section|
    !section.is_a?(DefaultSection) && section.name == DEFAULT_SECTION_NAME
  end
end