pdk 1.16.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +167 -11
  3. data/README.md +1 -1
  4. data/lib/pdk.rb +26 -19
  5. data/lib/pdk/answer_file.rb +2 -93
  6. data/lib/pdk/cli.rb +8 -6
  7. data/lib/pdk/cli/config.rb +3 -1
  8. data/lib/pdk/cli/config/get.rb +3 -1
  9. data/lib/pdk/cli/convert.rb +7 -9
  10. data/lib/pdk/cli/env.rb +52 -0
  11. data/lib/pdk/cli/exec/command.rb +13 -0
  12. data/lib/pdk/cli/exec_group.rb +78 -43
  13. data/lib/pdk/cli/get.rb +20 -0
  14. data/lib/pdk/cli/get/config.rb +24 -0
  15. data/lib/pdk/cli/new.rb +2 -0
  16. data/lib/pdk/cli/new/class.rb +2 -1
  17. data/lib/pdk/cli/new/defined_type.rb +2 -1
  18. data/lib/pdk/cli/new/fact.rb +29 -0
  19. data/lib/pdk/cli/new/function.rb +29 -0
  20. data/lib/pdk/cli/new/provider.rb +2 -1
  21. data/lib/pdk/cli/new/task.rb +2 -1
  22. data/lib/pdk/cli/new/test.rb +2 -1
  23. data/lib/pdk/cli/new/transport.rb +2 -1
  24. data/lib/pdk/cli/release/publish.rb +11 -1
  25. data/lib/pdk/cli/remove.rb +20 -0
  26. data/lib/pdk/cli/remove/config.rb +80 -0
  27. data/lib/pdk/cli/set.rb +20 -0
  28. data/lib/pdk/cli/set/config.rb +119 -0
  29. data/lib/pdk/cli/update.rb +6 -8
  30. data/lib/pdk/cli/util.rb +7 -3
  31. data/lib/pdk/cli/util/option_validator.rb +6 -0
  32. data/lib/pdk/cli/util/update_manager_printer.rb +82 -0
  33. data/lib/pdk/cli/validate.rb +26 -44
  34. data/lib/pdk/config.rb +264 -7
  35. data/lib/pdk/config/ini_file.rb +183 -0
  36. data/lib/pdk/config/ini_file_setting.rb +39 -0
  37. data/lib/pdk/config/namespace.rb +25 -5
  38. data/lib/pdk/config/setting.rb +3 -2
  39. data/lib/pdk/context.rb +99 -0
  40. data/lib/pdk/context/control_repo.rb +60 -0
  41. data/lib/pdk/context/module.rb +28 -0
  42. data/lib/pdk/context/none.rb +22 -0
  43. data/lib/pdk/control_repo.rb +40 -0
  44. data/lib/pdk/generate/defined_type.rb +25 -32
  45. data/lib/pdk/generate/fact.rb +25 -0
  46. data/lib/pdk/generate/function.rb +48 -0
  47. data/lib/pdk/generate/module.rb +14 -17
  48. data/lib/pdk/generate/provider.rb +15 -64
  49. data/lib/pdk/generate/puppet_class.rb +25 -31
  50. data/lib/pdk/generate/puppet_object.rb +83 -187
  51. data/lib/pdk/generate/task.rb +28 -46
  52. data/lib/pdk/generate/transport.rb +20 -74
  53. data/lib/pdk/module.rb +1 -1
  54. data/lib/pdk/module/convert.rb +43 -23
  55. data/lib/pdk/module/metadata.rb +6 -2
  56. data/lib/pdk/module/release.rb +3 -9
  57. data/lib/pdk/module/update.rb +7 -11
  58. data/lib/pdk/module/update_manager.rb +7 -0
  59. data/lib/pdk/report.rb +3 -3
  60. data/lib/pdk/report/event.rb +8 -2
  61. data/lib/pdk/template.rb +59 -0
  62. data/lib/pdk/template/fetcher.rb +98 -0
  63. data/lib/pdk/template/fetcher/git.rb +85 -0
  64. data/lib/pdk/template/fetcher/local.rb +28 -0
  65. data/lib/pdk/template/renderer.rb +96 -0
  66. data/lib/pdk/template/renderer/v1.rb +25 -0
  67. data/lib/pdk/template/renderer/v1/legacy_template_dir.rb +116 -0
  68. data/lib/pdk/template/renderer/v1/renderer.rb +132 -0
  69. data/lib/pdk/template/renderer/v1/template_file.rb +102 -0
  70. data/lib/pdk/template/template_dir.rb +67 -0
  71. data/lib/pdk/tests/unit.rb +8 -1
  72. data/lib/pdk/util.rb +38 -39
  73. data/lib/pdk/util/bundler.rb +2 -1
  74. data/lib/pdk/util/changelog_generator.rb +11 -2
  75. data/lib/pdk/util/json_finder.rb +84 -0
  76. data/lib/pdk/util/puppet_strings.rb +3 -3
  77. data/lib/pdk/util/puppet_version.rb +2 -2
  78. data/lib/pdk/util/ruby_version.rb +5 -1
  79. data/lib/pdk/util/template_uri.rb +13 -14
  80. data/lib/pdk/util/vendored_file.rb +1 -2
  81. data/lib/pdk/validate.rb +79 -25
  82. data/lib/pdk/validate/control_repo/control_repo_validator_group.rb +23 -0
  83. data/lib/pdk/validate/control_repo/environment_conf_validator.rb +98 -0
  84. data/lib/pdk/validate/external_command_validator.rb +208 -0
  85. data/lib/pdk/validate/internal_ruby_validator.rb +100 -0
  86. data/lib/pdk/validate/invokable_validator.rb +220 -0
  87. data/lib/pdk/validate/metadata/metadata_json_lint_validator.rb +86 -0
  88. data/lib/pdk/validate/metadata/metadata_syntax_validator.rb +78 -0
  89. data/lib/pdk/validate/metadata/metadata_validator_group.rb +20 -0
  90. data/lib/pdk/validate/puppet/puppet_epp_validator.rb +133 -0
  91. data/lib/pdk/validate/puppet/puppet_lint_validator.rb +66 -0
  92. data/lib/pdk/validate/puppet/puppet_syntax_validator.rb +137 -0
  93. data/lib/pdk/validate/puppet/puppet_validator_group.rb +21 -0
  94. data/lib/pdk/validate/ruby/ruby_rubocop_validator.rb +80 -0
  95. data/lib/pdk/validate/ruby/ruby_validator_group.rb +19 -0
  96. data/lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb +88 -0
  97. data/lib/pdk/validate/tasks/tasks_name_validator.rb +50 -0
  98. data/lib/pdk/validate/tasks/tasks_validator_group.rb +20 -0
  99. data/lib/pdk/validate/validator.rb +118 -0
  100. data/lib/pdk/validate/validator_group.rb +104 -0
  101. data/lib/pdk/validate/yaml/yaml_syntax_validator.rb +95 -0
  102. data/lib/pdk/validate/yaml/yaml_validator_group.rb +19 -0
  103. data/lib/pdk/version.rb +1 -1
  104. data/locales/pdk.pot +477 -313
  105. metadata +77 -35
  106. data/lib/pdk/module/template_dir.rb +0 -115
  107. data/lib/pdk/module/template_dir/base.rb +0 -268
  108. data/lib/pdk/module/template_dir/git.rb +0 -91
  109. data/lib/pdk/module/template_dir/local.rb +0 -21
  110. data/lib/pdk/template_file.rb +0 -96
  111. data/lib/pdk/validate/base_validator.rb +0 -215
  112. data/lib/pdk/validate/metadata/metadata_json_lint.rb +0 -82
  113. data/lib/pdk/validate/metadata/metadata_syntax.rb +0 -111
  114. data/lib/pdk/validate/metadata_validator.rb +0 -26
  115. data/lib/pdk/validate/puppet/puppet_epp.rb +0 -135
  116. data/lib/pdk/validate/puppet/puppet_lint.rb +0 -64
  117. data/lib/pdk/validate/puppet/puppet_syntax.rb +0 -135
  118. data/lib/pdk/validate/puppet_validator.rb +0 -26
  119. data/lib/pdk/validate/ruby/rubocop.rb +0 -72
  120. data/lib/pdk/validate/ruby_validator.rb +0 -26
  121. data/lib/pdk/validate/tasks/metadata_lint.rb +0 -130
  122. data/lib/pdk/validate/tasks/name.rb +0 -90
  123. data/lib/pdk/validate/tasks_validator.rb +0 -29
  124. data/lib/pdk/validate/yaml/syntax.rb +0 -125
  125. 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.16.0'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
data/locales/pdk.pot CHANGED
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v1.15.0-30-g4c79619\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: 2020-02-05 12:17+1100\n"
13
- "PO-Revision-Date: 2020-02-05 12:17+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:212
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:215 ../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:226
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:242
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 ""
@@ -507,11 +507,11 @@ msgstr ""
507
507
  msgid "Test type not specified, assuming unit."
508
508
  msgstr ""
509
509
 
510
- #: ../lib/pdk/cli/new/test.rb:45
510
+ #: ../lib/pdk/cli/new/test.rb:46
511
511
  msgid "Unable to find anything called \"%{object}\" to generate unit tests for."
512
512
  msgstr ""
513
513
 
514
- #: ../lib/pdk/cli/new/test.rb:47
514
+ #: ../lib/pdk/cli/new/test.rb:48
515
515
  msgid "PDK does not support generating unit tests for \"%{object_type}\" objects."
516
516
  msgstr ""
517
517
 
@@ -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"
@@ -984,231 +1148,223 @@ msgid "Using the %{method} template-url and template-ref '%{template_uri}'."
984
1148
  msgstr ""
985
1149
 
986
1150
  #: ../lib/pdk/generate/module.rb:54
987
- msgid "specified"
1151
+ msgid "saved"
988
1152
  msgstr ""
989
1153
 
990
1154
  #: ../lib/pdk/generate/module.rb:54
991
- msgid "saved"
1155
+ msgid "specified"
992
1156
  msgstr ""
993
1157
 
994
- #: ../lib/pdk/generate/module.rb:101
1158
+ #: ../lib/pdk/generate/module.rb:102
995
1159
  msgid "Module '%{name}' generated at path '%{path}'."
996
1160
  msgstr ""
997
1161
 
998
- #: ../lib/pdk/generate/module.rb:105
1162
+ #: ../lib/pdk/generate/module.rb:106
999
1163
  msgid "In your module directory, add classes with the 'pdk new class' command."
1000
1164
  msgstr ""
1001
1165
 
1002
- #: ../lib/pdk/generate/module.rb:110
1166
+ #: ../lib/pdk/generate/module.rb:111
1003
1167
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
1004
1168
  msgstr ""
1005
1169
 
1006
- #: ../lib/pdk/generate/module.rb:126
1170
+ #: ../lib/pdk/generate/module.rb:127
1007
1171
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
1008
1172
  msgstr ""
1009
1173
 
1010
- #: ../lib/pdk/generate/module.rb:164
1174
+ #: ../lib/pdk/generate/module.rb:165
1011
1175
  msgid "Unable to create directory '%{dir}': %{message}"
1012
1176
  msgstr ""
1013
1177
 
1014
- #: ../lib/pdk/generate/module.rb:179
1178
+ #: ../lib/pdk/generate/module.rb:180
1015
1179
  msgid "If you have a name for your module, add it here."
1016
1180
  msgstr ""
1017
1181
 
1018
- #: ../lib/pdk/generate/module.rb:180
1182
+ #: ../lib/pdk/generate/module.rb:181
1019
1183
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
1020
1184
  msgstr ""
1021
1185
 
1022
- #: ../lib/pdk/generate/module.rb:183
1186
+ #: ../lib/pdk/generate/module.rb:184
1023
1187
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
1024
1188
  msgstr ""
1025
1189
 
1026
- #: ../lib/pdk/generate/module.rb:187
1190
+ #: ../lib/pdk/generate/module.rb:188
1027
1191
  msgid "If you have a Puppet Forge username, add it here."
1028
1192
  msgstr ""
1029
1193
 
1030
- #: ../lib/pdk/generate/module.rb:188
1194
+ #: ../lib/pdk/generate/module.rb:189
1031
1195
  msgid "We can use this to upload your module to the Forge when it's complete."
1032
1196
  msgstr ""
1033
1197
 
1034
- #: ../lib/pdk/generate/module.rb:191
1198
+ #: ../lib/pdk/generate/module.rb:192
1035
1199
  msgid "Forge usernames can only contain lowercase letters and numbers"
1036
1200
  msgstr ""
1037
1201
 
1038
- #: ../lib/pdk/generate/module.rb:196
1202
+ #: ../lib/pdk/generate/module.rb:197
1039
1203
  msgid "What version is this module?"
1040
1204
  msgstr ""
1041
1205
 
1042
- #: ../lib/pdk/generate/module.rb:197
1206
+ #: ../lib/pdk/generate/module.rb:198
1043
1207
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
1044
1208
  msgstr ""
1045
1209
 
1046
- #: ../lib/pdk/generate/module.rb:200
1210
+ #: ../lib/pdk/generate/module.rb:201
1047
1211
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
1048
1212
  msgstr ""
1049
1213
 
1050
- #: ../lib/pdk/generate/module.rb:206
1214
+ #: ../lib/pdk/generate/module.rb:207
1051
1215
  msgid "Who wrote this module?"
1052
1216
  msgstr ""
1053
1217
 
1054
- #: ../lib/pdk/generate/module.rb:207
1218
+ #: ../lib/pdk/generate/module.rb:208
1055
1219
  msgid "This is used to credit the module's author."
1056
1220
  msgstr ""
1057
1221
 
1058
- #: ../lib/pdk/generate/module.rb:213
1222
+ #: ../lib/pdk/generate/module.rb:214
1059
1223
  msgid "What license does this module code fall under?"
1060
1224
  msgstr ""
1061
1225
 
1062
- #: ../lib/pdk/generate/module.rb:214
1226
+ #: ../lib/pdk/generate/module.rb:215
1063
1227
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
1064
1228
  msgstr ""
1065
1229
 
1066
- #: ../lib/pdk/generate/module.rb:220
1230
+ #: ../lib/pdk/generate/module.rb:221
1067
1231
  msgid "What operating systems does this module support?"
1068
1232
  msgstr ""
1069
1233
 
1070
- #: ../lib/pdk/generate/module.rb:221
1234
+ #: ../lib/pdk/generate/module.rb:222
1071
1235
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
1072
1236
  msgstr ""
1073
1237
 
1074
- #: ../lib/pdk/generate/module.rb:232
1238
+ #: ../lib/pdk/generate/module.rb:233
1075
1239
  msgid "Summarize the purpose of this module in a single sentence."
1076
1240
  msgstr ""
1077
1241
 
1078
- #: ../lib/pdk/generate/module.rb:233
1242
+ #: ../lib/pdk/generate/module.rb:234
1079
1243
  msgid "This helps other Puppet users understand what the module does."
1080
1244
  msgstr ""
1081
1245
 
1082
- #: ../lib/pdk/generate/module.rb:240
1246
+ #: ../lib/pdk/generate/module.rb:241
1083
1247
  msgid "If there is a source code repository for this module, enter the URL here."
1084
1248
  msgstr ""
1085
1249
 
1086
- #: ../lib/pdk/generate/module.rb:241
1250
+ #: ../lib/pdk/generate/module.rb:242
1087
1251
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
1088
1252
  msgstr ""
1089
1253
 
1090
- #: ../lib/pdk/generate/module.rb:248
1254
+ #: ../lib/pdk/generate/module.rb:249
1091
1255
  msgid "If there is a URL where others can learn more about this module, enter it here."
1092
1256
  msgstr ""
1093
1257
 
1094
- #: ../lib/pdk/generate/module.rb:249 ../lib/pdk/generate/module.rb:256
1258
+ #: ../lib/pdk/generate/module.rb:250 ../lib/pdk/generate/module.rb:257
1095
1259
  msgid "Optional. You can update this later in the metadata.json."
1096
1260
  msgstr ""
1097
1261
 
1098
- #: ../lib/pdk/generate/module.rb:255
1262
+ #: ../lib/pdk/generate/module.rb:256
1099
1263
  msgid "If there is a public issue tracker for this module, enter its URL here."
1100
1264
  msgstr ""
1101
1265
 
1102
- #: ../lib/pdk/generate/module.rb:283
1266
+ #: ../lib/pdk/generate/module.rb:284
1103
1267
  msgid ""
1104
1268
  "\n"
1105
1269
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1106
1270
  msgstr ""
1107
1271
 
1108
- #: ../lib/pdk/generate/module.rb:290
1272
+ #: ../lib/pdk/generate/module.rb:291
1109
1273
  msgid ""
1110
1274
  "\n"
1111
1275
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1112
1276
  msgstr ""
1113
1277
 
1114
- #: ../lib/pdk/generate/module.rb:298
1278
+ #: ../lib/pdk/generate/module.rb:299
1115
1279
  msgid ""
1116
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"
1117
1281
  "\n"
1118
1282
  msgstr ""
1119
1283
 
1120
- #: ../lib/pdk/generate/module.rb:307
1284
+ #: ../lib/pdk/generate/module.rb:308
1121
1285
  msgid "No answers given, interview cancelled."
1122
1286
  msgstr ""
1123
1287
 
1124
- #: ../lib/pdk/generate/module.rb:333
1288
+ #: ../lib/pdk/generate/module.rb:334
1125
1289
  msgid "Metadata will be generated based on this information, continue?"
1126
1290
  msgstr ""
1127
1291
 
1128
- #: ../lib/pdk/generate/module.rb:335
1292
+ #: ../lib/pdk/generate/module.rb:336
1129
1293
  msgid "Interview cancelled; exiting."
1130
1294
  msgstr ""
1131
1295
 
1132
- #: ../lib/pdk/generate/module.rb:339
1296
+ #: ../lib/pdk/generate/module.rb:340
1133
1297
  msgid "Process cancelled; exiting."
1134
1298
  msgstr ""
1135
1299
 
1136
- #: ../lib/pdk/generate/provider.rb:23
1137
- 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."
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"
1138
1302
  msgstr ""
1139
1303
 
1140
- #: ../lib/pdk/generate/provider.rb:33 ../lib/pdk/generate/transport.rb:33
1141
- msgid ".sync.yml not found"
1304
+ #: ../lib/pdk/generate/puppet_object.rb:64
1305
+ msgid "Expected a module context but got %{context_name}"
1142
1306
  msgstr ""
1143
1307
 
1144
- #: ../lib/pdk/generate/provider.rb:37 ../lib/pdk/generate/transport.rb:37
1145
- msgid ".sync.yml contents is not a Hash"
1146
- msgstr ""
1147
-
1148
- #: ../lib/pdk/generate/provider.rb:39 ../lib/pdk/generate/transport.rb:39
1149
- msgid "Gemfile configuration not found"
1308
+ #: ../lib/pdk/generate/puppet_object.rb:125
1309
+ msgid "Unable to generate %{object_type}; '%{file}' already exists."
1150
1310
  msgstr ""
1151
1311
 
1152
- #: ../lib/pdk/generate/provider.rb:41 ../lib/pdk/generate/transport.rb:41
1153
- 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."
1154
1314
  msgstr ""
1155
1315
 
1156
- #: ../lib/pdk/generate/provider.rb:43 ../lib/pdk/generate/transport.rb:43
1157
- 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."
1158
1318
  msgstr ""
1159
1319
 
1160
- #: ../lib/pdk/generate/provider.rb:45 ../lib/pdk/generate/transport.rb:45
1161
- 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}."
1162
1322
  msgstr ""
1163
1323
 
1164
- #: ../lib/pdk/generate/provider.rb:47 ../lib/pdk/generate/transport.rb:47
1165
- msgid "spec/spec_helper.rb configuration not found"
1324
+ #: ../lib/pdk/generate/resource_api_object.rb:20
1325
+ msgid ".sync.yml not found"
1166
1326
  msgstr ""
1167
1327
 
1168
- #: ../lib/pdk/generate/provider.rb:49 ../lib/pdk/generate/transport.rb:49
1169
- 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"
1170
1330
  msgstr ""
1171
1331
 
1172
- #: ../lib/pdk/generate/provider.rb:51 ../lib/pdk/generate/transport.rb:51
1173
- 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"
1174
1334
  msgstr ""
1175
1335
 
1176
- #: ../lib/pdk/generate/puppet_object.rb:142
1177
- 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"
1178
1338
  msgstr ""
1179
1339
 
1180
- #: ../lib/pdk/generate/puppet_object.rb:226
1181
- msgid "Creating '%{file}' from template."
1340
+ #: ../lib/pdk/generate/resource_api_object.rb:30
1341
+ msgid "Gemfile.optional.:development configuration not found"
1182
1342
  msgstr ""
1183
1343
 
1184
- #: ../lib/pdk/generate/puppet_object.rb:233
1185
- 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"
1186
1346
  msgstr ""
1187
1347
 
1188
- #: ../lib/pdk/generate/puppet_object.rb:241
1189
- 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"
1190
1350
  msgstr ""
1191
1351
 
1192
- #: ../lib/pdk/generate/puppet_object.rb:267
1193
- 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"
1194
1354
  msgstr ""
1195
1355
 
1196
- #: ../lib/pdk/generate/puppet_object.rb:280
1197
- 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'"
1198
1358
  msgstr ""
1199
1359
 
1200
- #: ../lib/pdk/generate/puppet_object.rb:282
1201
- 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"
1202
1362
  msgstr ""
1203
1363
 
1204
- #: ../lib/pdk/generate/task.rb:54
1364
+ #: ../lib/pdk/generate/task.rb:31
1205
1365
  msgid "A task named '%{name}' already exists in this module; defined in %{file}"
1206
1366
  msgstr ""
1207
1367
 
1208
- #: ../lib/pdk/generate/transport.rb:23
1209
- 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."
1210
- msgstr ""
1211
-
1212
1368
  #: ../lib/pdk/module/build.rb:129
1213
1369
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1214
1370
  msgstr ""
@@ -1233,44 +1389,48 @@ msgstr ""
1233
1389
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1234
1390
  msgstr ""
1235
1391
 
1236
- #: ../lib/pdk/module/convert.rb:32 ../lib/pdk/module/update.rb:20
1392
+ #: ../lib/pdk/module/convert.rb:33 ../lib/pdk/module/update.rb:20
1237
1393
  msgid "No changes required."
1238
1394
  msgstr ""
1239
1395
 
1240
- #: ../lib/pdk/module/convert.rb:47
1396
+ #: ../lib/pdk/module/convert.rb:48
1241
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."
1242
1398
  msgstr ""
1243
1399
 
1244
- #: ../lib/pdk/module/convert.rb:52 ../lib/pdk/module/update.rb:32
1400
+ #: ../lib/pdk/module/convert.rb:53 ../lib/pdk/module/update.rb:32
1245
1401
  msgid "Do you want to continue and make these changes to your module?"
1246
1402
  msgstr ""
1247
1403
 
1248
- #: ../lib/pdk/module/convert.rb:138
1404
+ #: ../lib/pdk/module/convert.rb:131
1405
+ msgid "No test changes required."
1406
+ msgstr ""
1407
+
1408
+ #: ../lib/pdk/module/convert.rb:156
1249
1409
  msgid "skipping '%{path}'"
1250
1410
  msgstr ""
1251
1411
 
1252
- #: ../lib/pdk/module/convert.rb:177
1412
+ #: ../lib/pdk/module/convert.rb:195
1253
1413
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1254
1414
  msgstr ""
1255
1415
 
1256
- #: ../lib/pdk/module/convert.rb:193
1416
+ #: ../lib/pdk/module/convert.rb:211
1257
1417
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1258
1418
  msgstr ""
1259
1419
 
1260
- #: ../lib/pdk/module/convert.rb:238 ../lib/pdk/module/convert.rb:243 ../lib/pdk/module/convert.rb:249
1420
+ #: ../lib/pdk/module/convert.rb:256 ../lib/pdk/module/convert.rb:261 ../lib/pdk/module/convert.rb:267
1261
1421
  msgid ""
1262
1422
  "\n"
1263
1423
  "%{banner}"
1264
1424
  msgstr ""
1265
1425
 
1266
- #: ../lib/pdk/module/convert.rb:251
1426
+ #: ../lib/pdk/module/convert.rb:269
1267
1427
  msgid ""
1268
1428
  "\n"
1269
1429
  "%{summary}\n"
1270
1430
  "\n"
1271
1431
  msgstr ""
1272
1432
 
1273
- #: ../lib/pdk/module/convert.rb:260
1433
+ #: ../lib/pdk/module/convert.rb:278
1274
1434
  msgid ""
1275
1435
  "\n"
1276
1436
  "You can find a report of differences in %{path}.\n"
@@ -1353,149 +1513,83 @@ msgstr ""
1353
1513
  msgid "Updating version to %{module_version}"
1354
1514
  msgstr ""
1355
1515
 
1356
- #: ../lib/pdk/module/release.rb:120
1516
+ #: ../lib/pdk/module/release.rb:115
1357
1517
  msgid "An error occured during validation"
1358
1518
  msgstr ""
1359
1519
 
1360
- #: ../lib/pdk/module/release.rb:125
1520
+ #: ../lib/pdk/module/release.rb:119
1361
1521
  msgid "Updating documentation using puppet strings"
1362
1522
  msgstr ""
1363
1523
 
1364
- #: ../lib/pdk/module/release.rb:129
1524
+ #: ../lib/pdk/module/release.rb:123
1365
1525
  msgid "An error occured generating the module documentation: %{stdout}"
1366
1526
  msgstr ""
1367
1527
 
1368
- #: ../lib/pdk/module/release.rb:134
1528
+ #: ../lib/pdk/module/release.rb:128
1369
1529
  msgid "Running dependency checks"
1370
1530
  msgstr ""
1371
1531
 
1372
- #: ../lib/pdk/module/release.rb:140
1532
+ #: ../lib/pdk/module/release.rb:134
1373
1533
  msgid "An error occured checking the module dependencies: %{stdout}"
1374
1534
  msgstr ""
1375
1535
 
1376
- #: ../lib/pdk/module/release.rb:150
1536
+ #: ../lib/pdk/module/release.rb:144
1377
1537
  msgid "Module tarball %{tarball_path} does not exist"
1378
1538
  msgstr ""
1379
1539
 
1380
- #: ../lib/pdk/module/release.rb:156
1540
+ #: ../lib/pdk/module/release.rb:150
1381
1541
  msgid "Uploading tarball to puppet forge..."
1382
1542
  msgstr ""
1383
1543
 
1384
- #: ../lib/pdk/module/release.rb:172
1544
+ #: ../lib/pdk/module/release.rb:166
1385
1545
  msgid "Error uploading to Puppet Forge: %{result}"
1386
1546
  msgstr ""
1387
1547
 
1388
- #: ../lib/pdk/module/release.rb:173
1548
+ #: ../lib/pdk/module/release.rb:167
1389
1549
  msgid "Publish to Forge was successful"
1390
1550
  msgstr ""
1391
1551
 
1392
- #: ../lib/pdk/module/release.rb:178
1552
+ #: ../lib/pdk/module/release.rb:172
1393
1553
  msgid "Missing forge-upload-url option"
1394
1554
  msgstr ""
1395
1555
 
1396
- #: ../lib/pdk/module/release.rb:179
1556
+ #: ../lib/pdk/module/release.rb:173
1397
1557
  msgid "Missing forge-token option"
1398
1558
  msgstr ""
1399
1559
 
1400
- #: ../lib/pdk/module/template_dir.rb:35
1401
- msgid "%{class_name}.with must be passed a block."
1402
- msgstr ""
1403
-
1404
- #: ../lib/pdk/module/template_dir.rb:38
1405
- msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1406
- msgstr ""
1407
-
1408
- #: ../lib/pdk/module/template_dir.rb:73
1409
- msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1410
- msgstr ""
1411
-
1412
- #: ../lib/pdk/module/template_dir.rb:75
1413
- msgid "The specified template '%{path}' is not a directory."
1414
- msgstr ""
1415
-
1416
- #: ../lib/pdk/module/template_dir.rb:80
1417
- msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1418
- msgstr ""
1419
-
1420
- #: ../lib/pdk/module/template_dir.rb:85
1421
- 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."
1422
- msgstr ""
1423
-
1424
- #: ../lib/pdk/module/template_dir.rb:101
1425
- msgid "The directory '%{dir}' doesn't exist"
1426
- msgstr ""
1427
-
1428
- #: ../lib/pdk/module/template_dir/base.rb:39
1429
- msgid "%{class_name} must be initialized with a block."
1430
- msgstr ""
1431
-
1432
- #: ../lib/pdk/module/template_dir/base.rb:42
1433
- msgid "%{class_name} must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1434
- msgstr ""
1435
-
1436
- #: ../lib/pdk/module/template_dir/base.rb:107
1437
- msgid "Rendering '%{template}'..."
1438
- msgstr ""
1439
-
1440
- #: ../lib/pdk/module/template_dir/base.rb:125
1441
- msgid ""
1442
- "Failed to render template '%{template}'\n"
1443
- "%{exception}: %{message}"
1444
- msgstr ""
1445
-
1446
- #: ../lib/pdk/module/template_dir/base.rb:245
1447
- msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1448
- msgstr ""
1449
-
1450
- #: ../lib/pdk/module/template_dir/git.rb:12
1451
- msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1452
- msgstr ""
1453
-
1454
- #: ../lib/pdk/module/template_dir/git.rb:63
1455
- msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1456
- msgstr ""
1457
-
1458
- #: ../lib/pdk/module/template_dir/git.rb:82
1459
- msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1460
- msgstr ""
1461
-
1462
- #: ../lib/pdk/module/template_dir/git.rb:85
1463
- msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1464
- msgstr ""
1465
-
1466
1560
  #: ../lib/pdk/module/update.rb:14
1467
1561
  msgid "This module is already up to date with version %{version} of the template."
1468
1562
  msgstr ""
1469
1563
 
1470
- #: ../lib/pdk/module/update.rb:121
1564
+ #: ../lib/pdk/module/update.rb:117
1471
1565
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1472
1566
  msgstr ""
1473
1567
 
1474
- #: ../lib/pdk/module/update.rb:123
1568
+ #: ../lib/pdk/module/update.rb:119
1475
1569
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1476
1570
  msgstr ""
1477
1571
 
1478
- #: ../lib/pdk/module/update_manager.rb:111
1572
+ #: ../lib/pdk/module/update_manager.rb:118
1479
1573
  msgid "unlinking '%{path}'"
1480
1574
  msgstr ""
1481
1575
 
1482
- #: ../lib/pdk/module/update_manager.rb:114
1576
+ #: ../lib/pdk/module/update_manager.rb:121
1483
1577
  msgid "'%{path}': already gone"
1484
1578
  msgstr ""
1485
1579
 
1486
- #: ../lib/pdk/module/update_manager.rb:117
1580
+ #: ../lib/pdk/module/update_manager.rb:124
1487
1581
  msgid "Unable to remove '%{path}': %{message}"
1488
1582
  msgstr ""
1489
1583
 
1490
- #: ../lib/pdk/module/update_manager.rb:137
1584
+ #: ../lib/pdk/module/update_manager.rb:144
1491
1585
  msgid "Unable to open '%{path}' for reading"
1492
1586
  msgstr ""
1493
1587
 
1494
- #: ../lib/pdk/module/update_manager.rb:156
1588
+ #: ../lib/pdk/module/update_manager.rb:163
1495
1589
  msgid "writing '%{path}'"
1496
1590
  msgstr ""
1497
1591
 
1498
- #: ../lib/pdk/module/update_manager.rb:159
1592
+ #: ../lib/pdk/module/update_manager.rb:166
1499
1593
  msgid "You do not have permission to write to '%{path}'"
1500
1594
  msgstr ""
1501
1595
 
@@ -1543,10 +1637,56 @@ msgstr ""
1543
1637
  msgid "Trace must be an Array of stack trace lines."
1544
1638
  msgstr ""
1545
1639
 
1546
- #: ../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
1547
1683
  msgid "'%{template}' is not a readable file"
1548
1684
  msgstr ""
1549
1685
 
1686
+ #: ../lib/pdk/template/template_dir.rb:39
1687
+ msgid "Could not find a compatible template renderer for %{path}"
1688
+ msgstr ""
1689
+
1550
1690
  #: ../lib/pdk/tests/unit.rb:64
1551
1691
  msgid "Cleaning up after running unit tests."
1552
1692
  msgstr ""
@@ -1571,39 +1711,39 @@ msgstr ""
1571
1711
  msgid "Failed to prepare to run the unit tests."
1572
1712
  msgstr ""
1573
1713
 
1574
- #: ../lib/pdk/tests/unit.rb:95
1714
+ #: ../lib/pdk/tests/unit.rb:100
1575
1715
  msgid "Running unit tests in parallel."
1576
1716
  msgstr ""
1577
1717
 
1578
- #: ../lib/pdk/tests/unit.rb:95
1718
+ #: ../lib/pdk/tests/unit.rb:100
1579
1719
  msgid "Running unit tests."
1580
1720
  msgstr ""
1581
1721
 
1582
- #: ../lib/pdk/tests/unit.rb:120
1722
+ #: ../lib/pdk/tests/unit.rb:125
1583
1723
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1584
1724
  msgstr ""
1585
1725
 
1586
- #: ../lib/pdk/tests/unit.rb:172
1726
+ #: ../lib/pdk/tests/unit.rb:177
1587
1727
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1588
1728
  msgstr ""
1589
1729
 
1590
- #: ../lib/pdk/tests/unit.rb:226
1730
+ #: ../lib/pdk/tests/unit.rb:231
1591
1731
  msgid "Finding unit tests."
1592
1732
  msgstr ""
1593
1733
 
1594
- #: ../lib/pdk/tests/unit.rb:229
1734
+ #: ../lib/pdk/tests/unit.rb:234
1595
1735
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1596
1736
  msgstr ""
1597
1737
 
1598
- #: ../lib/pdk/tests/unit.rb:234
1738
+ #: ../lib/pdk/tests/unit.rb:239
1599
1739
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1600
1740
  msgstr ""
1601
1741
 
1602
- #: ../lib/pdk/util.rb:87
1742
+ #: ../lib/pdk/util.rb:88
1603
1743
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1604
1744
  msgstr ""
1605
1745
 
1606
- #: ../lib/pdk/util.rb:116
1746
+ #: ../lib/pdk/util.rb:117
1607
1747
  msgid "Package basedir requested for non-package install."
1608
1748
  msgstr ""
1609
1749
 
@@ -1651,33 +1791,37 @@ msgstr ""
1651
1791
  msgid "Unable to install missing Gemfile dependencies."
1652
1792
  msgstr ""
1653
1793
 
1654
- #: ../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
1655
1799
  msgid ""
1656
1800
  "Failed to generate binstubs for '%{gems}':\n"
1657
1801
  "%{output}"
1658
1802
  msgstr ""
1659
1803
 
1660
- #: ../lib/pdk/util/bundler.rb:221
1804
+ #: ../lib/pdk/util/bundler.rb:222
1661
1805
  msgid "Unable to install requested binstubs."
1662
1806
  msgstr ""
1663
1807
 
1664
- #: ../lib/pdk/util/changelog_generator.rb:12
1665
- 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"
1666
1810
  msgstr ""
1667
1811
 
1668
- #: ../lib/pdk/util/changelog_generator.rb:25
1812
+ #: ../lib/pdk/util/changelog_generator.rb:30
1669
1813
  msgid "Error generating changelog: %{stdout}"
1670
1814
  msgstr ""
1671
1815
 
1672
- #: ../lib/pdk/util/changelog_generator.rb:29
1816
+ #: ../lib/pdk/util/changelog_generator.rb:34
1673
1817
  msgid "The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details"
1674
1818
  msgstr ""
1675
1819
 
1676
- #: ../lib/pdk/util/changelog_generator.rb:38
1820
+ #: ../lib/pdk/util/changelog_generator.rb:43
1677
1821
  msgid "Invalid version string %{version}"
1678
1822
  msgstr ""
1679
1823
 
1680
- #: ../lib/pdk/util/changelog_generator.rb:40
1824
+ #: ../lib/pdk/util/changelog_generator.rb:45
1681
1825
  msgid "Determing the target version from '%{file}'"
1682
1826
  msgstr ""
1683
1827
 
@@ -1793,7 +1937,7 @@ msgstr ""
1793
1937
  msgid "Unable to find a valid module template to use."
1794
1938
  msgstr ""
1795
1939
 
1796
- #: ../lib/pdk/util/template_uri.rb:283
1940
+ #: ../lib/pdk/util/template_uri.rb:282
1797
1941
  msgid "Unable to find a valid template at %{uri}"
1798
1942
  msgstr ""
1799
1943
 
@@ -1841,90 +1985,110 @@ msgstr ""
1841
1985
  msgid "Failed to set environment variaible: %{name}"
1842
1986
  msgstr ""
1843
1987
 
1844
- #: ../lib/pdk/validate/base_validator.rb:105
1845
- 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})."
1846
1994
  msgstr ""
1847
1995
 
1848
- #: ../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
1849
2017
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1850
2018
  msgstr ""
1851
2019
 
1852
- #: ../lib/pdk/validate/base_validator.rb:114
2020
+ #: ../lib/pdk/validate/invokable_validator.rb:140
1853
2021
  msgid "Target does not contain any files to validate (%{pattern})."
1854
2022
  msgstr ""
1855
2023
 
1856
- #: ../lib/pdk/validate/base_validator.rb:123
2024
+ #: ../lib/pdk/validate/invokable_validator.rb:152
1857
2025
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1858
2026
  msgstr ""
1859
2027
 
1860
- #: ../lib/pdk/validate/base_validator.rb:127
2028
+ #: ../lib/pdk/validate/invokable_validator.rb:156
1861
2029
  msgid "File does not exist."
1862
2030
  msgstr ""
1863
2031
 
1864
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:19
2032
+ #: ../lib/pdk/validate/metadata/metadata_json_lint_validator.rb:22
1865
2033
  msgid "Checking module metadata style (%{targets})."
1866
2034
  msgstr ""
1867
2035
 
1868
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:36
1869
- msgid "More than 1 target provided to PDK::Validate::MetadataJSONLint."
1870
- msgstr ""
1871
-
1872
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:15
1873
- 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."
1874
2038
  msgstr ""
1875
2039
 
1876
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:71 ../lib/pdk/validate/tasks/metadata_lint.rb:81 ../lib/pdk/validate/yaml/syntax.rb:76
1877
- msgid "Could not be read."
2040
+ #: ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:16
2041
+ msgid "Checking metadata syntax (%{patterns})."
1878
2042
  msgstr ""
1879
2043
 
1880
- #: ../lib/pdk/validate/puppet/puppet_epp.rb:43
2044
+ #: ../lib/pdk/validate/puppet/puppet_epp_validator.rb:40
1881
2045
  msgid "Checking Puppet EPP syntax (%{pattern})."
1882
2046
  msgstr ""
1883
2047
 
1884
- #: ../lib/pdk/validate/puppet/puppet_lint.rb:19
2048
+ #: ../lib/pdk/validate/puppet/puppet_lint_validator.rb:20
1885
2049
  msgid "Checking Puppet manifest style (%{pattern})."
1886
2050
  msgstr ""
1887
2051
 
1888
- #: ../lib/pdk/validate/puppet/puppet_syntax.rb:43
2052
+ #: ../lib/pdk/validate/puppet/puppet_syntax_validator.rb:44
1889
2053
  msgid "Checking Puppet manifest syntax (%{pattern})."
1890
2054
  msgstr ""
1891
2055
 
1892
- #: ../lib/pdk/validate/ruby/rubocop.rb:21
2056
+ #: ../lib/pdk/validate/ruby/ruby_rubocop_validator.rb:28
1893
2057
  msgid "Checking Ruby code style (%{pattern})."
1894
2058
  msgstr ""
1895
2059
 
1896
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:18
1897
- msgid "Checking task metadata style (%{targets})."
2060
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:18
2061
+ msgid "Checking task metadata style (%{pattern})."
1898
2062
  msgstr ""
1899
2063
 
1900
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:58
2064
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:32
1901
2065
  msgid "Failed to parse Task Metadata Schema file."
1902
2066
  msgstr ""
1903
2067
 
1904
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:96
2068
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:57
1905
2069
  msgid "Unable to validate Task Metadata. %{error}."
1906
2070
  msgstr ""
1907
2071
 
1908
- #: ../lib/pdk/validate/tasks/name.rb:7
2072
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:7
1909
2073
  msgid "Invalid task name. Task names must start with a lowercase letter and can only contain lowercase letters, numbers, and underscores."
1910
2074
  msgstr ""
1911
2075
 
1912
- #: ../lib/pdk/validate/tasks/name.rb:21
1913
- msgid "Checking task names (%{targets})."
2076
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:21
2077
+ msgid "Checking task names (%{pattern})."
1914
2078
  msgstr ""
1915
2079
 
1916
- #: ../lib/pdk/validate/yaml/syntax.rb:24
1917
- msgid "Checking YAML syntax (%{targets})."
2080
+ #: ../lib/pdk/validate/validator_group.rb:35
2081
+ msgid "Running %{name} validators ..."
1918
2082
  msgstr ""
1919
2083
 
1920
- #: ../lib/pdk/validate/yaml/syntax.rb:65
1921
- msgid "Validating yaml content of %{parsed_targets}"
2084
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:36
2085
+ msgid "Checking YAML syntax (%{patterns})."
1922
2086
  msgstr ""
1923
2087
 
1924
- #: ../lib/pdk/validate/yaml/syntax.rb:99
2088
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:73
1925
2089
  msgid "%{problem} %{context}"
1926
2090
  msgstr ""
1927
2091
 
1928
- #: ../lib/pdk/validate/yaml/syntax.rb:111
2092
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:85
1929
2093
  msgid "Unsupported class: %{message}"
1930
2094
  msgstr ""