Class | Puppet::Module::Tool::Modulefile |
In: |
lib/puppet/module/tool/modulefile.rb
|
Parent: | Object |
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.
Read the filename and eval its Ruby code to set values in the Metadata metadata instance.
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.