Class Puppet::Module::Tool::Metadata
In: lib/puppet/module/tool/metadata.rb
Parent: Object

Metadata

This class provides a data structure representing a module‘s metadata. It provides some basic parsing, but other data is injected into it using annotate methods in other classes.

Methods

Attributes

full_name  [R]  The full name of the module, which is a dash-separated combination of the username and module name.
name  [R]  The name of this module. See also full_name.
username  [R]  The name of the user that owns this module.
version  [RW]  The version of this module, a string like ‘0.1.0’.

Public Class methods

Instantiate from a hash, whose keys are setters in this class.

Public Instance methods

Return module‘s file checksums.

Return the dashed name of the module, which may either be the dash-separated combination of the username and module name, or just the module name.

Return an array of the module‘s Dependency objects.

Set the full name of this module, and from it, the username and module name.

Return the release name, which is the combination of the dashed_name of the module and its version number.

Return the PSON record representing this instance.

Return an array of the module‘s Puppet types, each one is a hash containing :name and :doc. TODO Shouldn‘t this be it‘s own class?

[Validate]