Method: Puppet::Util::InstanceLoader#instance_docs
- Defined in:
- lib/vendor/puppet/util/instance_loader.rb
#instance_docs(type) ⇒ Object
Collect the docs for all of our instances.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/vendor/puppet/util/instance_loader.rb', line 36 def instance_docs(type) docs = "" # Load all instances. instance_loader(type).loadall # Use this method so they all get loaded 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 |