summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2015-07-31 14:12:56 -0700
committerHunter Haugen <hunter@puppetlabs.com>2015-07-31 14:12:56 -0700
commite815da59620c4fe7ae3e612b99ef20e8924f8f23 (patch)
tree64fdd6802cb938888356695bd7b0dc95251a3bbd /README.markdown
parentd1f6c5c5538ecfe39161a9ac75aaf6740e927fda (diff)
parentf411ee7119cab1277baffee2fe2b2f978f402072 (diff)
downloadpuppet-stdlib-e815da59620c4fe7ae3e612b99ef20e8924f8f23.tar.gz
puppet-stdlib-e815da59620c4fe7ae3e612b99ef20e8924f8f23.tar.bz2
Merge pull request #483 from nibalizer/load_metadata_json
Add load_metadata_json function
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 9f40e28..594a55f 100644
--- a/README.markdown
+++ b/README.markdown
@@ -450,6 +450,17 @@ Loads a YAML file containing an array, string, or hash, and returns the data in
*Type*: rvalue.
+#### `load_module_metadata`
+
+Loads the metadata.json of a target module. Can be used to determine module version and authorship for dynamic support of modules.
+
+ ~~~
+ $metadata = load_module_metadata('archive')
+ notify { $metadata['author']: }
+ ~~~
+
+*Type*: rvalue.
+
#### `lstrip`
Strips spaces to the left of a string. *Type*: rvalue.