Created
April 8, 2019 02:15
-
-
Save GeoffWilliams/05c669ceae88cc6632c4175c3b32dc58 to your computer and use it in GitHub Desktop.
find all metadata .json files relative to current directory and convert them into `Puppetfile` format suitable for git checkouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -iname 'metadata.json' -exec jq '"mod " + (.name | split("-"))[1] + ", :git => " + .source + ", :tag => " + .version' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment