pdk 1.9.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +744 -711
- data/README.md +23 -21
- data/lib/pdk/answer_file.rb +3 -112
- data/lib/pdk/bolt.rb +20 -0
- data/lib/pdk/cli/build.rb +51 -54
- data/lib/pdk/cli/bundle.rb +33 -29
- data/lib/pdk/cli/console.rb +148 -0
- data/lib/pdk/cli/convert.rb +46 -37
- data/lib/pdk/cli/env.rb +51 -0
- data/lib/pdk/cli/errors.rb +4 -3
- data/lib/pdk/cli/exec/command.rb +285 -0
- data/lib/pdk/cli/exec/interactive_command.rb +109 -0
- data/lib/pdk/cli/exec.rb +32 -201
- data/lib/pdk/cli/exec_group.rb +79 -43
- data/lib/pdk/cli/get/config.rb +26 -0
- data/lib/pdk/cli/get.rb +22 -0
- data/lib/pdk/cli/new/class.rb +20 -22
- data/lib/pdk/cli/new/defined_type.rb +21 -21
- data/lib/pdk/cli/new/fact.rb +27 -0
- data/lib/pdk/cli/new/function.rb +27 -0
- data/lib/pdk/cli/new/module.rb +40 -29
- data/lib/pdk/cli/new/provider.rb +18 -18
- data/lib/pdk/cli/new/task.rb +23 -22
- data/lib/pdk/cli/new/test.rb +52 -0
- data/lib/pdk/cli/new/transport.rb +27 -0
- data/lib/pdk/cli/new.rb +15 -9
- data/lib/pdk/cli/release/prep.rb +39 -0
- data/lib/pdk/cli/release/publish.rb +46 -0
- data/lib/pdk/cli/release.rb +185 -0
- data/lib/pdk/cli/remove/config.rb +83 -0
- data/lib/pdk/cli/remove.rb +22 -0
- data/lib/pdk/cli/set/config.rb +121 -0
- data/lib/pdk/cli/set.rb +22 -0
- data/lib/pdk/cli/test/unit.rb +71 -69
- data/lib/pdk/cli/test.rb +9 -8
- data/lib/pdk/cli/update.rb +38 -21
- data/lib/pdk/cli/util/command_redirector.rb +13 -3
- data/lib/pdk/cli/util/interview.rb +25 -9
- data/lib/pdk/cli/util/option_normalizer.rb +6 -6
- data/lib/pdk/cli/util/option_validator.rb +19 -9
- data/lib/pdk/cli/util/spinner.rb +13 -0
- data/lib/pdk/cli/util/update_manager_printer.rb +82 -0
- data/lib/pdk/cli/util.rb +105 -48
- data/lib/pdk/cli/validate.rb +96 -111
- data/lib/pdk/cli.rb +134 -87
- data/lib/pdk/config/errors.rb +5 -0
- data/lib/pdk/config/ini_file.rb +184 -0
- data/lib/pdk/config/ini_file_setting.rb +35 -0
- data/lib/pdk/config/json.rb +35 -0
- data/lib/pdk/config/json_schema_namespace.rb +137 -0
- data/lib/pdk/config/json_schema_setting.rb +51 -0
- data/lib/pdk/config/json_with_schema.rb +47 -0
- data/lib/pdk/config/namespace.rb +362 -0
- data/lib/pdk/config/setting.rb +134 -0
- data/lib/pdk/config/task_schema.json +116 -0
- data/lib/pdk/config/validator.rb +31 -0
- data/lib/pdk/config/yaml.rb +41 -0
- data/lib/pdk/config/yaml_with_schema.rb +51 -0
- data/lib/pdk/config.rb +304 -0
- data/lib/pdk/context/control_repo.rb +61 -0
- data/lib/pdk/context/module.rb +28 -0
- data/lib/pdk/context/none.rb +22 -0
- data/lib/pdk/context.rb +98 -0
- data/lib/pdk/control_repo.rb +89 -0
- data/lib/pdk/generate/defined_type.rb +27 -33
- data/lib/pdk/generate/fact.rb +26 -0
- data/lib/pdk/generate/function.rb +49 -0
- data/lib/pdk/generate/module.rb +160 -153
- data/lib/pdk/generate/provider.rb +16 -69
- data/lib/pdk/generate/puppet_class.rb +27 -32
- data/lib/pdk/generate/puppet_object.rb +100 -159
- data/lib/pdk/generate/task.rb +34 -51
- data/lib/pdk/generate/transport.rb +34 -0
- data/lib/pdk/generate.rb +21 -8
- data/lib/pdk/logger.rb +24 -6
- data/lib/pdk/module/build.rb +125 -37
- data/lib/pdk/module/convert.rb +146 -65
- data/lib/pdk/module/metadata.rb +72 -71
- data/lib/pdk/module/release.rb +255 -0
- data/lib/pdk/module/update.rb +48 -37
- data/lib/pdk/module/update_manager.rb +75 -39
- data/lib/pdk/module.rb +10 -2
- data/lib/pdk/monkey_patches.rb +268 -0
- data/lib/pdk/report/event.rb +36 -48
- data/lib/pdk/report.rb +35 -22
- data/lib/pdk/template/fetcher/git.rb +84 -0
- data/lib/pdk/template/fetcher/local.rb +29 -0
- data/lib/pdk/template/fetcher.rb +100 -0
- data/lib/pdk/template/renderer/v1/legacy_template_dir.rb +108 -0
- data/lib/pdk/template/renderer/v1/renderer.rb +131 -0
- data/lib/pdk/template/renderer/v1/template_file.rb +100 -0
- data/lib/pdk/template/renderer/v1.rb +25 -0
- data/lib/pdk/template/renderer.rb +97 -0
- data/lib/pdk/template/template_dir.rb +67 -0
- data/lib/pdk/template.rb +52 -0
- data/lib/pdk/tests/unit.rb +101 -51
- data/lib/pdk/util/bundler.rb +44 -42
- data/lib/pdk/util/changelog_generator.rb +138 -0
- data/lib/pdk/util/env.rb +48 -0
- data/lib/pdk/util/filesystem.rb +139 -2
- data/lib/pdk/util/git.rb +108 -8
- data/lib/pdk/util/json_finder.rb +86 -0
- data/lib/pdk/util/puppet_strings.rb +125 -0
- data/lib/pdk/util/puppet_version.rb +71 -87
- data/lib/pdk/util/ruby_version.rb +49 -25
- data/lib/pdk/util/template_uri.rb +283 -0
- data/lib/pdk/util/vendored_file.rb +34 -42
- data/lib/pdk/util/version.rb +11 -10
- data/lib/pdk/util/windows/api_types.rb +74 -44
- data/lib/pdk/util/windows/file.rb +31 -27
- data/lib/pdk/util/windows/process.rb +74 -0
- data/lib/pdk/util/windows/string.rb +19 -12
- data/lib/pdk/util/windows.rb +2 -0
- data/lib/pdk/util.rb +111 -124
- data/lib/pdk/validate/control_repo/control_repo_validator_group.rb +23 -0
- data/lib/pdk/validate/control_repo/environment_conf_validator.rb +98 -0
- data/lib/pdk/validate/external_command_validator.rb +213 -0
- data/lib/pdk/validate/internal_ruby_validator.rb +101 -0
- data/lib/pdk/validate/invokable_validator.rb +238 -0
- data/lib/pdk/validate/metadata/metadata_json_lint_validator.rb +84 -0
- data/lib/pdk/validate/metadata/metadata_syntax_validator.rb +76 -0
- data/lib/pdk/validate/metadata/metadata_validator_group.rb +20 -0
- data/lib/pdk/validate/puppet/puppet_epp_validator.rb +131 -0
- data/lib/pdk/validate/puppet/puppet_lint_validator.rb +66 -0
- data/lib/pdk/validate/puppet/puppet_plan_syntax_validator.rb +38 -0
- data/lib/pdk/validate/puppet/puppet_syntax_validator.rb +135 -0
- data/lib/pdk/validate/puppet/puppet_validator_group.rb +22 -0
- data/lib/pdk/validate/ruby/ruby_rubocop_validator.rb +79 -0
- data/lib/pdk/validate/ruby/ruby_validator_group.rb +19 -0
- data/lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb +83 -0
- data/lib/pdk/validate/tasks/tasks_name_validator.rb +45 -0
- data/lib/pdk/validate/tasks/tasks_validator_group.rb +20 -0
- data/lib/pdk/validate/validator.rb +120 -0
- data/lib/pdk/validate/validator_group.rb +107 -0
- data/lib/pdk/validate/yaml/yaml_syntax_validator.rb +86 -0
- data/lib/pdk/validate/yaml/yaml_validator_group.rb +19 -0
- data/lib/pdk/validate.rb +86 -12
- data/lib/pdk/version.rb +2 -2
- data/lib/pdk.rb +60 -10
- metadata +138 -100
- data/lib/pdk/cli/module/build.rb +0 -14
- data/lib/pdk/cli/module/generate.rb +0 -45
- data/lib/pdk/cli/module.rb +0 -14
- data/lib/pdk/i18n.rb +0 -4
- data/lib/pdk/module/templatedir.rb +0 -321
- data/lib/pdk/template_file.rb +0 -95
- data/lib/pdk/validate/base_validator.rb +0 -215
- data/lib/pdk/validate/metadata/metadata_json_lint.rb +0 -86
- data/lib/pdk/validate/metadata/metadata_syntax.rb +0 -109
- data/lib/pdk/validate/metadata_validator.rb +0 -30
- data/lib/pdk/validate/puppet/puppet_lint.rb +0 -67
- data/lib/pdk/validate/puppet/puppet_syntax.rb +0 -112
- data/lib/pdk/validate/puppet_validator.rb +0 -30
- data/lib/pdk/validate/ruby/rubocop.rb +0 -77
- data/lib/pdk/validate/ruby_validator.rb +0 -29
- data/lib/pdk/validate/tasks/metadata_lint.rb +0 -126
- data/lib/pdk/validate/tasks/name.rb +0 -88
- data/lib/pdk/validate/tasks_validator.rb +0 -33
- data/lib/pdk/validate/yaml/syntax.rb +0 -109
- data/lib/pdk/validate/yaml_validator.rb +0 -31
- data/locales/config.yaml +0 -21
- data/locales/pdk.pot +0 -1291
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 2.1.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.0.0
|
@@ -26,220 +26,198 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: 2.1.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: childprocess
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 4.1.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 4.1.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: cri
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 2.15.11
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 2.15.11
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: diff-lcs
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 1.5.0
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 1.5.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: ffi
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 1.15.5
|
82
|
+
- - "<"
|
80
83
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0.
|
84
|
+
version: 2.0.0
|
82
85
|
type: :runtime
|
83
86
|
prerelease: false
|
84
87
|
version_requirements: !ruby/object:Gem::Requirement
|
85
88
|
requirements:
|
86
|
-
- -
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 1.15.5
|
92
|
+
- - "<"
|
87
93
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.
|
94
|
+
version: 2.0.0
|
89
95
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
96
|
+
name: hitimes
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
92
98
|
requirements:
|
93
99
|
- - '='
|
94
100
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
101
|
+
version: 2.0.0
|
96
102
|
type: :runtime
|
97
103
|
prerelease: false
|
98
104
|
version_requirements: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
106
|
- - '='
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.
|
108
|
+
version: 2.0.0
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: json_pure
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
106
112
|
requirements:
|
107
113
|
- - "~>"
|
108
114
|
- !ruby/object:Gem::Version
|
109
|
-
version: 2.
|
115
|
+
version: 2.6.3
|
110
116
|
type: :runtime
|
111
117
|
prerelease: false
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
120
|
- - "~>"
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
version: 2.
|
122
|
+
version: 2.6.3
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
124
|
name: json-schema
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
|
-
- -
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: 2.8.0
|
124
|
-
type: :runtime
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - '='
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: 2.8.0
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: tty-which
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - '='
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: 0.3.0
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - '='
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 0.3.0
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: diff-lcs
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - '='
|
127
|
+
- - "~>"
|
150
128
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
129
|
+
version: '4.0'
|
152
130
|
type: :runtime
|
153
131
|
prerelease: false
|
154
132
|
version_requirements: !ruby/object:Gem::Requirement
|
155
133
|
requirements:
|
156
|
-
- -
|
134
|
+
- - "~>"
|
157
135
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
136
|
+
version: '4.0'
|
159
137
|
- !ruby/object:Gem::Dependency
|
160
138
|
name: minitar
|
161
139
|
requirement: !ruby/object:Gem::Requirement
|
162
140
|
requirements:
|
163
141
|
- - "~>"
|
164
142
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
143
|
+
version: '0.8'
|
166
144
|
type: :runtime
|
167
145
|
prerelease: false
|
168
146
|
version_requirements: !ruby/object:Gem::Requirement
|
169
147
|
requirements:
|
170
148
|
- - "~>"
|
171
149
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
150
|
+
version: '0.8'
|
173
151
|
- !ruby/object:Gem::Dependency
|
174
152
|
name: pathspec
|
175
153
|
requirement: !ruby/object:Gem::Requirement
|
176
154
|
requirements:
|
177
155
|
- - "~>"
|
178
156
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
157
|
+
version: '1.1'
|
180
158
|
type: :runtime
|
181
159
|
prerelease: false
|
182
160
|
version_requirements: !ruby/object:Gem::Requirement
|
183
161
|
requirements:
|
184
162
|
- - "~>"
|
185
163
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
164
|
+
version: '1.1'
|
187
165
|
- !ruby/object:Gem::Dependency
|
188
|
-
name:
|
166
|
+
name: tty-prompt
|
189
167
|
requirement: !ruby/object:Gem::Requirement
|
190
168
|
requirements:
|
191
169
|
- - "~>"
|
192
170
|
- !ruby/object:Gem::Version
|
193
|
-
version:
|
171
|
+
version: '0.23'
|
194
172
|
type: :runtime
|
195
173
|
prerelease: false
|
196
174
|
version_requirements: !ruby/object:Gem::Requirement
|
197
175
|
requirements:
|
198
176
|
- - "~>"
|
199
177
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
178
|
+
version: '0.23'
|
201
179
|
- !ruby/object:Gem::Dependency
|
202
|
-
name:
|
180
|
+
name: tty-spinner
|
203
181
|
requirement: !ruby/object:Gem::Requirement
|
204
182
|
requirements:
|
205
|
-
- -
|
183
|
+
- - "~>"
|
206
184
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
185
|
+
version: '0.9'
|
208
186
|
type: :runtime
|
209
187
|
prerelease: false
|
210
188
|
version_requirements: !ruby/object:Gem::Requirement
|
211
189
|
requirements:
|
212
|
-
- -
|
190
|
+
- - "~>"
|
213
191
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
192
|
+
version: '0.9'
|
215
193
|
- !ruby/object:Gem::Dependency
|
216
|
-
name:
|
194
|
+
name: tty-which
|
217
195
|
requirement: !ruby/object:Gem::Requirement
|
218
196
|
requirements:
|
219
197
|
- - "~>"
|
220
198
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
199
|
+
version: '0.5'
|
222
200
|
type: :runtime
|
223
201
|
prerelease: false
|
224
202
|
version_requirements: !ruby/object:Gem::Requirement
|
225
203
|
requirements:
|
226
204
|
- - "~>"
|
227
205
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
206
|
+
version: '0.5'
|
229
207
|
- !ruby/object:Gem::Dependency
|
230
208
|
name: deep_merge
|
231
209
|
requirement: !ruby/object:Gem::Requirement
|
232
210
|
requirements:
|
233
211
|
- - "~>"
|
234
212
|
- !ruby/object:Gem::Version
|
235
|
-
version:
|
213
|
+
version: 1.2.2
|
236
214
|
type: :runtime
|
237
215
|
prerelease: false
|
238
216
|
version_requirements: !ruby/object:Gem::Requirement
|
239
217
|
requirements:
|
240
218
|
- - "~>"
|
241
219
|
- !ruby/object:Gem::Version
|
242
|
-
version:
|
220
|
+
version: 1.2.2
|
243
221
|
description: A CLI to facilitate easy, unified development workflows for Puppet modules.
|
244
222
|
email:
|
245
223
|
- pdk-maintainers@puppet.com
|
@@ -254,22 +232,37 @@ files:
|
|
254
232
|
- exe/pdk
|
255
233
|
- lib/pdk.rb
|
256
234
|
- lib/pdk/answer_file.rb
|
235
|
+
- lib/pdk/bolt.rb
|
257
236
|
- lib/pdk/cli.rb
|
258
237
|
- lib/pdk/cli/build.rb
|
259
238
|
- lib/pdk/cli/bundle.rb
|
239
|
+
- lib/pdk/cli/console.rb
|
260
240
|
- lib/pdk/cli/convert.rb
|
241
|
+
- lib/pdk/cli/env.rb
|
261
242
|
- lib/pdk/cli/errors.rb
|
262
243
|
- lib/pdk/cli/exec.rb
|
244
|
+
- lib/pdk/cli/exec/command.rb
|
245
|
+
- lib/pdk/cli/exec/interactive_command.rb
|
263
246
|
- lib/pdk/cli/exec_group.rb
|
264
|
-
- lib/pdk/cli/
|
265
|
-
- lib/pdk/cli/
|
266
|
-
- lib/pdk/cli/module/generate.rb
|
247
|
+
- lib/pdk/cli/get.rb
|
248
|
+
- lib/pdk/cli/get/config.rb
|
267
249
|
- lib/pdk/cli/new.rb
|
268
250
|
- lib/pdk/cli/new/class.rb
|
269
251
|
- lib/pdk/cli/new/defined_type.rb
|
252
|
+
- lib/pdk/cli/new/fact.rb
|
253
|
+
- lib/pdk/cli/new/function.rb
|
270
254
|
- lib/pdk/cli/new/module.rb
|
271
255
|
- lib/pdk/cli/new/provider.rb
|
272
256
|
- lib/pdk/cli/new/task.rb
|
257
|
+
- lib/pdk/cli/new/test.rb
|
258
|
+
- lib/pdk/cli/new/transport.rb
|
259
|
+
- lib/pdk/cli/release.rb
|
260
|
+
- lib/pdk/cli/release/prep.rb
|
261
|
+
- lib/pdk/cli/release/publish.rb
|
262
|
+
- lib/pdk/cli/remove.rb
|
263
|
+
- lib/pdk/cli/remove/config.rb
|
264
|
+
- lib/pdk/cli/set.rb
|
265
|
+
- lib/pdk/cli/set/config.rb
|
273
266
|
- lib/pdk/cli/test.rb
|
274
267
|
- lib/pdk/cli/test/unit.rb
|
275
268
|
- lib/pdk/cli/update.rb
|
@@ -278,60 +271,106 @@ files:
|
|
278
271
|
- lib/pdk/cli/util/interview.rb
|
279
272
|
- lib/pdk/cli/util/option_normalizer.rb
|
280
273
|
- lib/pdk/cli/util/option_validator.rb
|
274
|
+
- lib/pdk/cli/util/spinner.rb
|
275
|
+
- lib/pdk/cli/util/update_manager_printer.rb
|
281
276
|
- lib/pdk/cli/validate.rb
|
277
|
+
- lib/pdk/config.rb
|
278
|
+
- lib/pdk/config/errors.rb
|
279
|
+
- lib/pdk/config/ini_file.rb
|
280
|
+
- lib/pdk/config/ini_file_setting.rb
|
281
|
+
- lib/pdk/config/json.rb
|
282
|
+
- lib/pdk/config/json_schema_namespace.rb
|
283
|
+
- lib/pdk/config/json_schema_setting.rb
|
284
|
+
- lib/pdk/config/json_with_schema.rb
|
285
|
+
- lib/pdk/config/namespace.rb
|
286
|
+
- lib/pdk/config/setting.rb
|
287
|
+
- lib/pdk/config/task_schema.json
|
288
|
+
- lib/pdk/config/validator.rb
|
289
|
+
- lib/pdk/config/yaml.rb
|
290
|
+
- lib/pdk/config/yaml_with_schema.rb
|
291
|
+
- lib/pdk/context.rb
|
292
|
+
- lib/pdk/context/control_repo.rb
|
293
|
+
- lib/pdk/context/module.rb
|
294
|
+
- lib/pdk/context/none.rb
|
295
|
+
- lib/pdk/control_repo.rb
|
282
296
|
- lib/pdk/generate.rb
|
283
297
|
- lib/pdk/generate/defined_type.rb
|
298
|
+
- lib/pdk/generate/fact.rb
|
299
|
+
- lib/pdk/generate/function.rb
|
284
300
|
- lib/pdk/generate/module.rb
|
285
301
|
- lib/pdk/generate/provider.rb
|
286
302
|
- lib/pdk/generate/puppet_class.rb
|
287
303
|
- lib/pdk/generate/puppet_object.rb
|
288
304
|
- lib/pdk/generate/task.rb
|
289
|
-
- lib/pdk/
|
305
|
+
- lib/pdk/generate/transport.rb
|
290
306
|
- lib/pdk/logger.rb
|
291
307
|
- lib/pdk/module.rb
|
292
308
|
- lib/pdk/module/build.rb
|
293
309
|
- lib/pdk/module/convert.rb
|
294
310
|
- lib/pdk/module/metadata.rb
|
295
|
-
- lib/pdk/module/
|
311
|
+
- lib/pdk/module/release.rb
|
296
312
|
- lib/pdk/module/update.rb
|
297
313
|
- lib/pdk/module/update_manager.rb
|
314
|
+
- lib/pdk/monkey_patches.rb
|
298
315
|
- lib/pdk/report.rb
|
299
316
|
- lib/pdk/report/event.rb
|
300
|
-
- lib/pdk/
|
317
|
+
- lib/pdk/template.rb
|
318
|
+
- lib/pdk/template/fetcher.rb
|
319
|
+
- lib/pdk/template/fetcher/git.rb
|
320
|
+
- lib/pdk/template/fetcher/local.rb
|
321
|
+
- lib/pdk/template/renderer.rb
|
322
|
+
- lib/pdk/template/renderer/v1.rb
|
323
|
+
- lib/pdk/template/renderer/v1/legacy_template_dir.rb
|
324
|
+
- lib/pdk/template/renderer/v1/renderer.rb
|
325
|
+
- lib/pdk/template/renderer/v1/template_file.rb
|
326
|
+
- lib/pdk/template/template_dir.rb
|
301
327
|
- lib/pdk/tests/unit.rb
|
302
328
|
- lib/pdk/util.rb
|
303
329
|
- lib/pdk/util/bundler.rb
|
330
|
+
- lib/pdk/util/changelog_generator.rb
|
331
|
+
- lib/pdk/util/env.rb
|
304
332
|
- lib/pdk/util/filesystem.rb
|
305
333
|
- lib/pdk/util/git.rb
|
334
|
+
- lib/pdk/util/json_finder.rb
|
335
|
+
- lib/pdk/util/puppet_strings.rb
|
306
336
|
- lib/pdk/util/puppet_version.rb
|
307
337
|
- lib/pdk/util/ruby_version.rb
|
338
|
+
- lib/pdk/util/template_uri.rb
|
308
339
|
- lib/pdk/util/vendored_file.rb
|
309
340
|
- lib/pdk/util/version.rb
|
310
341
|
- lib/pdk/util/windows.rb
|
311
342
|
- lib/pdk/util/windows/api_types.rb
|
312
343
|
- lib/pdk/util/windows/file.rb
|
344
|
+
- lib/pdk/util/windows/process.rb
|
313
345
|
- lib/pdk/util/windows/string.rb
|
314
346
|
- lib/pdk/validate.rb
|
315
|
-
- lib/pdk/validate/
|
316
|
-
- lib/pdk/validate/
|
317
|
-
- lib/pdk/validate/
|
318
|
-
- lib/pdk/validate/
|
319
|
-
- lib/pdk/validate/
|
320
|
-
- lib/pdk/validate/
|
321
|
-
- lib/pdk/validate/
|
322
|
-
- lib/pdk/validate/
|
323
|
-
- lib/pdk/validate/
|
324
|
-
- lib/pdk/validate/
|
325
|
-
- lib/pdk/validate/
|
326
|
-
- lib/pdk/validate/
|
327
|
-
- lib/pdk/validate/
|
328
|
-
- lib/pdk/validate/
|
347
|
+
- lib/pdk/validate/control_repo/control_repo_validator_group.rb
|
348
|
+
- lib/pdk/validate/control_repo/environment_conf_validator.rb
|
349
|
+
- lib/pdk/validate/external_command_validator.rb
|
350
|
+
- lib/pdk/validate/internal_ruby_validator.rb
|
351
|
+
- lib/pdk/validate/invokable_validator.rb
|
352
|
+
- lib/pdk/validate/metadata/metadata_json_lint_validator.rb
|
353
|
+
- lib/pdk/validate/metadata/metadata_syntax_validator.rb
|
354
|
+
- lib/pdk/validate/metadata/metadata_validator_group.rb
|
355
|
+
- lib/pdk/validate/puppet/puppet_epp_validator.rb
|
356
|
+
- lib/pdk/validate/puppet/puppet_lint_validator.rb
|
357
|
+
- lib/pdk/validate/puppet/puppet_plan_syntax_validator.rb
|
358
|
+
- lib/pdk/validate/puppet/puppet_syntax_validator.rb
|
359
|
+
- lib/pdk/validate/puppet/puppet_validator_group.rb
|
360
|
+
- lib/pdk/validate/ruby/ruby_rubocop_validator.rb
|
361
|
+
- lib/pdk/validate/ruby/ruby_validator_group.rb
|
362
|
+
- lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb
|
363
|
+
- lib/pdk/validate/tasks/tasks_name_validator.rb
|
364
|
+
- lib/pdk/validate/tasks/tasks_validator_group.rb
|
365
|
+
- lib/pdk/validate/validator.rb
|
366
|
+
- lib/pdk/validate/validator_group.rb
|
367
|
+
- lib/pdk/validate/yaml/yaml_syntax_validator.rb
|
368
|
+
- lib/pdk/validate/yaml/yaml_validator_group.rb
|
329
369
|
- lib/pdk/version.rb
|
330
|
-
- locales/config.yaml
|
331
|
-
- locales/pdk.pot
|
332
370
|
homepage: https://github.com/puppetlabs/pdk
|
333
371
|
licenses: []
|
334
|
-
metadata:
|
372
|
+
metadata:
|
373
|
+
rubygems_mfa_required: 'true'
|
335
374
|
post_install_message:
|
336
375
|
rdoc_options: []
|
337
376
|
require_paths:
|
@@ -340,15 +379,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
340
379
|
requirements:
|
341
380
|
- - ">="
|
342
381
|
- !ruby/object:Gem::Version
|
343
|
-
version: 2.
|
382
|
+
version: 2.7.0
|
344
383
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
384
|
requirements:
|
346
385
|
- - ">="
|
347
386
|
- !ruby/object:Gem::Version
|
348
387
|
version: '0'
|
349
388
|
requirements: []
|
350
|
-
|
351
|
-
rubygems_version: 2.6.14
|
389
|
+
rubygems_version: 3.1.6
|
352
390
|
signing_key:
|
353
391
|
specification_version: 4
|
354
392
|
summary: A key part of the Puppet Development Kit, the shortest path to better modules
|
data/lib/pdk/cli/module/build.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'tty-prompt'
|
2
|
-
|
3
|
-
module PDK::CLI
|
4
|
-
@module_build_cmd = @module_cmd.define_command do
|
5
|
-
name 'build'
|
6
|
-
usage _('build')
|
7
|
-
summary _('This command is now \'pdk build\'.')
|
8
|
-
|
9
|
-
run do |_opts, _args, _cmd|
|
10
|
-
PDK.logger.warn(_('Modules are built using the ‘pdk build’ command.'))
|
11
|
-
exit 1
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
require 'tty-prompt'
|
2
|
-
|
3
|
-
module PDK::CLI
|
4
|
-
@module_generate_cmd = @module_cmd.define_command do
|
5
|
-
name 'generate'
|
6
|
-
usage _('generate [options] <module_name>')
|
7
|
-
summary _('This command is now \'pdk new module\'.')
|
8
|
-
|
9
|
-
PDK::CLI.template_url_option(self)
|
10
|
-
PDK::CLI.skip_interview_option(self)
|
11
|
-
|
12
|
-
run do |opts, args, _cmd|
|
13
|
-
require 'pdk/generate/module'
|
14
|
-
|
15
|
-
module_name = args[0]
|
16
|
-
|
17
|
-
if module_name.nil? || module_name.empty?
|
18
|
-
puts command.help
|
19
|
-
exit 1
|
20
|
-
end
|
21
|
-
|
22
|
-
PDK.logger.info(_('New modules are created using the ‘pdk new module’ command.'))
|
23
|
-
prompt = TTY::Prompt.new(help_color: :cyan)
|
24
|
-
redirect = PDK::CLI::Util::CommandRedirector.new(prompt)
|
25
|
-
redirect.target_command('pdk new module')
|
26
|
-
answer = redirect.run
|
27
|
-
|
28
|
-
if answer
|
29
|
-
module_name_parts = module_name.split('-', 2)
|
30
|
-
if module_name_parts.size > 1
|
31
|
-
opts[:username] = module_name_parts[0]
|
32
|
-
opts[:module_name] = module_name_parts[1]
|
33
|
-
else
|
34
|
-
opts[:module_name] = module_name
|
35
|
-
end
|
36
|
-
opts[:target_dir] = opts[:module_name]
|
37
|
-
|
38
|
-
PDK.logger.info(_('Creating new module: %{modname}') % { modname: module_name })
|
39
|
-
PDK::Generate::Module.invoke(opts)
|
40
|
-
else
|
41
|
-
exit 1
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
data/lib/pdk/cli/module.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
module PDK::CLI
|
2
|
-
@module_cmd = @base_cmd.define_command do
|
3
|
-
name 'module'
|
4
|
-
usage _('module [options]')
|
5
|
-
summary _('Provide CLI-backwards compatibility to the puppet module tool.')
|
6
|
-
description _('This command is only for reminding you how to accomplish tasks with the PDK, when you were previously doing them with the puppet module command.')
|
7
|
-
default_subcommand 'help'
|
8
|
-
end
|
9
|
-
|
10
|
-
@module_cmd.add_command Cri::Command.new_basic_help
|
11
|
-
end
|
12
|
-
|
13
|
-
require 'pdk/cli/module/build'
|
14
|
-
require 'pdk/cli/module/generate'
|
data/lib/pdk/i18n.rb
DELETED