Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Created April 8, 2019 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeoffWilliams/05c669ceae88cc6632c4175c3b32dc58 to your computer and use it in GitHub Desktop.
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
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