2014-05-26 05:59:46 +00:00
|
|
|
# TODO: This should be extendable. However, the re-assignment of
|
|
|
|
# @objects_by_letter prevents that. Submit a pull request.
|
|
|
|
def index
|
|
|
|
@objects_by_letter = {}
|
2014-06-13 04:21:11 +00:00
|
|
|
objects = Registry.all(:class, :module, :puppetnamespace, :hostclass, :definedtype).sort_by {|o| o.name.to_s }
|
2014-05-26 05:59:46 +00:00
|
|
|
objects = run_verifier(objects)
|
|
|
|
objects.each {|o| (@objects_by_letter[o.name.to_s[0,1].upcase] ||= []) << o }
|
|
|
|
erb(:index)
|
|
|
|
end
|
2014-06-02 01:59:40 +00:00
|
|
|
|
|
|
|
def menu_lists
|
|
|
|
[
|
2014-06-13 04:21:11 +00:00
|
|
|
{:type => 'puppet_manifest', :title => 'Puppet Manifests', :search_title => "Puppet Manifest List"},
|
|
|
|
{:type => 'puppet_plugin', :title => 'Puppet Plugins', :search_title => "Puppet Plugin List"}
|
2014-06-02 01:59:40 +00:00
|
|
|
] + super
|
|
|
|
end
|