pdk 1.15.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +168 -10
  3. data/README.md +1 -1
  4. data/lib/pdk.rb +28 -19
  5. data/lib/pdk/answer_file.rb +2 -93
  6. data/lib/pdk/bolt.rb +19 -0
  7. data/lib/pdk/cli.rb +7 -6
  8. data/lib/pdk/cli/bundle.rb +5 -1
  9. data/lib/pdk/cli/config.rb +3 -1
  10. data/lib/pdk/cli/config/get.rb +3 -1
  11. data/lib/pdk/cli/convert.rb +7 -9
  12. data/lib/pdk/cli/exec/command.rb +45 -4
  13. data/lib/pdk/cli/exec_group.rb +78 -43
  14. data/lib/pdk/cli/get.rb +20 -0
  15. data/lib/pdk/cli/get/config.rb +24 -0
  16. data/lib/pdk/cli/new.rb +2 -0
  17. data/lib/pdk/cli/new/class.rb +2 -2
  18. data/lib/pdk/cli/new/defined_type.rb +2 -2
  19. data/lib/pdk/cli/new/fact.rb +29 -0
  20. data/lib/pdk/cli/new/function.rb +29 -0
  21. data/lib/pdk/cli/new/provider.rb +2 -2
  22. data/lib/pdk/cli/new/task.rb +2 -2
  23. data/lib/pdk/cli/new/test.rb +2 -2
  24. data/lib/pdk/cli/new/transport.rb +2 -2
  25. data/lib/pdk/cli/release/publish.rb +11 -1
  26. data/lib/pdk/cli/remove.rb +20 -0
  27. data/lib/pdk/cli/remove/config.rb +80 -0
  28. data/lib/pdk/cli/set.rb +20 -0
  29. data/lib/pdk/cli/set/config.rb +119 -0
  30. data/lib/pdk/cli/update.rb +6 -8
  31. data/lib/pdk/cli/util.rb +7 -3
  32. data/lib/pdk/cli/util/option_validator.rb +6 -0
  33. data/lib/pdk/cli/util/update_manager_printer.rb +82 -0
  34. data/lib/pdk/cli/validate.rb +26 -44
  35. data/lib/pdk/config.rb +264 -7
  36. data/lib/pdk/config/ini_file.rb +183 -0
  37. data/lib/pdk/config/ini_file_setting.rb +39 -0
  38. data/lib/pdk/config/namespace.rb +25 -5
  39. data/lib/pdk/config/setting.rb +3 -2
  40. data/lib/pdk/context.rb +99 -0
  41. data/lib/pdk/context/control_repo.rb +60 -0
  42. data/lib/pdk/context/module.rb +28 -0
  43. data/lib/pdk/context/none.rb +22 -0
  44. data/lib/pdk/control_repo.rb +90 -0
  45. data/lib/pdk/generate/defined_type.rb +25 -32
  46. data/lib/pdk/generate/fact.rb +25 -0
  47. data/lib/pdk/generate/function.rb +48 -0
  48. data/lib/pdk/generate/module.rb +33 -20
  49. data/lib/pdk/generate/provider.rb +15 -64
  50. data/lib/pdk/generate/puppet_class.rb +25 -31
  51. data/lib/pdk/generate/puppet_object.rb +84 -188
  52. data/lib/pdk/generate/task.rb +28 -46
  53. data/lib/pdk/generate/transport.rb +20 -74
  54. data/lib/pdk/module.rb +1 -1
  55. data/lib/pdk/module/build.rb +23 -0
  56. data/lib/pdk/module/convert.rb +58 -34
  57. data/lib/pdk/module/metadata.rb +6 -2
  58. data/lib/pdk/module/release.rb +3 -9
  59. data/lib/pdk/module/update.rb +8 -12
  60. data/lib/pdk/module/update_manager.rb +7 -0
  61. data/lib/pdk/report.rb +3 -3
  62. data/lib/pdk/report/event.rb +8 -2
  63. data/lib/pdk/template.rb +59 -0
  64. data/lib/pdk/template/fetcher.rb +98 -0
  65. data/lib/pdk/template/fetcher/git.rb +85 -0
  66. data/lib/pdk/template/fetcher/local.rb +28 -0
  67. data/lib/pdk/template/renderer.rb +96 -0
  68. data/lib/pdk/template/renderer/v1.rb +25 -0
  69. data/lib/pdk/template/renderer/v1/legacy_template_dir.rb +116 -0
  70. data/lib/pdk/template/renderer/v1/renderer.rb +132 -0
  71. data/lib/pdk/template/renderer/v1/template_file.rb +102 -0
  72. data/lib/pdk/template/template_dir.rb +67 -0
  73. data/lib/pdk/tests/unit.rb +8 -1
  74. data/lib/pdk/util.rb +38 -39
  75. data/lib/pdk/util/bundler.rb +2 -1
  76. data/lib/pdk/util/changelog_generator.rb +11 -2
  77. data/lib/pdk/util/env.rb +28 -11
  78. data/lib/pdk/util/json_finder.rb +84 -0
  79. data/lib/pdk/util/puppet_strings.rb +3 -3
  80. data/lib/pdk/util/puppet_version.rb +2 -2
  81. data/lib/pdk/util/ruby_version.rb +11 -4
  82. data/lib/pdk/util/template_uri.rb +17 -14
  83. data/lib/pdk/util/vendored_file.rb +1 -2
  84. data/lib/pdk/validate.rb +79 -25
  85. data/lib/pdk/validate/control_repo/control_repo_validator_group.rb +23 -0
  86. data/lib/pdk/validate/control_repo/environment_conf_validator.rb +98 -0
  87. data/lib/pdk/validate/external_command_validator.rb +208 -0
  88. data/lib/pdk/validate/internal_ruby_validator.rb +100 -0
  89. data/lib/pdk/validate/invokable_validator.rb +220 -0
  90. data/lib/pdk/validate/metadata/metadata_json_lint_validator.rb +86 -0
  91. data/lib/pdk/validate/metadata/metadata_syntax_validator.rb +78 -0
  92. data/lib/pdk/validate/metadata/metadata_validator_group.rb +20 -0
  93. data/lib/pdk/validate/puppet/puppet_epp_validator.rb +133 -0
  94. data/lib/pdk/validate/puppet/puppet_lint_validator.rb +66 -0
  95. data/lib/pdk/validate/puppet/puppet_syntax_validator.rb +137 -0
  96. data/lib/pdk/validate/puppet/puppet_validator_group.rb +21 -0
  97. data/lib/pdk/validate/ruby/ruby_rubocop_validator.rb +80 -0
  98. data/lib/pdk/validate/ruby/ruby_validator_group.rb +19 -0
  99. data/lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb +88 -0
  100. data/lib/pdk/validate/tasks/tasks_name_validator.rb +50 -0
  101. data/lib/pdk/validate/tasks/tasks_validator_group.rb +20 -0
  102. data/lib/pdk/validate/validator.rb +118 -0
  103. data/lib/pdk/validate/validator_group.rb +104 -0
  104. data/lib/pdk/validate/yaml/yaml_syntax_validator.rb +95 -0
  105. data/lib/pdk/validate/yaml/yaml_validator_group.rb +19 -0
  106. data/lib/pdk/version.rb +1 -1
  107. data/locales/pdk.pot +513 -329
  108. metadata +76 -32
  109. data/lib/pdk/module/template_dir.rb +0 -115
  110. data/lib/pdk/module/template_dir/base.rb +0 -268
  111. data/lib/pdk/module/template_dir/git.rb +0 -91
  112. data/lib/pdk/module/template_dir/local.rb +0 -21
  113. data/lib/pdk/template_file.rb +0 -96
  114. data/lib/pdk/validate/base_validator.rb +0 -215
  115. data/lib/pdk/validate/metadata/metadata_json_lint.rb +0 -82
  116. data/lib/pdk/validate/metadata/metadata_syntax.rb +0 -111
  117. data/lib/pdk/validate/metadata_validator.rb +0 -26
  118. data/lib/pdk/validate/puppet/puppet_epp.rb +0 -135
  119. data/lib/pdk/validate/puppet/puppet_lint.rb +0 -64
  120. data/lib/pdk/validate/puppet/puppet_syntax.rb +0 -135
  121. data/lib/pdk/validate/puppet_validator.rb +0 -26
  122. data/lib/pdk/validate/ruby/rubocop.rb +0 -72
  123. data/lib/pdk/validate/ruby_validator.rb +0 -26
  124. data/lib/pdk/validate/tasks/metadata_lint.rb +0 -130
  125. data/lib/pdk/validate/tasks/name.rb +0 -90
  126. data/lib/pdk/validate/tasks_validator.rb +0 -29
  127. data/lib/pdk/validate/yaml/syntax.rb +0 -125
  128. data/lib/pdk/validate/yaml_validator.rb +0 -28
@@ -0,0 +1,95 @@
1
+ require 'pdk'
2
+
3
+ module PDK
4
+ module Validate
5
+ module YAML
6
+ class YAMLSyntaxValidator < InternalRubyValidator
7
+ YAML_ALLOWLISTED_CLASSES = [Symbol].freeze
8
+
9
+ def ignore_dotfiles
10
+ false
11
+ end
12
+
13
+ def name
14
+ 'yaml-syntax'
15
+ end
16
+
17
+ def pattern
18
+ [
19
+ '**/*.yaml',
20
+ '**/*.yml',
21
+ ].tap do |pat|
22
+ if context.is_a?(PDK::Context::ControlRepo)
23
+ pat.concat(
24
+ [
25
+ '**/*.eyaml',
26
+ '**/*.eyml',
27
+ ],
28
+ )
29
+ else
30
+ pat
31
+ end
32
+ end
33
+ end
34
+
35
+ def spinner_text
36
+ _('Checking YAML syntax (%{patterns}).') % {
37
+ patterns: pattern.join(' '),
38
+ }
39
+ end
40
+
41
+ def validate_target(report, target)
42
+ return 0 unless PDK::Util::Filesystem.file?(target)
43
+
44
+ unless PDK::Util::Filesystem.readable?(target)
45
+ report.add_event(
46
+ file: target,
47
+ source: name,
48
+ state: :failure,
49
+ severity: 'error',
50
+ message: _('Could not be read.'),
51
+ )
52
+ return 1
53
+ end
54
+
55
+ begin
56
+ ::YAML.safe_load(PDK::Util::Filesystem.read_file(target), YAML_ALLOWLISTED_CLASSES, [], true)
57
+
58
+ report.add_event(
59
+ file: target,
60
+ source: name,
61
+ state: :passed,
62
+ severity: 'ok',
63
+ )
64
+ return 0
65
+ rescue Psych::SyntaxError => e
66
+ report.add_event(
67
+ file: target,
68
+ source: name,
69
+ state: :failure,
70
+ severity: 'error',
71
+ line: e.line,
72
+ column: e.column,
73
+ message: _('%{problem} %{context}') % {
74
+ problem: e.problem,
75
+ context: e.context,
76
+ },
77
+ )
78
+ return 1
79
+ rescue Psych::DisallowedClass => e
80
+ report.add_event(
81
+ file: target,
82
+ source: name,
83
+ state: :failure,
84
+ severity: 'error',
85
+ message: _('Unsupported class: %{message}') % {
86
+ message: e.message,
87
+ },
88
+ )
89
+ return 1
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,19 @@
1
+ require 'pdk'
2
+
3
+ module PDK
4
+ module Validate
5
+ module YAML
6
+ class YAMLValidatorGroup < ValidatorGroup
7
+ def name
8
+ 'yaml'
9
+ end
10
+
11
+ def validators
12
+ [
13
+ YAMLSyntaxValidator,
14
+ ].freeze
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
data/lib/pdk/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.15.0'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
data/locales/pdk.pot CHANGED
@@ -1,16 +1,16 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2019 Puppet, Inc.
2
+ # Copyright (C) 2020 Puppet, Inc.
3
3
  # This file is distributed under the same license as the puppet development kit package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2019.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v1.14.1-59-gac5bc75\n"
9
+ "Project-Id-Version: puppet development kit v1.17.0-43-gfcce10d\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2019-12-13 13:31+1100\n"
13
- "PO-Revision-Date: 2019-12-13 13:31+1100\n"
12
+ "POT-Creation-Date: 2020-05-12 11:14-0700\n"
13
+ "PO-Revision-Date: 2020-05-12 11:14-0700\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -23,26 +23,6 @@ msgstr ""
23
23
  msgid "Unknown analytics key '%{key}'"
24
24
  msgstr ""
25
25
 
26
- #: ../lib/pdk/answer_file.rb:41
27
- msgid "Answer file can be updated only with a Hash"
28
- msgstr ""
29
-
30
- #: ../lib/pdk/answer_file.rb:68
31
- msgid "Unable to open '%{file}' for reading"
32
- msgstr ""
33
-
34
- #: ../lib/pdk/answer_file.rb:77
35
- msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
36
- msgstr ""
37
-
38
- #: ../lib/pdk/answer_file.rb:83
39
- msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
40
- msgstr ""
41
-
42
- #: ../lib/pdk/answer_file.rb:97
43
- msgid "Unable to write '%{file}': %{msg}"
44
- msgstr ""
45
-
46
26
  #: ../lib/pdk/cli.rb:56
47
27
  msgid "Support for Ruby versions older than 2.4 will be dropped in the future PDK 2.0.0 release. We recommend updating your Ruby installation to ensure that you can continue using the latest version of PDK."
48
28
  msgstr ""
@@ -103,10 +83,6 @@ msgstr ""
103
83
  msgid "Enable debug output."
104
84
  msgstr ""
105
85
 
106
- #: ../lib/pdk/cli.rb:154
107
- msgid "Path to an answer file."
108
- msgstr ""
109
-
110
86
  #: ../lib/pdk/cli/build.rb:4
111
87
  msgid "build [options]"
112
88
  msgstr ""
@@ -182,7 +158,11 @@ msgid "config [subcommand] [options]"
182
158
  msgstr ""
183
159
 
184
160
  #: ../lib/pdk/cli/config.rb:5
185
- msgid "Configure the Puppet Development Kit."
161
+ msgid "(Deprecated) Configure the Puppet Development Kit."
162
+ msgstr ""
163
+
164
+ #: ../lib/pdk/cli/config.rb:9
165
+ msgid "The 'pdk config' command is deprecated, please use 'pdk get config' and 'pdk set config' instead."
186
166
  msgstr ""
187
167
 
188
168
  #: ../lib/pdk/cli/config/get.rb:4
@@ -190,18 +170,22 @@ msgid "config get [name]"
190
170
  msgstr ""
191
171
 
192
172
  #: ../lib/pdk/cli/config/get.rb:5
193
- msgid "Retrieve the configuration for <name>. If not specified, retrieve all configuration settings"
173
+ msgid "(Deprecated) Retrieve the configuration for <name>. If not specified, retrieve all configuration settings"
174
+ msgstr ""
175
+
176
+ #: ../lib/pdk/cli/config/get.rb:8
177
+ msgid "The 'pdk config get' command is deprecated, please use 'pdk get config' instead."
194
178
  msgstr ""
195
179
 
196
- #: ../lib/pdk/cli/config/get.rb:12
180
+ #: ../lib/pdk/cli/config/get.rb:14 ../lib/pdk/cli/get/config.rb:12
197
181
  msgid "Configuration item '%{name}' does not exist"
198
182
  msgstr ""
199
183
 
200
- #: ../lib/pdk/cli/config/get.rb:17
184
+ #: ../lib/pdk/cli/config/get.rb:19 ../lib/pdk/cli/get/config.rb:17
201
185
  msgid "%{value}"
202
186
  msgstr ""
203
187
 
204
- #: ../lib/pdk/cli/config/get.rb:21
188
+ #: ../lib/pdk/cli/config/get.rb:23 ../lib/pdk/cli/get/config.rb:21 ../lib/pdk/cli/remove/config.rb:63 ../lib/pdk/cli/set/config.rb:99
205
189
  msgid "%{name}=%{value}"
206
190
  msgstr ""
207
191
 
@@ -253,23 +237,23 @@ msgstr ""
253
237
  msgid "Convert the module to use the default PDK template."
254
238
  msgstr ""
255
239
 
256
- #: ../lib/pdk/cli/convert.rb:22
240
+ #: ../lib/pdk/cli/convert.rb:21
257
241
  msgid "`pdk convert` can only be run from inside a valid module directory."
258
242
  msgstr ""
259
243
 
260
- #: ../lib/pdk/cli/convert.rb:27
244
+ #: ../lib/pdk/cli/convert.rb:25
261
245
  msgid "You can not specify --noop and --force when converting a module"
262
246
  msgstr ""
263
247
 
264
- #: ../lib/pdk/cli/convert.rb:31
248
+ #: ../lib/pdk/cli/convert.rb:29
265
249
  msgid "You can not specify --template-url and --default-template."
266
250
  msgstr ""
267
251
 
268
- #: ../lib/pdk/cli/convert.rb:42 ../lib/pdk/cli/new/module.rb:27
252
+ #: ../lib/pdk/cli/convert.rb:40 ../lib/pdk/cli/new/module.rb:27
269
253
  msgid "Ignoring --full-interview and continuing with --skip-interview."
270
254
  msgstr ""
271
255
 
272
- #: ../lib/pdk/cli/convert.rb:47
256
+ #: ../lib/pdk/cli/convert.rb:45
273
257
  msgid "Ignoring --full-interview and continuing with --force."
274
258
  msgstr ""
275
259
 
@@ -293,43 +277,43 @@ msgstr ""
293
277
  msgid "Using '%{vendored_bin}' from PDK package."
294
278
  msgstr ""
295
279
 
296
- #: ../lib/pdk/cli/exec/command.rb:42
280
+ #: ../lib/pdk/cli/exec/command.rb:50
297
281
  msgid "Expected execution context to be :system or :module but got '%{context}'."
298
282
  msgstr ""
299
283
 
300
- #: ../lib/pdk/cli/exec/command.rb:88 ../lib/pdk/cli/exec/interactive_command.rb:46
284
+ #: ../lib/pdk/cli/exec/command.rb:101 ../lib/pdk/cli/exec/interactive_command.rb:46
301
285
  msgid "Current working directory is not part of a module. (No metadata.json was found.)"
302
286
  msgstr ""
303
287
 
304
- #: ../lib/pdk/cli/exec/command.rb:115
288
+ #: ../lib/pdk/cli/exec/command.rb:128
305
289
  msgid "STDOUT: %{output}"
306
290
  msgstr ""
307
291
 
308
- #: ../lib/pdk/cli/exec/command.rb:118
292
+ #: ../lib/pdk/cli/exec/command.rb:131
309
293
  msgid "STDERR: %{output}"
310
294
  msgstr ""
311
295
 
312
- #: ../lib/pdk/cli/exec/command.rb:132
296
+ #: ../lib/pdk/cli/exec/command.rb:145
313
297
  msgid "PUPPET_GEM_VERSION is not supported by PDK. Use the --puppet-version option on your PDK command or set the PDK_PUPPET_VERSION environment variable instead"
314
298
  msgstr ""
315
299
 
316
- #: ../lib/pdk/cli/exec/command.rb:141
300
+ #: ../lib/pdk/cli/exec/command.rb:154
317
301
  msgid "%{varname} is not supported by PDK."
318
302
  msgstr ""
319
303
 
320
- #: ../lib/pdk/cli/exec/command.rb:206
304
+ #: ../lib/pdk/cli/exec/command.rb:225
321
305
  msgid "Executing '%{command}'"
322
306
  msgstr ""
323
307
 
324
- #: ../lib/pdk/cli/exec/command.rb:209 ../lib/pdk/cli/exec/interactive_command.rb:78
308
+ #: ../lib/pdk/cli/exec/command.rb:228 ../lib/pdk/cli/exec/interactive_command.rb:78
325
309
  msgid "Command environment:"
326
310
  msgstr ""
327
311
 
328
- #: ../lib/pdk/cli/exec/command.rb:220
312
+ #: ../lib/pdk/cli/exec/command.rb:239
329
313
  msgid "Failed to execute '%{command}': %{message}"
330
314
  msgstr ""
331
315
 
332
- #: ../lib/pdk/cli/exec/command.rb:236
316
+ #: ../lib/pdk/cli/exec/command.rb:255
333
317
  msgid "Execution of '%{command}' complete (duration: %{duration_in_seconds}s; exit code: %{exit_code})"
334
318
  msgstr ""
335
319
 
@@ -347,10 +331,26 @@ msgid ""
347
331
  " %{duration_in_seconds}s; exit code: %{exit_code})"
348
332
  msgstr ""
349
333
 
350
- #: ../lib/pdk/cli/exec_group.rb:30
334
+ #: ../lib/pdk/cli/exec_group.rb:41
351
335
  msgid "No block registered"
352
336
  msgstr ""
353
337
 
338
+ #: ../lib/pdk/cli/get.rb:4
339
+ msgid "get [subcommand] [options]"
340
+ msgstr ""
341
+
342
+ #: ../lib/pdk/cli/get.rb:5
343
+ msgid "Retrieve information about the PDK or current project."
344
+ msgstr ""
345
+
346
+ #: ../lib/pdk/cli/get/config.rb:4
347
+ msgid "config [name]"
348
+ msgstr ""
349
+
350
+ #: ../lib/pdk/cli/get/config.rb:5
351
+ msgid "Retrieve the configuration for <name>. If not specified, retrieve all configuration settings"
352
+ msgstr ""
353
+
354
354
  #: ../lib/pdk/cli/module.rb:4
355
355
  msgid "module [options]"
356
356
  msgstr ""
@@ -415,7 +415,7 @@ msgstr ""
415
415
  msgid "Classes can only be created from inside a valid module directory."
416
416
  msgstr ""
417
417
 
418
- #: ../lib/pdk/cli/new/class.rb:24
418
+ #: ../lib/pdk/cli/new/class.rb:23
419
419
  msgid "'%{name}' is not a valid class name"
420
420
  msgstr ""
421
421
 
@@ -431,7 +431,7 @@ msgstr ""
431
431
  msgid "Defined types can only be created from inside a valid module directory."
432
432
  msgstr ""
433
433
 
434
- #: ../lib/pdk/cli/new/defined_type.rb:22
434
+ #: ../lib/pdk/cli/new/defined_type.rb:21
435
435
  msgid "'%{name}' is not a valid defined type name"
436
436
  msgstr ""
437
437
 
@@ -463,7 +463,7 @@ msgstr ""
463
463
  msgid "[experimental] Create a new ruby provider named <name> using given options"
464
464
  msgstr ""
465
465
 
466
- #: ../lib/pdk/cli/new/provider.rb:19
466
+ #: ../lib/pdk/cli/new/provider.rb:18
467
467
  msgid "'%{name}' is not a valid provider name"
468
468
  msgstr ""
469
469
 
@@ -483,7 +483,7 @@ msgstr ""
483
483
  msgid "Tasks can only be created from inside a valid module directory."
484
484
  msgstr ""
485
485
 
486
- #: ../lib/pdk/cli/new/task.rb:26
486
+ #: ../lib/pdk/cli/new/task.rb:25
487
487
  msgid "'%{name}' is not a valid task name"
488
488
  msgstr ""
489
489
 
@@ -503,7 +503,7 @@ msgstr ""
503
503
  msgid "Tests can only be created from inside a valid module directory."
504
504
  msgstr ""
505
505
 
506
- #: ../lib/pdk/cli/new/test.rb:31
506
+ #: ../lib/pdk/cli/new/test.rb:30
507
507
  msgid "Test type not specified, assuming unit."
508
508
  msgstr ""
509
509
 
@@ -523,7 +523,7 @@ msgstr ""
523
523
  msgid "[experimental] Create a new ruby transport named <name> using given options"
524
524
  msgstr ""
525
525
 
526
- #: ../lib/pdk/cli/new/transport.rb:19
526
+ #: ../lib/pdk/cli/new/transport.rb:18
527
527
  msgid "'%{name}' is not a valid transport name"
528
528
  msgstr ""
529
529
 
@@ -659,6 +659,126 @@ msgstr ""
659
659
  msgid "Publish the module automatically, with no prompts."
660
660
  msgstr ""
661
661
 
662
+ #: ../lib/pdk/cli/remove.rb:4
663
+ msgid "remove [subcommand] [options]"
664
+ msgstr ""
665
+
666
+ #: ../lib/pdk/cli/remove.rb:5
667
+ msgid "Remove or delete information about the PDK or current project."
668
+ msgstr ""
669
+
670
+ #: ../lib/pdk/cli/remove/config.rb:11 ../lib/pdk/cli/set/config.rb:73
671
+ msgid "Configuration name is required"
672
+ msgstr ""
673
+
674
+ #: ../lib/pdk/cli/remove/config.rb:14
675
+ msgid "The configuration item '%{name}' can not be removed."
676
+ msgstr ""
677
+
678
+ #: ../lib/pdk/cli/remove/config.rb:16
679
+ msgid "Could not remove '%{name}' as it has not been set"
680
+ msgstr ""
681
+
682
+ #: ../lib/pdk/cli/remove/config.rb:20
683
+ msgid "Ignoring the item value '%{value}' as --force has been set"
684
+ msgstr ""
685
+
686
+ #: ../lib/pdk/cli/remove/config.rb:21
687
+ msgid "Ignoring --force as the setting is not multi-valued"
688
+ msgstr ""
689
+
690
+ #: ../lib/pdk/cli/remove/config.rb:34
691
+ msgid "Could not remove '%{name}' as it is already empty"
692
+ msgstr ""
693
+
694
+ #: ../lib/pdk/cli/remove/config.rb:36
695
+ msgid "Could not remove '%{value}' from '%{name}' as it has not been set"
696
+ msgstr ""
697
+
698
+ #: ../lib/pdk/cli/remove/config.rb:52
699
+ msgid "Cleared '%{name}' which had a value of '%{from}'"
700
+ msgstr ""
701
+
702
+ #: ../lib/pdk/cli/remove/config.rb:54
703
+ msgid "Removed '%{value}' from '%{name}'"
704
+ msgstr ""
705
+
706
+ #: ../lib/pdk/cli/remove/config.rb:57
707
+ msgid "Could not remove '%{name}' as it using a default value of '%{to}'"
708
+ msgstr ""
709
+
710
+ #: ../lib/pdk/cli/remove/config.rb:59
711
+ msgid "Removed '%{name}' which had a value of '%{from}'"
712
+ msgstr ""
713
+
714
+ #: ../lib/pdk/cli/remove/config.rb:71 ../lib/pdk/cli/set/config.rb:107
715
+ msgid "config [name] [value]"
716
+ msgstr ""
717
+
718
+ #: ../lib/pdk/cli/remove/config.rb:72
719
+ msgid "Remove or delete the configuration for <name>"
720
+ msgstr ""
721
+
722
+ #: ../lib/pdk/cli/remove/config.rb:74
723
+ msgid "Force multi-value configuration settings to be removed instead of emptied."
724
+ msgstr ""
725
+
726
+ #: ../lib/pdk/cli/set.rb:4
727
+ msgid "set [subcommand] [options]"
728
+ msgstr ""
729
+
730
+ #: ../lib/pdk/cli/set.rb:5
731
+ msgid "Set or update information about the PDK or current project."
732
+ msgstr ""
733
+
734
+ #: ../lib/pdk/cli/set/config.rb:15
735
+ msgid "Unknown type %{type_name}. Expected one of %{allowed}"
736
+ msgstr ""
737
+
738
+ #: ../lib/pdk/cli/set/config.rb:20 ../lib/pdk/cli/set/config.rb:36
739
+ msgid "An error occured converting '%{value}' into a %{type_name}"
740
+ msgstr ""
741
+
742
+ #: ../lib/pdk/cli/set/config.rb:74
743
+ msgid "Configuration value is required. If you wish to remove a value use 'pdk remove config'"
744
+ msgstr ""
745
+
746
+ #: ../lib/pdk/cli/set/config.rb:77
747
+ msgid "The configuration item '%{name}' can not have a value set."
748
+ msgstr ""
749
+
750
+ #: ../lib/pdk/cli/set/config.rb:83
751
+ msgid "No changes made to '%{name}' as it already contains value '%{to}'"
752
+ msgstr ""
753
+
754
+ #: ../lib/pdk/cli/set/config.rb:90
755
+ msgid "Set initial value of '%{name}' to '%{to}'"
756
+ msgstr ""
757
+
758
+ #: ../lib/pdk/cli/set/config.rb:93
759
+ msgid "Added new value '%{to}' to '%{name}'"
760
+ msgstr ""
761
+
762
+ #: ../lib/pdk/cli/set/config.rb:95
763
+ msgid "Changed existing value of '%{name}' from '%{from}' to '%{to}'"
764
+ msgstr ""
765
+
766
+ #: ../lib/pdk/cli/set/config.rb:108
767
+ msgid "Set or update the configuration for <name>"
768
+ msgstr ""
769
+
770
+ #: ../lib/pdk/cli/set/config.rb:110
771
+ msgid "Force the configuration setting to be overwitten."
772
+ msgstr ""
773
+
774
+ #: ../lib/pdk/cli/set/config.rb:112
775
+ msgid "The type of value to set. Acceptable values: %{values}"
776
+ msgstr ""
777
+
778
+ #: ../lib/pdk/cli/set/config.rb:113
779
+ msgid "Alias of --type"
780
+ msgstr ""
781
+
662
782
  #: ../lib/pdk/cli/test.rb:4
663
783
  msgid "test [subcommand] [options]"
664
784
  msgstr ""
@@ -727,75 +847,75 @@ msgstr ""
727
847
  msgid "Update the module automatically, with no prompts."
728
848
  msgstr ""
729
849
 
730
- #: ../lib/pdk/cli/update.rb:18
850
+ #: ../lib/pdk/cli/update.rb:17
731
851
  msgid "`pdk update` can only be run from inside a valid module directory."
732
852
  msgstr ""
733
853
 
734
- #: ../lib/pdk/cli/update.rb:22
854
+ #: ../lib/pdk/cli/update.rb:20
735
855
  msgid "This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`."
736
856
  msgstr ""
737
857
 
738
- #: ../lib/pdk/cli/update.rb:25
858
+ #: ../lib/pdk/cli/update.rb:23
739
859
  msgid "You can not specify --noop and --force when updating a module"
740
860
  msgstr ""
741
861
 
742
- #: ../lib/pdk/cli/update.rb:29
862
+ #: ../lib/pdk/cli/update.rb:27
743
863
  msgid "This module has been updated to PDK %{module_pdk_version} which is newer than your PDK version (%{user_pdk_version}), proceed with caution!"
744
864
  msgstr ""
745
865
 
746
- #: ../lib/pdk/cli/update.rb:39
866
+ #: ../lib/pdk/cli/update.rb:37
747
867
  msgid "Please update your PDK installation and try again. You may also use the --force flag to override this and continue at your own risk."
748
868
  msgstr ""
749
869
 
750
- #: ../lib/pdk/cli/update.rb:52
870
+ #: ../lib/pdk/cli/update.rb:50
751
871
  msgid "This module is currently pinned to version %{current_version} of the default template. If you would like to update your module to the latest version of the template, please run `pdk update --template-ref %{new_version}`."
752
872
  msgstr ""
753
873
 
754
- #: ../lib/pdk/cli/util.rb:25
874
+ #: ../lib/pdk/cli/util.rb:26
755
875
  msgid "This command must be run from inside a valid module (no metadata.json found)."
756
876
  msgstr ""
757
877
 
758
- #: ../lib/pdk/cli/util.rb:51
878
+ #: ../lib/pdk/cli/util.rb:52
759
879
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
760
880
  msgstr ""
761
881
 
762
- #: ../lib/pdk/cli/util.rb:98
882
+ #: ../lib/pdk/cli/util.rb:99
763
883
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
764
884
  msgstr ""
765
885
 
766
- #: ../lib/pdk/cli/util.rb:104
886
+ #: ../lib/pdk/cli/util.rb:105
767
887
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
768
888
  msgstr ""
769
889
 
770
- #: ../lib/pdk/cli/util.rb:109
890
+ #: ../lib/pdk/cli/util.rb:110
771
891
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
772
892
  msgstr ""
773
893
 
774
- #: ../lib/pdk/cli/util.rb:113
894
+ #: ../lib/pdk/cli/util.rb:114
775
895
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
776
896
  msgstr ""
777
897
 
778
- #: ../lib/pdk/cli/util.rb:124
898
+ #: ../lib/pdk/cli/util.rb:125
779
899
  msgid "Support for Puppet versions older than %{version} is deprecated and will be removed in a future version of PDK."
780
900
  msgstr ""
781
901
 
782
- #: ../lib/pdk/cli/util.rb:162
902
+ #: ../lib/pdk/cli/util.rb:166
783
903
  msgid "Using Ruby %{version}"
784
904
  msgstr ""
785
905
 
786
- #: ../lib/pdk/cli/util.rb:176
906
+ #: ../lib/pdk/cli/util.rb:180
787
907
  msgid "Using %{gem} %{version}"
788
908
  msgstr ""
789
909
 
790
- #: ../lib/pdk/cli/util.rb:207 ../lib/pdk/cli/util.rb:219
910
+ #: ../lib/pdk/cli/util.rb:211 ../lib/pdk/cli/util.rb:223
791
911
  msgid "You cannot specify a %{first} and %{second} at the same time."
792
912
  msgstr ""
793
913
 
794
- #: ../lib/pdk/cli/util.rb:255
914
+ #: ../lib/pdk/cli/util.rb:259
795
915
  msgid "--template-ref requires --template-url to also be specified."
796
916
  msgstr ""
797
917
 
798
- #: ../lib/pdk/cli/util.rb:259
918
+ #: ../lib/pdk/cli/util.rb:263
799
919
  msgid "--template-url may not be used to specify paths containing #'s."
800
920
  msgstr ""
801
921
 
@@ -852,47 +972,83 @@ msgstr ""
852
972
  msgid "Run validations in parallel."
853
973
  msgstr ""
854
974
 
855
- #: ../lib/pdk/cli/validate.rb:35
975
+ #: ../lib/pdk/cli/validate.rb:34
856
976
  msgid "Available validators: %{validator_names}"
857
977
  msgstr ""
858
978
 
859
- #: ../lib/pdk/cli/validate.rb:42
979
+ #: ../lib/pdk/cli/validate.rb:40
860
980
  msgid "Code validation can only be run from inside a valid module directory"
861
981
  msgstr ""
862
982
 
863
- #: ../lib/pdk/cli/validate.rb:58
983
+ #: ../lib/pdk/cli/validate.rb:61
864
984
  msgid "Unknown validator '%{v}'. Available validators: %{validators}."
865
985
  msgstr ""
866
986
 
867
- #: ../lib/pdk/cli/validate.rb:68 ../lib/pdk/cli/validate.rb:72
987
+ #: ../lib/pdk/cli/validate.rb:71 ../lib/pdk/cli/validate.rb:75
868
988
  msgid "Running all available validators..."
869
989
  msgstr ""
870
990
 
871
- #: ../lib/pdk/cli/validate.rb:111
872
- msgid "Validating module using %{num_of_threads} threads"
991
+ #: ../lib/pdk/config.rb:140
992
+ msgid "Expected an Array but got '%{klass}' for scopes"
873
993
  msgstr ""
874
994
 
875
- #: ../lib/pdk/config.rb:53
995
+ #: ../lib/pdk/config.rb:141
996
+ msgid "Expected an Array or String but got '%{klass}' for setting_name"
997
+ msgstr ""
998
+
999
+ #: ../lib/pdk/config.rb:161 ../lib/pdk/config/setting.rb:113
1000
+ msgid "must be passed a block"
1001
+ msgstr ""
1002
+
1003
+ #: ../lib/pdk/config.rb:180
1004
+ msgid "Invalid configuration names"
1005
+ msgstr ""
1006
+
1007
+ #: ../lib/pdk/config.rb:182
1008
+ msgid "Unknown configuration root '%{name}'"
1009
+ msgstr ""
1010
+
1011
+ #: ../lib/pdk/config.rb:190
876
1012
  msgid "Unable to load %{file}: %{message}"
877
1013
  msgstr ""
878
1014
 
879
- #: ../lib/pdk/config.rb:86
1015
+ #: ../lib/pdk/config.rb:231
880
1016
  msgid ""
881
1017
  "PDK collects anonymous usage information to help us understand how it is being used and make decisions on how to improve it. You can find out more about what data we collect and how it is used in the PDK documentation at %{url}.\n"
882
1018
  msgstr ""
883
1019
 
884
- #: ../lib/pdk/config.rb:92
1020
+ #: ../lib/pdk/config.rb:237
885
1021
  msgid "You can opt in or out of the usage data collection at any time by editing the analytics configuration file at %{path} and changing the '%{key}' value."
886
1022
  msgstr ""
887
1023
 
888
- #: ../lib/pdk/config.rb:104
1024
+ #: ../lib/pdk/config.rb:249
889
1025
  msgid "Do you consent to the collection of anonymous PDK usage information?"
890
1026
  msgstr ""
891
1027
 
892
- #: ../lib/pdk/config.rb:118
1028
+ #: ../lib/pdk/config.rb:263
893
1029
  msgid "No answer given, opting out of analytics collection."
894
1030
  msgstr ""
895
1031
 
1032
+ #: ../lib/pdk/config.rb:301
1033
+ msgid "Expected a String but got '%{klass}'"
1034
+ msgstr ""
1035
+
1036
+ #: ../lib/pdk/config.rb:325
1037
+ msgid "Missing or invalid namespace"
1038
+ msgstr ""
1039
+
1040
+ #: ../lib/pdk/config.rb:326
1041
+ msgid "Missing a name to set"
1042
+ msgstr ""
1043
+
1044
+ #: ../lib/pdk/config.rb:377
1045
+ msgid "Unable to set '%{key}' to '%{value}' as it is not a Hash"
1046
+ msgstr ""
1047
+
1048
+ #: ../lib/pdk/config/ini_file_setting.rb:23 ../lib/pdk/config/ini_file_setting.rb:31
1049
+ msgid "The setting %{key} may only be a String or Integer, not %{class}"
1050
+ msgstr ""
1051
+
896
1052
  #: ../lib/pdk/config/json_schema_namespace.rb:102
897
1053
  msgid "Setting '#{key}' does not exist'"
898
1054
  msgstr ""
@@ -905,7 +1061,7 @@ msgstr ""
905
1061
  msgid "Unable to open %{file} for reading. JSON Error: %{msg}"
906
1062
  msgstr ""
907
1063
 
908
- #: ../lib/pdk/config/json_schema_setting.rb:27 ../lib/pdk/config/setting.rb:98
1064
+ #: ../lib/pdk/config/json_schema_setting.rb:27 ../lib/pdk/config/setting.rb:99
909
1065
  msgid "%{key} %{message}"
910
1066
  msgstr ""
911
1067
 
@@ -913,38 +1069,34 @@ msgstr ""
913
1069
  msgid "The configuration file %{filename} is not valid: %{message}"
914
1070
  msgstr ""
915
1071
 
916
- #: ../lib/pdk/config/namespace.rb:67
1072
+ #: ../lib/pdk/config/namespace.rb:68
917
1073
  msgid "Only PDK::Config::Namespace objects can be mounted into a namespace"
918
1074
  msgstr ""
919
1075
 
920
- #: ../lib/pdk/config/namespace.rb:139
1076
+ #: ../lib/pdk/config/namespace.rb:141
921
1077
  msgid "Namespace mounts can not be set a value"
922
1078
  msgstr ""
923
1079
 
924
- #: ../lib/pdk/config/namespace.rb:288
1080
+ #: ../lib/pdk/config/namespace.rb:308
925
1081
  msgid "Unable to open %{file} for reading"
926
1082
  msgstr ""
927
1083
 
928
- #: ../lib/pdk/config/namespace.rb:311
1084
+ #: ../lib/pdk/config/namespace.rb:331
929
1085
  msgid "Unable to open %{file} for writing"
930
1086
  msgstr ""
931
1087
 
932
- #: ../lib/pdk/config/setting.rb:79
1088
+ #: ../lib/pdk/config/setting.rb:80
933
1089
  msgid "`validator` must be a Hash"
934
1090
  msgstr ""
935
1091
 
936
- #: ../lib/pdk/config/setting.rb:80
1092
+ #: ../lib/pdk/config/setting.rb:81
937
1093
  msgid "the :proc key must contain a Proc"
938
1094
  msgstr ""
939
1095
 
940
- #: ../lib/pdk/config/setting.rb:81
1096
+ #: ../lib/pdk/config/setting.rb:82
941
1097
  msgid "the :message key must contain a String"
942
1098
  msgstr ""
943
1099
 
944
- #: ../lib/pdk/config/setting.rb:112
945
- msgid "must be passed a block"
946
- msgstr ""
947
-
948
1100
  #: ../lib/pdk/config/validator.rb:16
949
1101
  msgid "must be a boolean: true or false"
950
1102
  msgstr ""
@@ -961,6 +1113,18 @@ msgstr ""
961
1113
  msgid "Unsupported class in %{file}: %{error}"
962
1114
  msgstr ""
963
1115
 
1116
+ #: ../lib/pdk/context/control_repo.rb:47
1117
+ msgid "a Control Repository context"
1118
+ msgstr ""
1119
+
1120
+ #: ../lib/pdk/context/module.rb:23
1121
+ msgid "a Puppet Module context"
1122
+ msgstr ""
1123
+
1124
+ #: ../lib/pdk/context/none.rb:11
1125
+ msgid "an unknown context"
1126
+ msgstr ""
1127
+
964
1128
  #: ../lib/pdk/generate/module.rb:10
965
1129
  msgid ""
966
1130
  "'%{module_name}' is not a valid module name.\n"
@@ -975,282 +1139,298 @@ msgstr ""
975
1139
  msgid "You do not have permission to write to '%{parent_dir}'"
976
1140
  msgstr ""
977
1141
 
978
- #: ../lib/pdk/generate/module.rb:90
979
- msgid "Module '%{name}' generated at path '%{path}', from template '%{url}'."
1142
+ #: ../lib/pdk/generate/module.rb:50
1143
+ msgid "Using the default template-url and template-ref."
1144
+ msgstr ""
1145
+
1146
+ #: ../lib/pdk/generate/module.rb:52
1147
+ msgid "Using the %{method} template-url and template-ref '%{template_uri}'."
1148
+ msgstr ""
1149
+
1150
+ #: ../lib/pdk/generate/module.rb:54
1151
+ msgid "saved"
980
1152
  msgstr ""
981
1153
 
982
- #: ../lib/pdk/generate/module.rb:91
1154
+ #: ../lib/pdk/generate/module.rb:54
1155
+ msgid "specified"
1156
+ msgstr ""
1157
+
1158
+ #: ../lib/pdk/generate/module.rb:102
1159
+ msgid "Module '%{name}' generated at path '%{path}'."
1160
+ msgstr ""
1161
+
1162
+ #: ../lib/pdk/generate/module.rb:106
983
1163
  msgid "In your module directory, add classes with the 'pdk new class' command."
984
1164
  msgstr ""
985
1165
 
986
- #: ../lib/pdk/generate/module.rb:94
1166
+ #: ../lib/pdk/generate/module.rb:111
987
1167
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
988
1168
  msgstr ""
989
1169
 
990
- #: ../lib/pdk/generate/module.rb:110
1170
+ #: ../lib/pdk/generate/module.rb:127
991
1171
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
992
1172
  msgstr ""
993
1173
 
994
- #: ../lib/pdk/generate/module.rb:148
1174
+ #: ../lib/pdk/generate/module.rb:165
995
1175
  msgid "Unable to create directory '%{dir}': %{message}"
996
1176
  msgstr ""
997
1177
 
998
- #: ../lib/pdk/generate/module.rb:163
1178
+ #: ../lib/pdk/generate/module.rb:180
999
1179
  msgid "If you have a name for your module, add it here."
1000
1180
  msgstr ""
1001
1181
 
1002
- #: ../lib/pdk/generate/module.rb:164
1182
+ #: ../lib/pdk/generate/module.rb:181
1003
1183
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
1004
1184
  msgstr ""
1005
1185
 
1006
- #: ../lib/pdk/generate/module.rb:167
1186
+ #: ../lib/pdk/generate/module.rb:184
1007
1187
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
1008
1188
  msgstr ""
1009
1189
 
1010
- #: ../lib/pdk/generate/module.rb:171
1190
+ #: ../lib/pdk/generate/module.rb:188
1011
1191
  msgid "If you have a Puppet Forge username, add it here."
1012
1192
  msgstr ""
1013
1193
 
1014
- #: ../lib/pdk/generate/module.rb:172
1194
+ #: ../lib/pdk/generate/module.rb:189
1015
1195
  msgid "We can use this to upload your module to the Forge when it's complete."
1016
1196
  msgstr ""
1017
1197
 
1018
- #: ../lib/pdk/generate/module.rb:175
1198
+ #: ../lib/pdk/generate/module.rb:192
1019
1199
  msgid "Forge usernames can only contain lowercase letters and numbers"
1020
1200
  msgstr ""
1021
1201
 
1022
- #: ../lib/pdk/generate/module.rb:180
1202
+ #: ../lib/pdk/generate/module.rb:197
1023
1203
  msgid "What version is this module?"
1024
1204
  msgstr ""
1025
1205
 
1026
- #: ../lib/pdk/generate/module.rb:181
1206
+ #: ../lib/pdk/generate/module.rb:198
1027
1207
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
1028
1208
  msgstr ""
1029
1209
 
1030
- #: ../lib/pdk/generate/module.rb:184
1210
+ #: ../lib/pdk/generate/module.rb:201
1031
1211
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
1032
1212
  msgstr ""
1033
1213
 
1034
- #: ../lib/pdk/generate/module.rb:190
1214
+ #: ../lib/pdk/generate/module.rb:207
1035
1215
  msgid "Who wrote this module?"
1036
1216
  msgstr ""
1037
1217
 
1038
- #: ../lib/pdk/generate/module.rb:191
1218
+ #: ../lib/pdk/generate/module.rb:208
1039
1219
  msgid "This is used to credit the module's author."
1040
1220
  msgstr ""
1041
1221
 
1042
- #: ../lib/pdk/generate/module.rb:197
1222
+ #: ../lib/pdk/generate/module.rb:214
1043
1223
  msgid "What license does this module code fall under?"
1044
1224
  msgstr ""
1045
1225
 
1046
- #: ../lib/pdk/generate/module.rb:198
1226
+ #: ../lib/pdk/generate/module.rb:215
1047
1227
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
1048
1228
  msgstr ""
1049
1229
 
1050
- #: ../lib/pdk/generate/module.rb:204
1230
+ #: ../lib/pdk/generate/module.rb:221
1051
1231
  msgid "What operating systems does this module support?"
1052
1232
  msgstr ""
1053
1233
 
1054
- #: ../lib/pdk/generate/module.rb:205
1234
+ #: ../lib/pdk/generate/module.rb:222
1055
1235
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
1056
1236
  msgstr ""
1057
1237
 
1058
- #: ../lib/pdk/generate/module.rb:216
1238
+ #: ../lib/pdk/generate/module.rb:233
1059
1239
  msgid "Summarize the purpose of this module in a single sentence."
1060
1240
  msgstr ""
1061
1241
 
1062
- #: ../lib/pdk/generate/module.rb:217
1242
+ #: ../lib/pdk/generate/module.rb:234
1063
1243
  msgid "This helps other Puppet users understand what the module does."
1064
1244
  msgstr ""
1065
1245
 
1066
- #: ../lib/pdk/generate/module.rb:224
1246
+ #: ../lib/pdk/generate/module.rb:241
1067
1247
  msgid "If there is a source code repository for this module, enter the URL here."
1068
1248
  msgstr ""
1069
1249
 
1070
- #: ../lib/pdk/generate/module.rb:225
1250
+ #: ../lib/pdk/generate/module.rb:242
1071
1251
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
1072
1252
  msgstr ""
1073
1253
 
1074
- #: ../lib/pdk/generate/module.rb:232
1254
+ #: ../lib/pdk/generate/module.rb:249
1075
1255
  msgid "If there is a URL where others can learn more about this module, enter it here."
1076
1256
  msgstr ""
1077
1257
 
1078
- #: ../lib/pdk/generate/module.rb:233 ../lib/pdk/generate/module.rb:240
1258
+ #: ../lib/pdk/generate/module.rb:250 ../lib/pdk/generate/module.rb:257
1079
1259
  msgid "Optional. You can update this later in the metadata.json."
1080
1260
  msgstr ""
1081
1261
 
1082
- #: ../lib/pdk/generate/module.rb:239
1262
+ #: ../lib/pdk/generate/module.rb:256
1083
1263
  msgid "If there is a public issue tracker for this module, enter its URL here."
1084
1264
  msgstr ""
1085
1265
 
1086
- #: ../lib/pdk/generate/module.rb:267
1266
+ #: ../lib/pdk/generate/module.rb:284
1087
1267
  msgid ""
1088
1268
  "\n"
1089
1269
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1090
1270
  msgstr ""
1091
1271
 
1092
- #: ../lib/pdk/generate/module.rb:274
1272
+ #: ../lib/pdk/generate/module.rb:291
1093
1273
  msgid ""
1094
1274
  "\n"
1095
1275
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1096
1276
  msgstr ""
1097
1277
 
1098
- #: ../lib/pdk/generate/module.rb:282
1278
+ #: ../lib/pdk/generate/module.rb:299
1099
1279
  msgid ""
1100
1280
  "If the question is not applicable to this module, accept the default option shown after each question. You can modify any answers at any time by manually updating the metadata.json file.\n"
1101
1281
  "\n"
1102
1282
  msgstr ""
1103
1283
 
1104
- #: ../lib/pdk/generate/module.rb:291
1284
+ #: ../lib/pdk/generate/module.rb:308
1105
1285
  msgid "No answers given, interview cancelled."
1106
1286
  msgstr ""
1107
1287
 
1108
- #: ../lib/pdk/generate/module.rb:317
1288
+ #: ../lib/pdk/generate/module.rb:334
1109
1289
  msgid "Metadata will be generated based on this information, continue?"
1110
1290
  msgstr ""
1111
1291
 
1112
- #: ../lib/pdk/generate/module.rb:319
1292
+ #: ../lib/pdk/generate/module.rb:336
1113
1293
  msgid "Interview cancelled; exiting."
1114
1294
  msgstr ""
1115
1295
 
1116
- #: ../lib/pdk/generate/module.rb:323
1296
+ #: ../lib/pdk/generate/module.rb:340
1117
1297
  msgid "Process cancelled; exiting."
1118
1298
  msgstr ""
1119
1299
 
1120
- #: ../lib/pdk/generate/provider.rb:23
1121
- msgid "%{error}: Creating a provider needs some local configuration in your module. Please follow the docs at https://puppet.com/docs/puppet/latest/create_types_and_providers_resource_api.html."
1122
- msgstr ""
1123
-
1124
- #: ../lib/pdk/generate/provider.rb:33 ../lib/pdk/generate/transport.rb:33
1125
- msgid ".sync.yml not found"
1300
+ #: ../lib/pdk/generate/puppet_object.rb:24 ../lib/pdk/validate/validator.rb:36
1301
+ msgid "Expected PDK::Context::AbstractContext but got '%{klass}' for context"
1126
1302
  msgstr ""
1127
1303
 
1128
- #: ../lib/pdk/generate/provider.rb:37 ../lib/pdk/generate/transport.rb:37
1129
- msgid ".sync.yml contents is not a Hash"
1304
+ #: ../lib/pdk/generate/puppet_object.rb:64
1305
+ msgid "Expected a module context but got %{context_name}"
1130
1306
  msgstr ""
1131
1307
 
1132
- #: ../lib/pdk/generate/provider.rb:39 ../lib/pdk/generate/transport.rb:39
1133
- msgid "Gemfile configuration not found"
1308
+ #: ../lib/pdk/generate/puppet_object.rb:125
1309
+ msgid "Unable to generate %{object_type}; '%{file}' already exists."
1134
1310
  msgstr ""
1135
1311
 
1136
- #: ../lib/pdk/generate/provider.rb:41 ../lib/pdk/generate/transport.rb:41
1137
- msgid "Gemfile.optional configuration not found"
1312
+ #: ../lib/pdk/generate/puppet_object.rb:163
1313
+ msgid "No %{dir_type} template found; trying next template directory."
1138
1314
  msgstr ""
1139
1315
 
1140
- #: ../lib/pdk/generate/provider.rb:43 ../lib/pdk/generate/transport.rb:43
1141
- msgid "Gemfile.optional.:development configuration not found"
1316
+ #: ../lib/pdk/generate/puppet_object.rb:173
1317
+ msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1142
1318
  msgstr ""
1143
1319
 
1144
- #: ../lib/pdk/generate/provider.rb:45 ../lib/pdk/generate/transport.rb:45
1145
- msgid "puppet-resource_api not found in the Gemfile config"
1320
+ #: ../lib/pdk/generate/puppet_object.rb:175
1321
+ msgid "Unable to find the %{type} template in %{url}."
1146
1322
  msgstr ""
1147
1323
 
1148
- #: ../lib/pdk/generate/provider.rb:47 ../lib/pdk/generate/transport.rb:47
1149
- msgid "spec/spec_helper.rb configuration not found"
1324
+ #: ../lib/pdk/generate/resource_api_object.rb:20
1325
+ msgid ".sync.yml not found"
1150
1326
  msgstr ""
1151
1327
 
1152
- #: ../lib/pdk/generate/provider.rb:49 ../lib/pdk/generate/transport.rb:49
1153
- msgid "spec/spec_helper.rb.mock_with configuration not found"
1328
+ #: ../lib/pdk/generate/resource_api_object.rb:24
1329
+ msgid ".sync.yml contents is not a Hash"
1154
1330
  msgstr ""
1155
1331
 
1156
- #: ../lib/pdk/generate/provider.rb:51 ../lib/pdk/generate/transport.rb:51
1157
- msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
1332
+ #: ../lib/pdk/generate/resource_api_object.rb:26
1333
+ msgid "Gemfile configuration not found"
1158
1334
  msgstr ""
1159
1335
 
1160
- #: ../lib/pdk/generate/puppet_object.rb:142
1161
- msgid "Unable to generate %{object_type}; '%{file}' already exists."
1336
+ #: ../lib/pdk/generate/resource_api_object.rb:28
1337
+ msgid "Gemfile.optional configuration not found"
1162
1338
  msgstr ""
1163
1339
 
1164
- #: ../lib/pdk/generate/puppet_object.rb:226
1165
- msgid "Creating '%{file}' from template."
1340
+ #: ../lib/pdk/generate/resource_api_object.rb:30
1341
+ msgid "Gemfile.optional.:development configuration not found"
1166
1342
  msgstr ""
1167
1343
 
1168
- #: ../lib/pdk/generate/puppet_object.rb:233
1169
- msgid "Unable to create directory '%{path}': %{message}"
1344
+ #: ../lib/pdk/generate/resource_api_object.rb:32
1345
+ msgid "puppet-resource_api not found in the Gemfile config"
1170
1346
  msgstr ""
1171
1347
 
1172
- #: ../lib/pdk/generate/puppet_object.rb:241
1173
- msgid "Unable to write to file '%{path}': %{message}"
1348
+ #: ../lib/pdk/generate/resource_api_object.rb:34
1349
+ msgid "spec/spec_helper.rb configuration not found"
1174
1350
  msgstr ""
1175
1351
 
1176
- #: ../lib/pdk/generate/puppet_object.rb:267
1177
- msgid "No %{dir_type} template found; trying next template directory."
1352
+ #: ../lib/pdk/generate/resource_api_object.rb:36
1353
+ msgid "spec/spec_helper.rb.mock_with configuration not found"
1178
1354
  msgstr ""
1179
1355
 
1180
- #: ../lib/pdk/generate/puppet_object.rb:280
1181
- msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1356
+ #: ../lib/pdk/generate/resource_api_object.rb:38
1357
+ msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
1182
1358
  msgstr ""
1183
1359
 
1184
- #: ../lib/pdk/generate/puppet_object.rb:282
1185
- msgid "Unable to find the %{type} template in %{url}."
1360
+ #: ../lib/pdk/generate/resource_api_object.rb:46
1361
+ msgid "%{error}: Creating a %{thing_name} needs some local configuration in your module. Please follow the docs at https://puppet.com/docs/puppet/latest/create_types_and_providers_resource_api.html"
1186
1362
  msgstr ""
1187
1363
 
1188
- #: ../lib/pdk/generate/task.rb:54
1364
+ #: ../lib/pdk/generate/task.rb:31
1189
1365
  msgid "A task named '%{name}' already exists in this module; defined in %{file}"
1190
1366
  msgstr ""
1191
1367
 
1192
- #: ../lib/pdk/generate/transport.rb:23
1193
- msgid "%{error}: Creating a transport needs some local configuration in your module. Please follow the docs at https://github.com/puppetlabs/puppet-resource_api#getting-started."
1194
- msgstr ""
1195
-
1196
- #: ../lib/pdk/module/build.rb:127
1368
+ #: ../lib/pdk/module/build.rb:129
1197
1369
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1198
1370
  msgstr ""
1199
1371
 
1200
- #: ../lib/pdk/module/build.rb:157
1372
+ #: ../lib/pdk/module/build.rb:159
1201
1373
  msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
1202
1374
  msgstr ""
1203
1375
 
1204
- #: ../lib/pdk/module/build.rb:184
1376
+ #: ../lib/pdk/module/build.rb:186
1205
1377
  msgid "The path '%{path}' is longer than 256 bytes."
1206
1378
  msgstr ""
1207
1379
 
1208
- #: ../lib/pdk/module/build.rb:208
1380
+ #: ../lib/pdk/module/build.rb:210
1209
1381
  msgid "'%{path}' could not be split at a directory separator into two parts, the first having a maximum length of 155 bytes and the second having a maximum length of 100 bytes."
1210
1382
  msgstr ""
1211
1383
 
1212
- #: ../lib/pdk/module/build.rb:243
1384
+ #: ../lib/pdk/module/build.rb:232
1385
+ msgid "'%{path}' can only include ASCII characters in its path or filename in order to be compatible with a wide range of hosts."
1386
+ msgstr ""
1387
+
1388
+ #: ../lib/pdk/module/build.rb:266
1213
1389
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1214
1390
  msgstr ""
1215
1391
 
1216
- #: ../lib/pdk/module/convert.rb:29 ../lib/pdk/module/update.rb:20
1392
+ #: ../lib/pdk/module/convert.rb:33 ../lib/pdk/module/update.rb:20
1217
1393
  msgid "No changes required."
1218
1394
  msgstr ""
1219
1395
 
1220
- #: ../lib/pdk/module/convert.rb:44
1396
+ #: ../lib/pdk/module/convert.rb:48
1221
1397
  msgid "Module conversion is a potentially destructive action. Ensure that you have committed your module to a version control system or have a backup, and review the changes above before continuing."
1222
1398
  msgstr ""
1223
1399
 
1224
- #: ../lib/pdk/module/convert.rb:49 ../lib/pdk/module/update.rb:32
1400
+ #: ../lib/pdk/module/convert.rb:53 ../lib/pdk/module/update.rb:32
1225
1401
  msgid "Do you want to continue and make these changes to your module?"
1226
1402
  msgstr ""
1227
1403
 
1228
- #: ../lib/pdk/module/convert.rb:134
1404
+ #: ../lib/pdk/module/convert.rb:131
1405
+ msgid "No test changes required."
1406
+ msgstr ""
1407
+
1408
+ #: ../lib/pdk/module/convert.rb:156
1229
1409
  msgid "skipping '%{path}'"
1230
1410
  msgstr ""
1231
1411
 
1232
- #: ../lib/pdk/module/convert.rb:173
1412
+ #: ../lib/pdk/module/convert.rb:195
1233
1413
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1234
1414
  msgstr ""
1235
1415
 
1236
- #: ../lib/pdk/module/convert.rb:189
1416
+ #: ../lib/pdk/module/convert.rb:211
1237
1417
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1238
1418
  msgstr ""
1239
1419
 
1240
- #: ../lib/pdk/module/convert.rb:234 ../lib/pdk/module/convert.rb:239 ../lib/pdk/module/convert.rb:245
1420
+ #: ../lib/pdk/module/convert.rb:256 ../lib/pdk/module/convert.rb:261 ../lib/pdk/module/convert.rb:267
1241
1421
  msgid ""
1242
1422
  "\n"
1243
1423
  "%{banner}"
1244
1424
  msgstr ""
1245
1425
 
1246
- #: ../lib/pdk/module/convert.rb:247
1426
+ #: ../lib/pdk/module/convert.rb:269
1247
1427
  msgid ""
1248
1428
  "\n"
1249
1429
  "%{summary}\n"
1250
1430
  "\n"
1251
1431
  msgstr ""
1252
1432
 
1253
- #: ../lib/pdk/module/convert.rb:256
1433
+ #: ../lib/pdk/module/convert.rb:278
1254
1434
  msgid ""
1255
1435
  "\n"
1256
1436
  "You can find a report of differences in %{path}.\n"
@@ -1333,149 +1513,83 @@ msgstr ""
1333
1513
  msgid "Updating version to %{module_version}"
1334
1514
  msgstr ""
1335
1515
 
1336
- #: ../lib/pdk/module/release.rb:120
1516
+ #: ../lib/pdk/module/release.rb:115
1337
1517
  msgid "An error occured during validation"
1338
1518
  msgstr ""
1339
1519
 
1340
- #: ../lib/pdk/module/release.rb:125
1520
+ #: ../lib/pdk/module/release.rb:119
1341
1521
  msgid "Updating documentation using puppet strings"
1342
1522
  msgstr ""
1343
1523
 
1344
- #: ../lib/pdk/module/release.rb:129
1524
+ #: ../lib/pdk/module/release.rb:123
1345
1525
  msgid "An error occured generating the module documentation: %{stdout}"
1346
1526
  msgstr ""
1347
1527
 
1348
- #: ../lib/pdk/module/release.rb:134
1528
+ #: ../lib/pdk/module/release.rb:128
1349
1529
  msgid "Running dependency checks"
1350
1530
  msgstr ""
1351
1531
 
1352
- #: ../lib/pdk/module/release.rb:140
1532
+ #: ../lib/pdk/module/release.rb:134
1353
1533
  msgid "An error occured checking the module dependencies: %{stdout}"
1354
1534
  msgstr ""
1355
1535
 
1356
- #: ../lib/pdk/module/release.rb:150
1536
+ #: ../lib/pdk/module/release.rb:144
1357
1537
  msgid "Module tarball %{tarball_path} does not exist"
1358
1538
  msgstr ""
1359
1539
 
1360
- #: ../lib/pdk/module/release.rb:156
1540
+ #: ../lib/pdk/module/release.rb:150
1361
1541
  msgid "Uploading tarball to puppet forge..."
1362
1542
  msgstr ""
1363
1543
 
1364
- #: ../lib/pdk/module/release.rb:172
1544
+ #: ../lib/pdk/module/release.rb:166
1365
1545
  msgid "Error uploading to Puppet Forge: %{result}"
1366
1546
  msgstr ""
1367
1547
 
1368
- #: ../lib/pdk/module/release.rb:173
1548
+ #: ../lib/pdk/module/release.rb:167
1369
1549
  msgid "Publish to Forge was successful"
1370
1550
  msgstr ""
1371
1551
 
1372
- #: ../lib/pdk/module/release.rb:178
1552
+ #: ../lib/pdk/module/release.rb:172
1373
1553
  msgid "Missing forge-upload-url option"
1374
1554
  msgstr ""
1375
1555
 
1376
- #: ../lib/pdk/module/release.rb:179
1556
+ #: ../lib/pdk/module/release.rb:173
1377
1557
  msgid "Missing forge-token option"
1378
1558
  msgstr ""
1379
1559
 
1380
- #: ../lib/pdk/module/template_dir.rb:35
1381
- msgid "%{class_name}.with must be passed a block."
1382
- msgstr ""
1383
-
1384
- #: ../lib/pdk/module/template_dir.rb:38
1385
- msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1386
- msgstr ""
1387
-
1388
- #: ../lib/pdk/module/template_dir.rb:73
1389
- msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1390
- msgstr ""
1391
-
1392
- #: ../lib/pdk/module/template_dir.rb:75
1393
- msgid "The specified template '%{path}' is not a directory."
1394
- msgstr ""
1395
-
1396
- #: ../lib/pdk/module/template_dir.rb:80
1397
- msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1398
- msgstr ""
1399
-
1400
- #: ../lib/pdk/module/template_dir.rb:85
1401
- msgid "The template at '%{path}' does not contain a 'moduleroot_init/' directory, which indicates you are using an older style of template. Before continuing please use the --template-url flag when running the pdk new commands to pass a new style template."
1402
- msgstr ""
1403
-
1404
- #: ../lib/pdk/module/template_dir.rb:101
1405
- msgid "The directory '%{dir}' doesn't exist"
1406
- msgstr ""
1407
-
1408
- #: ../lib/pdk/module/template_dir/base.rb:39
1409
- msgid "%{class_name} must be initialized with a block."
1410
- msgstr ""
1411
-
1412
- #: ../lib/pdk/module/template_dir/base.rb:42
1413
- msgid "%{class_name} must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1414
- msgstr ""
1415
-
1416
- #: ../lib/pdk/module/template_dir/base.rb:107
1417
- msgid "Rendering '%{template}'..."
1418
- msgstr ""
1419
-
1420
- #: ../lib/pdk/module/template_dir/base.rb:125
1421
- msgid ""
1422
- "Failed to render template '%{template}'\n"
1423
- "%{exception}: %{message}"
1424
- msgstr ""
1425
-
1426
- #: ../lib/pdk/module/template_dir/base.rb:245
1427
- msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1428
- msgstr ""
1429
-
1430
- #: ../lib/pdk/module/template_dir/git.rb:12
1431
- msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1432
- msgstr ""
1433
-
1434
- #: ../lib/pdk/module/template_dir/git.rb:63
1435
- msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1436
- msgstr ""
1437
-
1438
- #: ../lib/pdk/module/template_dir/git.rb:82
1439
- msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1440
- msgstr ""
1441
-
1442
- #: ../lib/pdk/module/template_dir/git.rb:85
1443
- msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1444
- msgstr ""
1445
-
1446
1560
  #: ../lib/pdk/module/update.rb:14
1447
1561
  msgid "This module is already up to date with version %{version} of the template."
1448
1562
  msgstr ""
1449
1563
 
1450
- #: ../lib/pdk/module/update.rb:121
1564
+ #: ../lib/pdk/module/update.rb:117
1451
1565
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1452
1566
  msgstr ""
1453
1567
 
1454
- #: ../lib/pdk/module/update.rb:123
1568
+ #: ../lib/pdk/module/update.rb:119
1455
1569
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1456
1570
  msgstr ""
1457
1571
 
1458
- #: ../lib/pdk/module/update_manager.rb:111
1572
+ #: ../lib/pdk/module/update_manager.rb:118
1459
1573
  msgid "unlinking '%{path}'"
1460
1574
  msgstr ""
1461
1575
 
1462
- #: ../lib/pdk/module/update_manager.rb:114
1576
+ #: ../lib/pdk/module/update_manager.rb:121
1463
1577
  msgid "'%{path}': already gone"
1464
1578
  msgstr ""
1465
1579
 
1466
- #: ../lib/pdk/module/update_manager.rb:117
1580
+ #: ../lib/pdk/module/update_manager.rb:124
1467
1581
  msgid "Unable to remove '%{path}': %{message}"
1468
1582
  msgstr ""
1469
1583
 
1470
- #: ../lib/pdk/module/update_manager.rb:137
1584
+ #: ../lib/pdk/module/update_manager.rb:144
1471
1585
  msgid "Unable to open '%{path}' for reading"
1472
1586
  msgstr ""
1473
1587
 
1474
- #: ../lib/pdk/module/update_manager.rb:156
1588
+ #: ../lib/pdk/module/update_manager.rb:163
1475
1589
  msgid "writing '%{path}'"
1476
1590
  msgstr ""
1477
1591
 
1478
- #: ../lib/pdk/module/update_manager.rb:159
1592
+ #: ../lib/pdk/module/update_manager.rb:166
1479
1593
  msgid "You do not have permission to write to '%{path}'"
1480
1594
  msgstr ""
1481
1595
 
@@ -1523,10 +1637,56 @@ msgstr ""
1523
1637
  msgid "Trace must be an Array of stack trace lines."
1524
1638
  msgstr ""
1525
1639
 
1526
- #: ../lib/pdk/template_file.rb:69
1640
+ #: ../lib/pdk/template.rb:41 ../lib/pdk/template/fetcher.rb:38
1641
+ msgid "%{class_name}.with must be passed a block."
1642
+ msgstr ""
1643
+
1644
+ #: ../lib/pdk/template.rb:44
1645
+ msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1646
+ msgstr ""
1647
+
1648
+ #: ../lib/pdk/template/fetcher/git.rb:25
1649
+ msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1650
+ msgstr ""
1651
+
1652
+ #: ../lib/pdk/template/fetcher/git.rb:52
1653
+ msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1654
+ msgstr ""
1655
+
1656
+ #: ../lib/pdk/template/fetcher/git.rb:66
1657
+ msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1658
+ msgstr ""
1659
+
1660
+ #: ../lib/pdk/template/fetcher/git.rb:69
1661
+ msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1662
+ msgstr ""
1663
+
1664
+ #: ../lib/pdk/template/renderer/v1/legacy_template_dir.rb:96
1665
+ msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1666
+ msgstr ""
1667
+
1668
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:24 ../lib/pdk/template/renderer/v1/renderer.rb:74
1669
+ msgid "Rendering '%{template}'..."
1670
+ msgstr ""
1671
+
1672
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:92
1673
+ msgid ""
1674
+ "Failed to render template '%{template}'\n"
1675
+ "%{exception}: %{message}"
1676
+ msgstr ""
1677
+
1678
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:116
1679
+ msgid "The directory '%{dir}' doesn't exist"
1680
+ msgstr ""
1681
+
1682
+ #: ../lib/pdk/template/renderer/v1/template_file.rb:72
1527
1683
  msgid "'%{template}' is not a readable file"
1528
1684
  msgstr ""
1529
1685
 
1686
+ #: ../lib/pdk/template/template_dir.rb:39
1687
+ msgid "Could not find a compatible template renderer for %{path}"
1688
+ msgstr ""
1689
+
1530
1690
  #: ../lib/pdk/tests/unit.rb:64
1531
1691
  msgid "Cleaning up after running unit tests."
1532
1692
  msgstr ""
@@ -1551,39 +1711,39 @@ msgstr ""
1551
1711
  msgid "Failed to prepare to run the unit tests."
1552
1712
  msgstr ""
1553
1713
 
1554
- #: ../lib/pdk/tests/unit.rb:95
1714
+ #: ../lib/pdk/tests/unit.rb:100
1555
1715
  msgid "Running unit tests in parallel."
1556
1716
  msgstr ""
1557
1717
 
1558
- #: ../lib/pdk/tests/unit.rb:95
1718
+ #: ../lib/pdk/tests/unit.rb:100
1559
1719
  msgid "Running unit tests."
1560
1720
  msgstr ""
1561
1721
 
1562
- #: ../lib/pdk/tests/unit.rb:120
1722
+ #: ../lib/pdk/tests/unit.rb:125
1563
1723
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1564
1724
  msgstr ""
1565
1725
 
1566
- #: ../lib/pdk/tests/unit.rb:172
1726
+ #: ../lib/pdk/tests/unit.rb:177
1567
1727
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1568
1728
  msgstr ""
1569
1729
 
1570
- #: ../lib/pdk/tests/unit.rb:226
1730
+ #: ../lib/pdk/tests/unit.rb:231
1571
1731
  msgid "Finding unit tests."
1572
1732
  msgstr ""
1573
1733
 
1574
- #: ../lib/pdk/tests/unit.rb:229
1734
+ #: ../lib/pdk/tests/unit.rb:234
1575
1735
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1576
1736
  msgstr ""
1577
1737
 
1578
- #: ../lib/pdk/tests/unit.rb:234
1738
+ #: ../lib/pdk/tests/unit.rb:239
1579
1739
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1580
1740
  msgstr ""
1581
1741
 
1582
- #: ../lib/pdk/util.rb:87
1742
+ #: ../lib/pdk/util.rb:88
1583
1743
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1584
1744
  msgstr ""
1585
1745
 
1586
- #: ../lib/pdk/util.rb:116
1746
+ #: ../lib/pdk/util.rb:117
1587
1747
  msgid "Package basedir requested for non-package install."
1588
1748
  msgstr ""
1589
1749
 
@@ -1631,33 +1791,37 @@ msgstr ""
1631
1791
  msgid "Unable to install missing Gemfile dependencies."
1632
1792
  msgstr ""
1633
1793
 
1634
- #: ../lib/pdk/util/bundler.rb:220
1794
+ #: ../lib/pdk/util/bundler.rb:213
1795
+ msgid "Unable to install requested binstubs as the Gemfile is missing"
1796
+ msgstr ""
1797
+
1798
+ #: ../lib/pdk/util/bundler.rb:221
1635
1799
  msgid ""
1636
1800
  "Failed to generate binstubs for '%{gems}':\n"
1637
1801
  "%{output}"
1638
1802
  msgstr ""
1639
1803
 
1640
- #: ../lib/pdk/util/bundler.rb:221
1804
+ #: ../lib/pdk/util/bundler.rb:222
1641
1805
  msgid "Unable to install requested binstubs."
1642
1806
  msgstr ""
1643
1807
 
1644
- #: ../lib/pdk/util/changelog_generator.rb:12
1645
- msgid "Unable to generate the changelog as the github_changelog_generator gem is not installed"
1808
+ #: ../lib/pdk/util/changelog_generator.rb:15
1809
+ msgid "Unable to generate the changelog as the %{gem} gem is not installed"
1646
1810
  msgstr ""
1647
1811
 
1648
- #: ../lib/pdk/util/changelog_generator.rb:25
1812
+ #: ../lib/pdk/util/changelog_generator.rb:30
1649
1813
  msgid "Error generating changelog: %{stdout}"
1650
1814
  msgstr ""
1651
1815
 
1652
- #: ../lib/pdk/util/changelog_generator.rb:29
1816
+ #: ../lib/pdk/util/changelog_generator.rb:34
1653
1817
  msgid "The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details"
1654
1818
  msgstr ""
1655
1819
 
1656
- #: ../lib/pdk/util/changelog_generator.rb:38
1820
+ #: ../lib/pdk/util/changelog_generator.rb:43
1657
1821
  msgid "Invalid version string %{version}"
1658
1822
  msgstr ""
1659
1823
 
1660
- #: ../lib/pdk/util/changelog_generator.rb:40
1824
+ #: ../lib/pdk/util/changelog_generator.rb:45
1661
1825
  msgid "Determing the target version from '%{file}'"
1662
1826
  msgstr ""
1663
1827
 
@@ -1749,31 +1913,31 @@ msgstr ""
1749
1913
  msgid "PDK::Util::TemplateURI attempted initialization with a non-uri string: {string}"
1750
1914
  msgstr ""
1751
1915
 
1752
- #: ../lib/pdk/util/template_uri.rb:177
1916
+ #: ../lib/pdk/util/template_uri.rb:181
1753
1917
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1754
1918
  msgstr ""
1755
1919
 
1756
- #: ../lib/pdk/util/template_uri.rb:228
1920
+ #: ../lib/pdk/util/template_uri.rb:232
1757
1921
  msgid "--template-url"
1758
1922
  msgstr ""
1759
1923
 
1760
- #: ../lib/pdk/util/template_uri.rb:229
1924
+ #: ../lib/pdk/util/template_uri.rb:233
1761
1925
  msgid "metadata.json"
1762
1926
  msgstr ""
1763
1927
 
1764
- #: ../lib/pdk/util/template_uri.rb:230
1928
+ #: ../lib/pdk/util/template_uri.rb:234
1765
1929
  msgid "PDK answers"
1766
1930
  msgstr ""
1767
1931
 
1768
- #: ../lib/pdk/util/template_uri.rb:231
1932
+ #: ../lib/pdk/util/template_uri.rb:235
1769
1933
  msgid "default"
1770
1934
  msgstr ""
1771
1935
 
1772
- #: ../lib/pdk/util/template_uri.rb:255
1936
+ #: ../lib/pdk/util/template_uri.rb:259
1773
1937
  msgid "Unable to find a valid module template to use."
1774
1938
  msgstr ""
1775
1939
 
1776
- #: ../lib/pdk/util/template_uri.rb:279
1940
+ #: ../lib/pdk/util/template_uri.rb:282
1777
1941
  msgid "Unable to find a valid template at %{uri}"
1778
1942
  msgstr ""
1779
1943
 
@@ -1821,90 +1985,110 @@ msgstr ""
1821
1985
  msgid "Failed to set environment variaible: %{name}"
1822
1986
  msgstr ""
1823
1987
 
1824
- #: ../lib/pdk/validate/base_validator.rb:105
1825
- msgid "Invoking %{cmd}"
1988
+ #: ../lib/pdk/validate.rb:78
1989
+ msgid "Validating module using %{num_of_threads} threads"
1990
+ msgstr ""
1991
+
1992
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:22
1993
+ msgid "Checking Puppet Environment settings (%{patterns})."
1826
1994
  msgstr ""
1827
1995
 
1828
- #: ../lib/pdk/validate/base_validator.rb:110
1996
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:34 ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:43 ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:42 ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:50
1997
+ msgid "Could not be read."
1998
+ msgstr ""
1999
+
2000
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:49
2001
+ msgid "Invalid section '%{name}'"
2002
+ msgstr ""
2003
+
2004
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:51
2005
+ msgid "Invalid setting '%{name}'"
2006
+ msgstr ""
2007
+
2008
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:71
2009
+ msgid "environment_timeout is set to '%{timeout}' but should be 0, 'unlimited' or not set."
2010
+ msgstr ""
2011
+
2012
+ #: ../lib/pdk/validate/invokable_validator.rb:119
2013
+ msgid "Running %{name} validator ..."
2014
+ msgstr ""
2015
+
2016
+ #: ../lib/pdk/validate/invokable_validator.rb:136
1829
2017
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1830
2018
  msgstr ""
1831
2019
 
1832
- #: ../lib/pdk/validate/base_validator.rb:114
2020
+ #: ../lib/pdk/validate/invokable_validator.rb:140
1833
2021
  msgid "Target does not contain any files to validate (%{pattern})."
1834
2022
  msgstr ""
1835
2023
 
1836
- #: ../lib/pdk/validate/base_validator.rb:123
2024
+ #: ../lib/pdk/validate/invokable_validator.rb:152
1837
2025
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1838
2026
  msgstr ""
1839
2027
 
1840
- #: ../lib/pdk/validate/base_validator.rb:127
2028
+ #: ../lib/pdk/validate/invokable_validator.rb:156
1841
2029
  msgid "File does not exist."
1842
2030
  msgstr ""
1843
2031
 
1844
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:19
2032
+ #: ../lib/pdk/validate/metadata/metadata_json_lint_validator.rb:22
1845
2033
  msgid "Checking module metadata style (%{targets})."
1846
2034
  msgstr ""
1847
2035
 
1848
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:36
1849
- msgid "More than 1 target provided to PDK::Validate::MetadataJSONLint."
1850
- msgstr ""
1851
-
1852
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:15
1853
- msgid "Checking metadata syntax (%{targets})."
2036
+ #: ../lib/pdk/validate/metadata/metadata_json_lint_validator.rb:39
2037
+ msgid "More than 1 target provided to PDK::Validate::MetadataJSONLintValidator."
1854
2038
  msgstr ""
1855
2039
 
1856
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:71 ../lib/pdk/validate/tasks/metadata_lint.rb:81 ../lib/pdk/validate/yaml/syntax.rb:76
1857
- msgid "Could not be read."
2040
+ #: ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:16
2041
+ msgid "Checking metadata syntax (%{patterns})."
1858
2042
  msgstr ""
1859
2043
 
1860
- #: ../lib/pdk/validate/puppet/puppet_epp.rb:43
2044
+ #: ../lib/pdk/validate/puppet/puppet_epp_validator.rb:40
1861
2045
  msgid "Checking Puppet EPP syntax (%{pattern})."
1862
2046
  msgstr ""
1863
2047
 
1864
- #: ../lib/pdk/validate/puppet/puppet_lint.rb:19
2048
+ #: ../lib/pdk/validate/puppet/puppet_lint_validator.rb:20
1865
2049
  msgid "Checking Puppet manifest style (%{pattern})."
1866
2050
  msgstr ""
1867
2051
 
1868
- #: ../lib/pdk/validate/puppet/puppet_syntax.rb:43
2052
+ #: ../lib/pdk/validate/puppet/puppet_syntax_validator.rb:44
1869
2053
  msgid "Checking Puppet manifest syntax (%{pattern})."
1870
2054
  msgstr ""
1871
2055
 
1872
- #: ../lib/pdk/validate/ruby/rubocop.rb:21
2056
+ #: ../lib/pdk/validate/ruby/ruby_rubocop_validator.rb:28
1873
2057
  msgid "Checking Ruby code style (%{pattern})."
1874
2058
  msgstr ""
1875
2059
 
1876
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:18
1877
- msgid "Checking task metadata style (%{targets})."
2060
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:18
2061
+ msgid "Checking task metadata style (%{pattern})."
1878
2062
  msgstr ""
1879
2063
 
1880
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:58
2064
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:32
1881
2065
  msgid "Failed to parse Task Metadata Schema file."
1882
2066
  msgstr ""
1883
2067
 
1884
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:96
2068
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:57
1885
2069
  msgid "Unable to validate Task Metadata. %{error}."
1886
2070
  msgstr ""
1887
2071
 
1888
- #: ../lib/pdk/validate/tasks/name.rb:7
2072
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:7
1889
2073
  msgid "Invalid task name. Task names must start with a lowercase letter and can only contain lowercase letters, numbers, and underscores."
1890
2074
  msgstr ""
1891
2075
 
1892
- #: ../lib/pdk/validate/tasks/name.rb:21
1893
- msgid "Checking task names (%{targets})."
2076
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:21
2077
+ msgid "Checking task names (%{pattern})."
1894
2078
  msgstr ""
1895
2079
 
1896
- #: ../lib/pdk/validate/yaml/syntax.rb:24
1897
- msgid "Checking YAML syntax (%{targets})."
2080
+ #: ../lib/pdk/validate/validator_group.rb:35
2081
+ msgid "Running %{name} validators ..."
1898
2082
  msgstr ""
1899
2083
 
1900
- #: ../lib/pdk/validate/yaml/syntax.rb:65
1901
- msgid "Validating yaml content of %{parsed_targets}"
2084
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:36
2085
+ msgid "Checking YAML syntax (%{patterns})."
1902
2086
  msgstr ""
1903
2087
 
1904
- #: ../lib/pdk/validate/yaml/syntax.rb:99
2088
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:73
1905
2089
  msgid "%{problem} %{context}"
1906
2090
  msgstr ""
1907
2091
 
1908
- #: ../lib/pdk/validate/yaml/syntax.rb:111
2092
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:85
1909
2093
  msgid "Unsupported class: %{message}"
1910
2094
  msgstr ""