Method: Puppet::Util::Settings#params

Defined in:
lib/vendor/puppet/util/settings.rb

#params(section = nil) ⇒ Object

Return all of the parameters associated with a given section.



277
278
279
280
281
282
283
284
285
286
287
288
# File 'lib/vendor/puppet/util/settings.rb', line 277

def params(section = nil)
  if section
    section = section.intern if section.is_a? String
    @config.find_all { |name, obj|
      obj.section == section
    }.collect { |name, obj|
      name
    }
  else
    @config.keys
  end
end