-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this commit, running `puppet module generate` would create a Modulefile with the appropriate metadata, from which a metadata.json file would be generated when you ran `puppet module build`. Since we're migrating away from the Modulefile as the canonical source of metadata (as per PE-3117), this commit will instead generate an equivalent metadata.json file when the module is created.
- Loading branch information
Showing
3 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
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
11 changes: 0 additions & 11 deletions
11
lib/puppet/module_tool/skeleton/templates/generator/Modulefile.erb
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": <%= @hash['name'].to_json %>, | ||
"version": <%= @hash['version'].to_json %>, | ||
"author": <%= @hash['author'].to_json %>, | ||
"summary": <%= @hash['summary'].to_json %>, | ||
"license": <%= @hash['license'].to_json %>, | ||
"source": <%= @hash['source'].to_json %>, | ||
<%= @remaining_keys.map { |k| "#{k.to_json}: #{PSON.pretty_generate(@hash[k])}" }.join(",\n").gsub(/^/, ' ') %> | ||
} |