pdk-akerl 1.9.1.1 → 1.14.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +180 -0
  3. data/README.md +43 -4
  4. data/lib/pdk.rb +4 -2
  5. data/lib/pdk/analytics.rb +44 -0
  6. data/lib/pdk/analytics/client/google_analytics.rb +141 -0
  7. data/lib/pdk/analytics/client/noop.rb +23 -0
  8. data/lib/pdk/analytics/util.rb +17 -0
  9. data/lib/pdk/answer_file.rb +4 -1
  10. data/lib/pdk/cli.rb +50 -3
  11. data/lib/pdk/cli/build.rb +10 -4
  12. data/lib/pdk/cli/bundle.rb +10 -8
  13. data/lib/pdk/cli/config.rb +20 -0
  14. data/lib/pdk/cli/config/get.rb +24 -0
  15. data/lib/pdk/cli/console.rb +148 -0
  16. data/lib/pdk/cli/convert.rb +7 -2
  17. data/lib/pdk/cli/exec.rb +22 -190
  18. data/lib/pdk/cli/exec/command.rb +238 -0
  19. data/lib/pdk/cli/exec/interactive_command.rb +114 -0
  20. data/lib/pdk/cli/exec_group.rb +6 -6
  21. data/lib/pdk/cli/module/build.rb +0 -2
  22. data/lib/pdk/cli/module/generate.rb +4 -2
  23. data/lib/pdk/cli/new.rb +2 -0
  24. data/lib/pdk/cli/new/class.rb +2 -2
  25. data/lib/pdk/cli/new/defined_type.rb +4 -2
  26. data/lib/pdk/cli/new/module.rb +5 -0
  27. data/lib/pdk/cli/new/provider.rb +4 -2
  28. data/lib/pdk/cli/new/task.rb +4 -1
  29. data/lib/pdk/cli/new/test.rb +53 -0
  30. data/lib/pdk/cli/new/transport.rb +27 -0
  31. data/lib/pdk/cli/test.rb +0 -1
  32. data/lib/pdk/cli/test/unit.rb +18 -13
  33. data/lib/pdk/cli/update.rb +25 -3
  34. data/lib/pdk/cli/util.rb +111 -14
  35. data/lib/pdk/cli/util/interview.rb +10 -2
  36. data/lib/pdk/cli/util/option_validator.rb +4 -0
  37. data/lib/pdk/cli/util/spinner.rb +13 -0
  38. data/lib/pdk/cli/validate.rb +16 -5
  39. data/lib/pdk/config.rb +121 -0
  40. data/lib/pdk/config/analytics_schema.json +26 -0
  41. data/lib/pdk/config/errors.rb +5 -0
  42. data/lib/pdk/config/json.rb +34 -0
  43. data/lib/pdk/config/json_schema_namespace.rb +143 -0
  44. data/lib/pdk/config/json_schema_setting.rb +53 -0
  45. data/lib/pdk/config/json_with_schema.rb +50 -0
  46. data/lib/pdk/config/namespace.rb +332 -0
  47. data/lib/pdk/config/setting.rb +132 -0
  48. data/lib/pdk/config/yaml.rb +43 -0
  49. data/lib/pdk/config/yaml_with_schema.rb +59 -0
  50. data/lib/pdk/generate.rb +10 -3
  51. data/lib/pdk/generate/defined_type.rb +1 -0
  52. data/lib/pdk/generate/module.rb +62 -35
  53. data/lib/pdk/generate/provider.rb +0 -5
  54. data/lib/pdk/generate/puppet_class.rb +1 -0
  55. data/lib/pdk/generate/puppet_object.rb +88 -41
  56. data/lib/pdk/generate/transport.rb +87 -0
  57. data/lib/pdk/logger.rb +21 -1
  58. data/lib/pdk/module.rb +2 -2
  59. data/lib/pdk/module/build.rb +103 -10
  60. data/lib/pdk/module/convert.rb +85 -19
  61. data/lib/pdk/module/metadata.rb +17 -12
  62. data/lib/pdk/module/templatedir.rb +108 -40
  63. data/lib/pdk/module/update.rb +27 -15
  64. data/lib/pdk/module/update_manager.rb +23 -15
  65. data/lib/pdk/report.rb +4 -3
  66. data/lib/pdk/report/event.rb +8 -6
  67. data/lib/pdk/template_file.rb +1 -1
  68. data/lib/pdk/tests/unit.rb +48 -21
  69. data/lib/pdk/util.rb +29 -63
  70. data/lib/pdk/util/bundler.rb +19 -15
  71. data/lib/pdk/util/filesystem.rb +64 -1
  72. data/lib/pdk/util/git.rb +52 -1
  73. data/lib/pdk/util/puppet_strings.rb +123 -0
  74. data/lib/pdk/util/puppet_version.rb +27 -12
  75. data/lib/pdk/util/ruby_version.rb +30 -7
  76. data/lib/pdk/util/template_uri.rb +281 -0
  77. data/lib/pdk/util/vendored_file.rb +28 -24
  78. data/lib/pdk/util/version.rb +7 -8
  79. data/lib/pdk/util/windows.rb +1 -0
  80. data/lib/pdk/util/windows/api_types.rb +0 -7
  81. data/lib/pdk/util/windows/file.rb +1 -1
  82. data/lib/pdk/util/windows/string.rb +1 -1
  83. data/lib/pdk/validate/base_validator.rb +12 -14
  84. data/lib/pdk/validate/metadata/metadata_json_lint.rb +0 -4
  85. data/lib/pdk/validate/metadata/metadata_syntax.rb +5 -3
  86. data/lib/pdk/validate/metadata_validator.rb +0 -2
  87. data/lib/pdk/validate/puppet/puppet_epp.rb +137 -0
  88. data/lib/pdk/validate/puppet/puppet_lint.rb +0 -3
  89. data/lib/pdk/validate/puppet/puppet_syntax.rb +5 -5
  90. data/lib/pdk/validate/puppet_validator.rb +2 -3
  91. data/lib/pdk/validate/ruby/rubocop.rb +1 -6
  92. data/lib/pdk/validate/ruby_validator.rb +0 -2
  93. data/lib/pdk/validate/tasks/metadata_lint.rb +9 -5
  94. data/lib/pdk/validate/tasks/name.rb +5 -3
  95. data/lib/pdk/validate/tasks_validator.rb +0 -2
  96. data/lib/pdk/validate/yaml/syntax.rb +6 -4
  97. data/lib/pdk/validate/yaml_validator.rb +0 -2
  98. data/lib/pdk/version.rb +1 -1
  99. data/locales/pdk.pot +634 -307
  100. metadata +100 -45
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdk-akerl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.1
4
+ version: 1.14.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,34 +30,62 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: childprocess
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.7.1
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.7.1
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: cri
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: 2.10.1
53
+ version: '2.10'
40
54
  type: :runtime
41
55
  prerelease: false
42
56
  version_requirements: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - "~>"
45
59
  - !ruby/object:Gem::Version
46
- version: 2.10.1
60
+ version: '2.10'
47
61
  - !ruby/object:Gem::Dependency
48
- name: childprocess
62
+ name: diff-lcs
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: '1.3'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '='
73
+ - !ruby/object:Gem::Version
74
+ version: '1.3'
75
+ - !ruby/object:Gem::Dependency
76
+ name: ffi
49
77
  requirement: !ruby/object:Gem::Requirement
50
78
  requirements:
51
79
  - - "~>"
52
80
  - !ruby/object:Gem::Version
53
- version: 0.7.1
81
+ version: 1.9.0
54
82
  type: :runtime
55
83
  prerelease: false
56
84
  version_requirements: !ruby/object:Gem::Requirement
57
85
  requirements:
58
86
  - - "~>"
59
87
  - !ruby/object:Gem::Version
60
- version: 0.7.1
88
+ version: 1.9.0
61
89
  - !ruby/object:Gem::Dependency
62
90
  name: gettext-setup
63
91
  requirement: !ruby/object:Gem::Requirement
@@ -73,33 +101,33 @@ dependencies:
73
101
  - !ruby/object:Gem::Version
74
102
  version: '0.24'
75
103
  - !ruby/object:Gem::Dependency
76
- name: tty-spinner
104
+ name: hitimes
77
105
  requirement: !ruby/object:Gem::Requirement
78
106
  requirements:
79
107
  - - '='
80
108
  - !ruby/object:Gem::Version
81
- version: 0.5.0
109
+ version: 1.3.0
82
110
  type: :runtime
83
111
  prerelease: false
84
112
  version_requirements: !ruby/object:Gem::Requirement
85
113
  requirements:
86
114
  - - '='
87
115
  - !ruby/object:Gem::Version
88
- version: 0.5.0
116
+ version: 1.3.0
89
117
  - !ruby/object:Gem::Dependency
90
- name: tty-prompt
118
+ name: json-schema
91
119
  requirement: !ruby/object:Gem::Requirement
92
120
  requirements:
93
121
  - - '='
94
122
  - !ruby/object:Gem::Version
95
- version: 0.13.1
123
+ version: 2.8.0
96
124
  type: :runtime
97
125
  prerelease: false
98
126
  version_requirements: !ruby/object:Gem::Requirement
99
127
  requirements:
100
128
  - - '='
101
129
  - !ruby/object:Gem::Version
102
- version: 0.13.1
130
+ version: 2.8.0
103
131
  - !ruby/object:Gem::Dependency
104
132
  name: json_pure
105
133
  requirement: !ruby/object:Gem::Requirement
@@ -115,117 +143,117 @@ dependencies:
115
143
  - !ruby/object:Gem::Version
116
144
  version: 2.1.0
117
145
  - !ruby/object:Gem::Dependency
118
- name: json-schema
146
+ name: minitar
119
147
  requirement: !ruby/object:Gem::Requirement
120
148
  requirements:
121
- - - '='
149
+ - - "~>"
122
150
  - !ruby/object:Gem::Version
123
- version: 2.8.0
151
+ version: 0.6.1
124
152
  type: :runtime
125
153
  prerelease: false
126
154
  version_requirements: !ruby/object:Gem::Requirement
127
155
  requirements:
128
- - - '='
156
+ - - "~>"
129
157
  - !ruby/object:Gem::Version
130
- version: 2.8.0
158
+ version: 0.6.1
131
159
  - !ruby/object:Gem::Dependency
132
- name: tty-which
160
+ name: pathspec
133
161
  requirement: !ruby/object:Gem::Requirement
134
162
  requirements:
135
- - - '='
163
+ - - "~>"
136
164
  - !ruby/object:Gem::Version
137
- version: 0.3.0
165
+ version: 0.2.1
138
166
  type: :runtime
139
167
  prerelease: false
140
168
  version_requirements: !ruby/object:Gem::Requirement
141
169
  requirements:
142
- - - '='
170
+ - - "~>"
143
171
  - !ruby/object:Gem::Version
144
- version: 0.3.0
172
+ version: 0.2.1
145
173
  - !ruby/object:Gem::Dependency
146
- name: diff-lcs
174
+ name: tty-prompt
147
175
  requirement: !ruby/object:Gem::Requirement
148
176
  requirements:
149
- - - '='
177
+ - - "~>"
150
178
  - !ruby/object:Gem::Version
151
- version: '1.3'
179
+ version: '0.13'
152
180
  type: :runtime
153
181
  prerelease: false
154
182
  version_requirements: !ruby/object:Gem::Requirement
155
183
  requirements:
156
- - - '='
184
+ - - "~>"
157
185
  - !ruby/object:Gem::Version
158
- version: '1.3'
186
+ version: '0.13'
159
187
  - !ruby/object:Gem::Dependency
160
- name: minitar
188
+ name: tty-spinner
161
189
  requirement: !ruby/object:Gem::Requirement
162
190
  requirements:
163
191
  - - "~>"
164
192
  - !ruby/object:Gem::Version
165
- version: 0.6.1
193
+ version: '0.5'
166
194
  type: :runtime
167
195
  prerelease: false
168
196
  version_requirements: !ruby/object:Gem::Requirement
169
197
  requirements:
170
198
  - - "~>"
171
199
  - !ruby/object:Gem::Version
172
- version: 0.6.1
200
+ version: '0.5'
173
201
  - !ruby/object:Gem::Dependency
174
- name: pathspec
202
+ name: tty-which
175
203
  requirement: !ruby/object:Gem::Requirement
176
204
  requirements:
177
205
  - - "~>"
178
206
  - !ruby/object:Gem::Version
179
- version: 0.2.1
207
+ version: '0.3'
180
208
  type: :runtime
181
209
  prerelease: false
182
210
  version_requirements: !ruby/object:Gem::Requirement
183
211
  requirements:
184
212
  - - "~>"
185
213
  - !ruby/object:Gem::Version
186
- version: 0.2.1
214
+ version: '0.3'
187
215
  - !ruby/object:Gem::Dependency
188
- name: ffi
216
+ name: concurrent-ruby
189
217
  requirement: !ruby/object:Gem::Requirement
190
218
  requirements:
191
219
  - - "~>"
192
220
  - !ruby/object:Gem::Version
193
- version: 1.9.0
221
+ version: 1.1.5
194
222
  type: :runtime
195
223
  prerelease: false
196
224
  version_requirements: !ruby/object:Gem::Requirement
197
225
  requirements:
198
226
  - - "~>"
199
227
  - !ruby/object:Gem::Version
200
- version: 1.9.0
228
+ version: 1.1.5
201
229
  - !ruby/object:Gem::Dependency
202
- name: hitimes
230
+ name: facter
203
231
  requirement: !ruby/object:Gem::Requirement
204
232
  requirements:
205
- - - '='
233
+ - - "~>"
206
234
  - !ruby/object:Gem::Version
207
- version: 1.3.0
235
+ version: 2.5.1
208
236
  type: :runtime
209
237
  prerelease: false
210
238
  version_requirements: !ruby/object:Gem::Requirement
211
239
  requirements:
212
- - - '='
240
+ - - "~>"
213
241
  - !ruby/object:Gem::Version
214
- version: 1.3.0
242
+ version: 2.5.1
215
243
  - !ruby/object:Gem::Dependency
216
- name: net-ssh
244
+ name: httpclient
217
245
  requirement: !ruby/object:Gem::Requirement
218
246
  requirements:
219
247
  - - "~>"
220
248
  - !ruby/object:Gem::Version
221
- version: 4.2.0
249
+ version: 2.8.3
222
250
  type: :runtime
223
251
  prerelease: false
224
252
  version_requirements: !ruby/object:Gem::Requirement
225
253
  requirements:
226
254
  - - "~>"
227
255
  - !ruby/object:Gem::Version
228
- version: 4.2.0
256
+ version: 2.8.3
229
257
  - !ruby/object:Gem::Dependency
230
258
  name: deep_merge
231
259
  requirement: !ruby/object:Gem::Requirement
@@ -253,13 +281,22 @@ files:
253
281
  - README.md
254
282
  - exe/pdk
255
283
  - lib/pdk.rb
284
+ - lib/pdk/analytics.rb
285
+ - lib/pdk/analytics/client/google_analytics.rb
286
+ - lib/pdk/analytics/client/noop.rb
287
+ - lib/pdk/analytics/util.rb
256
288
  - lib/pdk/answer_file.rb
257
289
  - lib/pdk/cli.rb
258
290
  - lib/pdk/cli/build.rb
259
291
  - lib/pdk/cli/bundle.rb
292
+ - lib/pdk/cli/config.rb
293
+ - lib/pdk/cli/config/get.rb
294
+ - lib/pdk/cli/console.rb
260
295
  - lib/pdk/cli/convert.rb
261
296
  - lib/pdk/cli/errors.rb
262
297
  - lib/pdk/cli/exec.rb
298
+ - lib/pdk/cli/exec/command.rb
299
+ - lib/pdk/cli/exec/interactive_command.rb
263
300
  - lib/pdk/cli/exec_group.rb
264
301
  - lib/pdk/cli/module.rb
265
302
  - lib/pdk/cli/module/build.rb
@@ -270,6 +307,8 @@ files:
270
307
  - lib/pdk/cli/new/module.rb
271
308
  - lib/pdk/cli/new/provider.rb
272
309
  - lib/pdk/cli/new/task.rb
310
+ - lib/pdk/cli/new/test.rb
311
+ - lib/pdk/cli/new/transport.rb
273
312
  - lib/pdk/cli/test.rb
274
313
  - lib/pdk/cli/test/unit.rb
275
314
  - lib/pdk/cli/update.rb
@@ -278,7 +317,19 @@ files:
278
317
  - lib/pdk/cli/util/interview.rb
279
318
  - lib/pdk/cli/util/option_normalizer.rb
280
319
  - lib/pdk/cli/util/option_validator.rb
320
+ - lib/pdk/cli/util/spinner.rb
281
321
  - lib/pdk/cli/validate.rb
322
+ - lib/pdk/config.rb
323
+ - lib/pdk/config/analytics_schema.json
324
+ - lib/pdk/config/errors.rb
325
+ - lib/pdk/config/json.rb
326
+ - lib/pdk/config/json_schema_namespace.rb
327
+ - lib/pdk/config/json_schema_setting.rb
328
+ - lib/pdk/config/json_with_schema.rb
329
+ - lib/pdk/config/namespace.rb
330
+ - lib/pdk/config/setting.rb
331
+ - lib/pdk/config/yaml.rb
332
+ - lib/pdk/config/yaml_with_schema.rb
282
333
  - lib/pdk/generate.rb
283
334
  - lib/pdk/generate/defined_type.rb
284
335
  - lib/pdk/generate/module.rb
@@ -286,6 +337,7 @@ files:
286
337
  - lib/pdk/generate/puppet_class.rb
287
338
  - lib/pdk/generate/puppet_object.rb
288
339
  - lib/pdk/generate/task.rb
340
+ - lib/pdk/generate/transport.rb
289
341
  - lib/pdk/i18n.rb
290
342
  - lib/pdk/logger.rb
291
343
  - lib/pdk/module.rb
@@ -303,8 +355,10 @@ files:
303
355
  - lib/pdk/util/bundler.rb
304
356
  - lib/pdk/util/filesystem.rb
305
357
  - lib/pdk/util/git.rb
358
+ - lib/pdk/util/puppet_strings.rb
306
359
  - lib/pdk/util/puppet_version.rb
307
360
  - lib/pdk/util/ruby_version.rb
361
+ - lib/pdk/util/template_uri.rb
308
362
  - lib/pdk/util/vendored_file.rb
309
363
  - lib/pdk/util/version.rb
310
364
  - lib/pdk/util/windows.rb
@@ -316,6 +370,7 @@ files:
316
370
  - lib/pdk/validate/metadata/metadata_json_lint.rb
317
371
  - lib/pdk/validate/metadata/metadata_syntax.rb
318
372
  - lib/pdk/validate/metadata_validator.rb
373
+ - lib/pdk/validate/puppet/puppet_epp.rb
319
374
  - lib/pdk/validate/puppet/puppet_lint.rb
320
375
  - lib/pdk/validate/puppet/puppet_syntax.rb
321
376
  - lib/pdk/validate/puppet_validator.rb