| Class | Puppet::ModuleTool::Metadata |
| In: |
lib/shared/puppet/module_tool/metadata.rb
|
| Parent: | Object |
This class provides a data structure representing a module‘s metadata. @api private
| DEFAULTS | = | { 'name' => nil, 'version' => nil, 'author' => nil, 'summary' => nil, 'license' => 'Apache-2.0', 'source' => '', 'project_page' => nil, 'issues_url' => nil, 'dependencies' => Set.new.freeze, } |
| module_name | -> | name |
| module_name | [RW] |
Validates the name and version_requirement for a dependency, then creates the Dependency and adds it. Returns the Dependency that was added.
Provides an accessor for the now defunct ‘description’ property. This addresses a regression in Puppet 3.6.x where previously valid templates refering to the ‘description’ property were broken. @deprecated
Returns a hash of the module‘s metadata. Used by Puppet‘s automated serialization routines.
@see Puppet::Network::FormatSupport#to_data_hash