Class Puppet::Module::Tool::Modulefile
In: lib/puppet/module/tool/modulefile.rb
Parent: Object

Modulefile

This class provides the DSL used for evaluating the module‘s ‘Modulefile’. These methods are used to concisely define this module‘s attributes, which are later rendered as PSON into a ‘metadata.json’ file.

Methods

author   dependency   description   evaluate   license   name   new   project_page   source   summary   version  

Public Class methods

Read the filename and eval its Ruby code to set values in the Metadata metadata instance.

Instantiate with the Metadata metadata instance.

Public Instance methods

Set the author or default to username

Add a dependency with the full_name name (e.g. "myuser-mymodule"), an optional version_requirement (e.g. "0.0.1") and repository (a URL string). Optional. Can be called multiple times to add many dependencies.

Set the full_name (e.g. "myuser-mymodule"), which will also set the username and module name. Required.

Set the project page

Set the module version (e.g., "0.0.1"). Required.

[Validate]