-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation and two-way merges for cookiecutter.json files
Add documentation on the support for updates and removal of files using cookiecutter.json files, and update the configuration (with unit testing) to support a two way merge, with only the upstream cookiecutter.json being the source of truth for .changes.updates and .changes.removes keys, overriding the downstream configuration.
- Loading branch information
1 parent
05ed7a4
commit 6313df2
Showing
6 changed files
with
133 additions
and
4 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
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
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
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,41 @@ | ||
{ | ||
"repository": { | ||
"owner": "n3tuk", | ||
"name": "downstream" | ||
}, | ||
"provider": "null", | ||
"name": "module", | ||
"components": { | ||
"terraform": { | ||
"version": "1.4.6" | ||
}, | ||
"examples": [ | ||
"default", | ||
"complete" | ||
], | ||
"submodules": [], | ||
"terratest": { | ||
"options": {} | ||
} | ||
}, | ||
"changes": { | ||
"updates": [ | ||
{ | ||
"source": "a.txt", | ||
"destination": "b.txt" | ||
}, | ||
{ | ||
"source": "b.txt", | ||
"destination": "c.txt" | ||
} | ||
], | ||
"removes": [ | ||
{ | ||
"source": "y.txt" | ||
}, | ||
{ | ||
"source": "z.txt" | ||
} | ||
] | ||
} | ||
} |
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,40 @@ | ||
{ | ||
"repository": { | ||
"owner": "n3tuk", | ||
"name": "upstream" | ||
}, | ||
"provider": "null", | ||
"name": "module", | ||
"components": { | ||
"terraform": { | ||
"version": "1.4.6" | ||
}, | ||
"examples": [ | ||
"default", | ||
"complete" | ||
], | ||
"submodules": [], | ||
"terratest": { | ||
"options": {} | ||
} | ||
}, | ||
"changes": { | ||
"updates": [ | ||
{ | ||
"source": "c.txt", | ||
"destination": "d.txt" | ||
} | ||
], | ||
"removes": [ | ||
{ | ||
"source": "x.txt" | ||
}, | ||
{ | ||
"source": "y.txt" | ||
}, | ||
{ | ||
"source": "z.txt" | ||
} | ||
] | ||
} | ||
} |
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