lib/puppet/util/instance_loader.rb
# Collect the docs for all of our instances.
Collect the docs for all of our instances.
Collect the docs for all of our instances .
def instance_docs(type)
    docs = ""
    instance_loader(type).loadall
    loaded_instances(type).sort { |a,b| a.to_s <=> b.to_s }.each do |name|
      mod = self.loaded_instance(name)
      docs += "#{name}\n#{"-" * name.to_s.length}\n"
      docs += Puppet::Util::Docs.scrub(mod.doc) + "\n\n"
    end
    docs
  end
def instance_docs ( type ) docs = "" instance_loader ( type ) . loadall loaded_instances ( type ) . sort { | a , b | a . to_s <=> b . to_s } . each do | name | mod = self . loaded_instance ( name ) docs += "#{name}\n#{"-" * name.to_s.length}\n" docs += Puppet :: Util :: Docs . scrub ( mod . doc ) + "\n\n" end docs end
Collect the docs for all of our instances.
Collect the docs for all of our instances .
# Load all instances. # Use this method so they all get loaded
type
<not_specific>