Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add load_metadata_json function #483

Merged
merged 1 commit into from
Jul 31, 2015

Conversation

nibalizer
Copy link
Contributor

This function loads the metadata.json into a puppet variable. This enables a number of neat things such as:

  • Which version of the module am I using? 2.x? 3.x?
  • Which author of the module am I using? puppetlabs? example42?

@raphink
Copy link
Contributor

raphink commented Jul 13, 2015

👍

@DavidS
Copy link
Contributor

DavidS commented Jul 14, 2015

Can we have a few unit tests which check error handling and the major interactions in the function?

@DavidS
Copy link
Contributor

DavidS commented Jul 16, 2015

@nibalizer
Copy link
Contributor Author

Hi David, I've created some really basic tests. Since the function looks on the filesystem for a file I'm not sure exactly how to test this part.

This function loads the metadata.json into a puppet variable. This enables a number of neat things such as:

* Which version of the module am I using? 2.x? 3.x?
* Which author of the module am I using? puppetlabs? example42?
hunner added a commit that referenced this pull request Jul 31, 2015
@hunner hunner merged commit e815da5 into puppetlabs:master Jul 31, 2015
@nibalizer
Copy link
Contributor Author

Thanks a bunch to @hunner for helping me with this for #puppethack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants