Method: Puppet::ModuleTool::ContentsDescription#provider_doc

Defined in:
lib/puppet/module_tool/contents_description.rb

#provider_doc(type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return an array of hashes representing this type‘s providers, each containing :name and :doc.

API:

  • private



79
80
81
82
83
84
85
86
87
# File 'lib/puppet/module_tool/contents_description.rb', line 79

def provider_doc(type)
  providers = []

  type.providers.sort.each do |prov|
    providers.push(:name => prov, :doc => type.provider(prov).doc)
  end

  providers
end