Method: Puppet::Util::Settings#sectionlist
- Defined in:
- lib/vendor/puppet/util/settings.rb
#sectionlist ⇒ Object
Get a list of objects per section
432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/vendor/puppet/util/settings.rb', line 432 def sectionlist sectionlist = [] self.each { |name, obj| section = obj.section || "puppet" sections[section] ||= [] sectionlist << section unless sectionlist.include?(section) sections[section] << obj } return sectionlist, sections end |