This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-183) Update
pct new
to handle namespaced & versioned templates
Prior to this commit, the `pct new` command would only be capable of processing templates in the old format (`< 0.4.0`) of `id/(pct-config.yml|content/)`. This commit adds support for the new namespaced and versioned PCT template structure of `namespace/id/ver/(pct-config.yml|content/)` which will become the standard from `0.4.0` onwards. Also as part of this commit: - The test resources under `internal/pkg/pct/testdata/examples` have been updated to the new template format - Unit and acceptance tests updated - Re-enabled the tests temporarily backed out until GH-183 complete
- Loading branch information
sanfrancrisko
committed
Sep 9, 2021
1 parent
4070f5d
commit 401a58c
Showing
12 changed files
with
89 additions
and
87 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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...data/examples/full-project/pct-config.yml → ...petlabs/full-project/0.1.0/pct-config.yml
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
template: | ||
id: full-project | ||
author: puppetlabs | ||
type: project | ||
display: Full Project | ||
version: 0.1.0 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...data/examples/good-project/pct-config.yml → ...petlabs/good-project/0.1.0/pct-config.yml
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
template: | ||
id: good-project | ||
author: puppetlabs | ||
type: project | ||
display: Good Project | ||
version: 0.1.0 | ||
|
File renamed without changes.
File renamed without changes.