pdk 1.14.1 → 1.18.1

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 +155 -2
  3. data/lib/pdk.rb +28 -19
  4. data/lib/pdk/answer_file.rb +2 -95
  5. data/lib/pdk/bolt.rb +19 -0
  6. data/lib/pdk/cli.rb +4 -5
  7. data/lib/pdk/cli/bundle.rb +5 -1
  8. data/lib/pdk/cli/config.rb +3 -1
  9. data/lib/pdk/cli/config/get.rb +3 -1
  10. data/lib/pdk/cli/console.rb +1 -1
  11. data/lib/pdk/cli/convert.rb +16 -10
  12. data/lib/pdk/cli/exec.rb +2 -1
  13. data/lib/pdk/cli/exec/command.rb +45 -4
  14. data/lib/pdk/cli/exec_group.rb +78 -43
  15. data/lib/pdk/cli/get.rb +20 -0
  16. data/lib/pdk/cli/get/config.rb +24 -0
  17. data/lib/pdk/cli/module/build.rb +1 -1
  18. data/lib/pdk/cli/module/generate.rb +1 -1
  19. data/lib/pdk/cli/new/class.rb +2 -2
  20. data/lib/pdk/cli/new/defined_type.rb +2 -2
  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.rb +192 -0
  26. data/lib/pdk/cli/release/prep.rb +39 -0
  27. data/lib/pdk/cli/release/publish.rb +40 -0
  28. data/lib/pdk/cli/remove.rb +20 -0
  29. data/lib/pdk/cli/remove/config.rb +80 -0
  30. data/lib/pdk/cli/set.rb +20 -0
  31. data/lib/pdk/cli/set/config.rb +119 -0
  32. data/lib/pdk/cli/update.rb +18 -8
  33. data/lib/pdk/cli/util.rb +7 -3
  34. data/lib/pdk/cli/util/update_manager_printer.rb +82 -0
  35. data/lib/pdk/cli/validate.rb +26 -44
  36. data/lib/pdk/config.rb +265 -8
  37. data/lib/pdk/config/ini_file.rb +183 -0
  38. data/lib/pdk/config/ini_file_setting.rb +39 -0
  39. data/lib/pdk/config/namespace.rb +26 -6
  40. data/lib/pdk/config/setting.rb +3 -2
  41. data/lib/pdk/context.rb +99 -0
  42. data/lib/pdk/context/control_repo.rb +60 -0
  43. data/lib/pdk/context/module.rb +28 -0
  44. data/lib/pdk/context/none.rb +22 -0
  45. data/lib/pdk/control_repo.rb +90 -0
  46. data/lib/pdk/generate.rb +1 -0
  47. data/lib/pdk/generate/defined_type.rb +25 -32
  48. data/lib/pdk/generate/module.rb +42 -35
  49. data/lib/pdk/generate/provider.rb +16 -65
  50. data/lib/pdk/generate/puppet_class.rb +25 -31
  51. data/lib/pdk/generate/puppet_object.rb +84 -189
  52. data/lib/pdk/generate/resource_api_object.rb +55 -0
  53. data/lib/pdk/generate/task.rb +28 -46
  54. data/lib/pdk/generate/transport.rb +21 -75
  55. data/lib/pdk/module.rb +1 -1
  56. data/lib/pdk/module/build.rb +38 -25
  57. data/lib/pdk/module/convert.rb +61 -42
  58. data/lib/pdk/module/metadata.rb +1 -3
  59. data/lib/pdk/module/release.rb +254 -0
  60. data/lib/pdk/module/update.rb +24 -16
  61. data/lib/pdk/module/update_manager.rb +8 -1
  62. data/lib/pdk/report.rb +18 -12
  63. data/lib/pdk/report/event.rb +6 -3
  64. data/lib/pdk/template.rb +59 -0
  65. data/lib/pdk/template/fetcher.rb +98 -0
  66. data/lib/pdk/template/fetcher/git.rb +85 -0
  67. data/lib/pdk/template/fetcher/local.rb +28 -0
  68. data/lib/pdk/template/renderer.rb +96 -0
  69. data/lib/pdk/template/renderer/v1.rb +25 -0
  70. data/lib/pdk/template/renderer/v1/legacy_template_dir.rb +116 -0
  71. data/lib/pdk/template/renderer/v1/renderer.rb +132 -0
  72. data/lib/pdk/template/renderer/v1/template_file.rb +102 -0
  73. data/lib/pdk/template/template_dir.rb +67 -0
  74. data/lib/pdk/tests/unit.rb +5 -0
  75. data/lib/pdk/util.rb +55 -45
  76. data/lib/pdk/util/bundler.rb +9 -9
  77. data/lib/pdk/util/changelog_generator.rb +120 -0
  78. data/lib/pdk/util/env.rb +28 -11
  79. data/lib/pdk/util/filesystem.rb +62 -2
  80. data/lib/pdk/util/git.rb +60 -8
  81. data/lib/pdk/util/json_finder.rb +84 -0
  82. data/lib/pdk/util/puppet_strings.rb +3 -3
  83. data/lib/pdk/util/puppet_version.rb +4 -5
  84. data/lib/pdk/util/ruby_version.rb +9 -6
  85. data/lib/pdk/util/template_uri.rb +60 -48
  86. data/lib/pdk/util/version.rb +4 -4
  87. data/lib/pdk/validate.rb +79 -25
  88. data/lib/pdk/validate/control_repo/control_repo_validator_group.rb +23 -0
  89. data/lib/pdk/validate/control_repo/environment_conf_validator.rb +98 -0
  90. data/lib/pdk/validate/external_command_validator.rb +208 -0
  91. data/lib/pdk/validate/internal_ruby_validator.rb +100 -0
  92. data/lib/pdk/validate/invokable_validator.rb +215 -0
  93. data/lib/pdk/validate/metadata/metadata_json_lint_validator.rb +86 -0
  94. data/lib/pdk/validate/metadata/metadata_syntax_validator.rb +78 -0
  95. data/lib/pdk/validate/metadata/metadata_validator_group.rb +20 -0
  96. data/lib/pdk/validate/puppet/puppet_epp_validator.rb +133 -0
  97. data/lib/pdk/validate/puppet/puppet_lint_validator.rb +66 -0
  98. data/lib/pdk/validate/puppet/puppet_syntax_validator.rb +137 -0
  99. data/lib/pdk/validate/puppet/puppet_validator_group.rb +21 -0
  100. data/lib/pdk/validate/ruby/ruby_rubocop_validator.rb +80 -0
  101. data/lib/pdk/validate/ruby/ruby_validator_group.rb +19 -0
  102. data/lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb +88 -0
  103. data/lib/pdk/validate/tasks/tasks_name_validator.rb +50 -0
  104. data/lib/pdk/validate/tasks/tasks_validator_group.rb +20 -0
  105. data/lib/pdk/validate/validator.rb +118 -0
  106. data/lib/pdk/validate/validator_group.rb +104 -0
  107. data/lib/pdk/validate/yaml/yaml_syntax_validator.rb +95 -0
  108. data/lib/pdk/validate/yaml/yaml_validator_group.rb +19 -0
  109. data/lib/pdk/version.rb +1 -1
  110. data/locales/pdk.pot +755 -319
  111. metadata +66 -24
  112. data/lib/pdk/module/templatedir.rb +0 -391
  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 -137
  119. data/lib/pdk/validate/puppet/puppet_lint.rb +0 -64
  120. data/lib/pdk/validate/puppet/puppet_syntax.rb +0 -137
  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_WHITELISTED_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_WHITELISTED_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
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.14.1'.freeze
2
+ VERSION = '1.18.1'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
@@ -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.0-110-gcedef59\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-11-01 11:14+1100\n"
13
- "PO-Revision-Date: 2019-11-01 11:14+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:43
27
- msgid "Answer file can be updated only with a Hash"
28
- msgstr ""
29
-
30
- #: ../lib/pdk/answer_file.rb:70
31
- msgid "Unable to open '%{file}' for reading"
32
- msgstr ""
33
-
34
- #: ../lib/pdk/answer_file.rb:79
35
- msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
36
- msgstr ""
37
-
38
- #: ../lib/pdk/answer_file.rb:85
39
- msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
40
- msgstr ""
41
-
42
- #: ../lib/pdk/answer_file.rb:99
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 ""
@@ -127,7 +103,7 @@ msgstr ""
127
103
  msgid "`pdk build` can only be run from inside a valid module with a metadata.json."
128
104
  msgstr ""
129
105
 
130
- #: ../lib/pdk/cli/build.rb:33
106
+ #: ../lib/pdk/cli/build.rb:33 ../lib/pdk/cli/release.rb:59
131
107
  msgid "This module is missing the following fields in the metadata.json: %{fields}. These missing fields may affect the visibility of the module on the Forge."
132
108
  msgstr ""
133
109
 
@@ -139,15 +115,15 @@ msgstr ""
139
115
  msgid "Overwrite?"
140
116
  msgstr ""
141
117
 
142
- #: ../lib/pdk/cli/build.rb:52 ../lib/pdk/cli/build.rb:63
118
+ #: ../lib/pdk/cli/build.rb:52 ../lib/pdk/cli/build.rb:63 ../lib/pdk/cli/release.rb:79
143
119
  msgid "Build cancelled; exiting."
144
120
  msgstr ""
145
121
 
146
- #: ../lib/pdk/cli/build.rb:58
122
+ #: ../lib/pdk/cli/build.rb:58 ../lib/pdk/cli/release.rb:75
147
123
  msgid "This module is not compatible with PDK, so PDK can not validate or test this build. Unvalidated modules may have errors when uploading to the Forge. To make this module PDK compatible and use validate features, cancel the build and run `pdk convert`."
148
124
  msgstr ""
149
125
 
150
- #: ../lib/pdk/cli/build.rb:62
126
+ #: ../lib/pdk/cli/build.rb:62 ../lib/pdk/cli/release.rb:78
151
127
  msgid "Continue build without converting?"
152
128
  msgstr ""
153
129
 
@@ -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
 
@@ -249,19 +233,27 @@ msgstr ""
249
233
  msgid "Add any missing tests while converting the module."
250
234
  msgstr ""
251
235
 
236
+ #: ../lib/pdk/cli/convert.rb:14
237
+ msgid "Convert the module to use the default PDK template."
238
+ msgstr ""
239
+
252
240
  #: ../lib/pdk/cli/convert.rb:21
253
241
  msgid "`pdk convert` can only be run from inside a valid module directory."
254
242
  msgstr ""
255
243
 
256
- #: ../lib/pdk/cli/convert.rb:28
244
+ #: ../lib/pdk/cli/convert.rb:25
257
245
  msgid "You can not specify --noop and --force when converting a module"
258
246
  msgstr ""
259
247
 
260
- #: ../lib/pdk/cli/convert.rb:34 ../lib/pdk/cli/new/module.rb:27
248
+ #: ../lib/pdk/cli/convert.rb:29
249
+ msgid "You can not specify --template-url and --default-template."
250
+ msgstr ""
251
+
252
+ #: ../lib/pdk/cli/convert.rb:40 ../lib/pdk/cli/new/module.rb:27
261
253
  msgid "Ignoring --full-interview and continuing with --skip-interview."
262
254
  msgstr ""
263
255
 
264
- #: ../lib/pdk/cli/convert.rb:39
256
+ #: ../lib/pdk/cli/convert.rb:45
265
257
  msgid "Ignoring --full-interview and continuing with --force."
266
258
  msgstr ""
267
259
 
@@ -277,51 +269,51 @@ msgstr ""
277
269
  msgid "PDK package installation not found. Trying '%{fallback}' from the system PATH instead."
278
270
  msgstr ""
279
271
 
280
- #: ../lib/pdk/cli/exec.rb:71
272
+ #: ../lib/pdk/cli/exec.rb:72
281
273
  msgid "Could not find '%{vendored_bin}' in PDK package. Trying '%{fallback}' from the system PATH instead."
282
274
  msgstr ""
283
275
 
284
- #: ../lib/pdk/cli/exec.rb:78
276
+ #: ../lib/pdk/cli/exec.rb:79
285
277
  msgid "Using '%{vendored_bin}' from PDK package."
286
278
  msgstr ""
287
279
 
288
- #: ../lib/pdk/cli/exec/command.rb:42
280
+ #: ../lib/pdk/cli/exec/command.rb:50
289
281
  msgid "Expected execution context to be :system or :module but got '%{context}'."
290
282
  msgstr ""
291
283
 
292
- #: ../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
293
285
  msgid "Current working directory is not part of a module. (No metadata.json was found.)"
294
286
  msgstr ""
295
287
 
296
- #: ../lib/pdk/cli/exec/command.rb:115
288
+ #: ../lib/pdk/cli/exec/command.rb:128
297
289
  msgid "STDOUT: %{output}"
298
290
  msgstr ""
299
291
 
300
- #: ../lib/pdk/cli/exec/command.rb:118
292
+ #: ../lib/pdk/cli/exec/command.rb:131
301
293
  msgid "STDERR: %{output}"
302
294
  msgstr ""
303
295
 
304
- #: ../lib/pdk/cli/exec/command.rb:132
296
+ #: ../lib/pdk/cli/exec/command.rb:145
305
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"
306
298
  msgstr ""
307
299
 
308
- #: ../lib/pdk/cli/exec/command.rb:141
300
+ #: ../lib/pdk/cli/exec/command.rb:154
309
301
  msgid "%{varname} is not supported by PDK."
310
302
  msgstr ""
311
303
 
312
- #: ../lib/pdk/cli/exec/command.rb:206
304
+ #: ../lib/pdk/cli/exec/command.rb:225
313
305
  msgid "Executing '%{command}'"
314
306
  msgstr ""
315
307
 
316
- #: ../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
317
309
  msgid "Command environment:"
318
310
  msgstr ""
319
311
 
320
- #: ../lib/pdk/cli/exec/command.rb:220
312
+ #: ../lib/pdk/cli/exec/command.rb:239
321
313
  msgid "Failed to execute '%{command}': %{message}"
322
314
  msgstr ""
323
315
 
324
- #: ../lib/pdk/cli/exec/command.rb:236
316
+ #: ../lib/pdk/cli/exec/command.rb:255
325
317
  msgid "Execution of '%{command}' complete (duration: %{duration_in_seconds}s; exit code: %{exit_code})"
326
318
  msgstr ""
327
319
 
@@ -339,10 +331,26 @@ msgid ""
339
331
  " %{duration_in_seconds}s; exit code: %{exit_code})"
340
332
  msgstr ""
341
333
 
342
- #: ../lib/pdk/cli/exec_group.rb:30
334
+ #: ../lib/pdk/cli/exec_group.rb:41
343
335
  msgid "No block registered"
344
336
  msgstr ""
345
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
+
346
354
  #: ../lib/pdk/cli/module.rb:4
347
355
  msgid "module [options]"
348
356
  msgstr ""
@@ -364,7 +372,7 @@ msgid "This command is now 'pdk build'."
364
372
  msgstr ""
365
373
 
366
374
  #: ../lib/pdk/cli/module/build.rb:8
367
- msgid "Modules are built using the pdk build command."
375
+ msgid "Modules are built using the 'pdk build' command."
368
376
  msgstr ""
369
377
 
370
378
  #: ../lib/pdk/cli/module/generate.rb:4
@@ -376,7 +384,7 @@ msgid "This command is now 'pdk new module'."
376
384
  msgstr ""
377
385
 
378
386
  #: ../lib/pdk/cli/module/generate.rb:24
379
- msgid "New modules are created using the pdk new module command."
387
+ msgid "New modules are created using the 'pdk new module' command."
380
388
  msgstr ""
381
389
 
382
390
  #: ../lib/pdk/cli/module/generate.rb:40 ../lib/pdk/cli/new/module.rb:49
@@ -407,7 +415,7 @@ msgstr ""
407
415
  msgid "Classes can only be created from inside a valid module directory."
408
416
  msgstr ""
409
417
 
410
- #: ../lib/pdk/cli/new/class.rb:24
418
+ #: ../lib/pdk/cli/new/class.rb:23
411
419
  msgid "'%{name}' is not a valid class name"
412
420
  msgstr ""
413
421
 
@@ -423,7 +431,7 @@ msgstr ""
423
431
  msgid "Defined types can only be created from inside a valid module directory."
424
432
  msgstr ""
425
433
 
426
- #: ../lib/pdk/cli/new/defined_type.rb:22
434
+ #: ../lib/pdk/cli/new/defined_type.rb:21
427
435
  msgid "'%{name}' is not a valid defined type name"
428
436
  msgstr ""
429
437
 
@@ -455,7 +463,7 @@ msgstr ""
455
463
  msgid "[experimental] Create a new ruby provider named <name> using given options"
456
464
  msgstr ""
457
465
 
458
- #: ../lib/pdk/cli/new/provider.rb:19
466
+ #: ../lib/pdk/cli/new/provider.rb:18
459
467
  msgid "'%{name}' is not a valid provider name"
460
468
  msgstr ""
461
469
 
@@ -475,7 +483,7 @@ msgstr ""
475
483
  msgid "Tasks can only be created from inside a valid module directory."
476
484
  msgstr ""
477
485
 
478
- #: ../lib/pdk/cli/new/task.rb:26
486
+ #: ../lib/pdk/cli/new/task.rb:25
479
487
  msgid "'%{name}' is not a valid task name"
480
488
  msgstr ""
481
489
 
@@ -495,7 +503,7 @@ msgstr ""
495
503
  msgid "Tests can only be created from inside a valid module directory."
496
504
  msgstr ""
497
505
 
498
- #: ../lib/pdk/cli/new/test.rb:31
506
+ #: ../lib/pdk/cli/new/test.rb:30
499
507
  msgid "Test type not specified, assuming unit."
500
508
  msgstr ""
501
509
 
@@ -515,10 +523,262 @@ msgstr ""
515
523
  msgid "[experimental] Create a new ruby transport named <name> using given options"
516
524
  msgstr ""
517
525
 
518
- #: ../lib/pdk/cli/new/transport.rb:19
526
+ #: ../lib/pdk/cli/new/transport.rb:18
519
527
  msgid "'%{name}' is not a valid transport name"
520
528
  msgstr ""
521
529
 
530
+ #: ../lib/pdk/cli/release.rb:11
531
+ msgid "release [options]"
532
+ msgstr ""
533
+
534
+ #: ../lib/pdk/cli/release.rb:12
535
+ msgid "(Experimental) Release a module to the Puppet Forge."
536
+ msgstr ""
537
+
538
+ #: ../lib/pdk/cli/release.rb:14
539
+ msgid "Release the module automatically, with no prompts."
540
+ msgstr ""
541
+
542
+ #: ../lib/pdk/cli/release.rb:15 ../lib/pdk/cli/release/prep.rb:10
543
+ msgid "Skips the module validation check."
544
+ msgstr ""
545
+
546
+ #: ../lib/pdk/cli/release.rb:16 ../lib/pdk/cli/release/prep.rb:11
547
+ msgid "Skips the automatic changelog generation."
548
+ msgstr ""
549
+
550
+ #: ../lib/pdk/cli/release.rb:17 ../lib/pdk/cli/release/prep.rb:12
551
+ msgid "Skips the module dependency check."
552
+ msgstr ""
553
+
554
+ #: ../lib/pdk/cli/release.rb:18 ../lib/pdk/cli/release/prep.rb:13
555
+ msgid "Skips the documentation update."
556
+ msgstr ""
557
+
558
+ #: ../lib/pdk/cli/release.rb:19
559
+ msgid "Skips module build."
560
+ msgstr ""
561
+
562
+ #: ../lib/pdk/cli/release.rb:20
563
+ msgid "Skips publishing the module to the forge."
564
+ msgstr ""
565
+
566
+ #: ../lib/pdk/cli/release.rb:22 ../lib/pdk/cli/release/publish.rb:11
567
+ msgid "Set forge upload url path."
568
+ msgstr ""
569
+
570
+ #: ../lib/pdk/cli/release.rb:25 ../lib/pdk/cli/release/publish.rb:14
571
+ msgid "Set Forge API token."
572
+ msgstr ""
573
+
574
+ #: ../lib/pdk/cli/release.rb:27 ../lib/pdk/cli/release/prep.rb:15
575
+ msgid "Update the module to the specified version prior to release. When not specified, the new version will be computed from the Changelog where possible."
576
+ msgstr ""
577
+
578
+ #: ../lib/pdk/cli/release.rb:30
579
+ msgid "Path to the built module to push to the Forge. This option can only be used when --skip-build is also used. Defaults to pkg/<module version>.tar.gz"
580
+ msgstr ""
581
+
582
+ #: ../lib/pdk/cli/release.rb:36
583
+ msgid "`pdk release` can only be run from inside a valid module with a metadata.json."
584
+ msgstr ""
585
+
586
+ #: ../lib/pdk/cli/release.rb:73
587
+ msgid "This module is not compatible with PDK, so PDK can not validate or test this build."
588
+ msgstr ""
589
+
590
+ #: ../lib/pdk/cli/release.rb:98
591
+ msgid "Do you want to run the module validation ?"
592
+ msgstr ""
593
+
594
+ #: ../lib/pdk/cli/release.rb:105
595
+ msgid "Do you want to run the automatic changelog generation ?"
596
+ msgstr ""
597
+
598
+ #: ../lib/pdk/cli/release.rb:112
599
+ msgid "Do you want to set the module version ?"
600
+ msgstr ""
601
+
602
+ #: ../lib/pdk/cli/release.rb:119
603
+ msgid "Do you want to run the dependency-checker on this module?"
604
+ msgstr ""
605
+
606
+ #: ../lib/pdk/cli/release.rb:126
607
+ msgid "Do you want to update the documentation for this module?"
608
+ msgstr ""
609
+
610
+ #: ../lib/pdk/cli/release.rb:133
611
+ msgid "Do you want to publish the module on the Puppet Forge?"
612
+ msgstr ""
613
+
614
+ #: ../lib/pdk/cli/release.rb:160
615
+ msgid "Please set the module version"
616
+ msgstr ""
617
+
618
+ #: ../lib/pdk/cli/release.rb:161
619
+ msgid "This value is the version that will be used in the changelog generator and building of the module."
620
+ msgstr ""
621
+
622
+ #: ../lib/pdk/cli/release.rb:164
623
+ msgid "The version format should be in the format x.y.z where x represents the major version, y the minor version and z the build number."
624
+ msgstr ""
625
+
626
+ #: ../lib/pdk/cli/release.rb:178
627
+ msgid "Please set the api key(authorization token) to upload on the Puppet Forge"
628
+ msgstr ""
629
+
630
+ #: ../lib/pdk/cli/release.rb:179
631
+ msgid "This value is used for authentication on the Puppet Forge to upload your module tarball."
632
+ msgstr ""
633
+
634
+ #: ../lib/pdk/cli/release/prep.rb:6
635
+ msgid "prep [options]"
636
+ msgstr ""
637
+
638
+ #: ../lib/pdk/cli/release/prep.rb:7
639
+ msgid "(Experimental) Performs all the pre-release checks to ensure module is ready to be released"
640
+ msgstr ""
641
+
642
+ #: ../lib/pdk/cli/release/prep.rb:9
643
+ msgid "Prepare the module automatically, with no prompts."
644
+ msgstr ""
645
+
646
+ #: ../lib/pdk/cli/release/prep.rb:21 ../lib/pdk/cli/release/publish.rb:19
647
+ msgid "`pdk release #{cmd.name}` can only be run from inside a valid module with a metadata.json."
648
+ msgstr ""
649
+
650
+ #: ../lib/pdk/cli/release/publish.rb:6
651
+ msgid "publish [options] <tarball>"
652
+ msgstr ""
653
+
654
+ #: ../lib/pdk/cli/release/publish.rb:7
655
+ msgid "(Experimental) Publishes the module <tarball> to the Forge."
656
+ msgstr ""
657
+
658
+ #: ../lib/pdk/cli/release/publish.rb:9
659
+ msgid "Publish the module automatically, with no prompts."
660
+ msgstr ""
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
+
522
782
  #: ../lib/pdk/cli/test.rb:4
523
783
  msgid "test [subcommand] [options]"
524
784
  msgstr ""
@@ -587,71 +847,75 @@ msgstr ""
587
847
  msgid "Update the module automatically, with no prompts."
588
848
  msgstr ""
589
849
 
590
- #: ../lib/pdk/cli/update.rb:18
850
+ #: ../lib/pdk/cli/update.rb:17
591
851
  msgid "`pdk update` can only be run from inside a valid module directory."
592
852
  msgstr ""
593
853
 
594
- #: ../lib/pdk/cli/update.rb:22
854
+ #: ../lib/pdk/cli/update.rb:20
595
855
  msgid "This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`."
596
856
  msgstr ""
597
857
 
598
- #: ../lib/pdk/cli/update.rb:25
858
+ #: ../lib/pdk/cli/update.rb:23
599
859
  msgid "You can not specify --noop and --force when updating a module"
600
860
  msgstr ""
601
861
 
602
- #: ../lib/pdk/cli/update.rb:29
862
+ #: ../lib/pdk/cli/update.rb:27
603
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!"
604
864
  msgstr ""
605
865
 
606
- #: ../lib/pdk/cli/update.rb:39
866
+ #: ../lib/pdk/cli/update.rb:37
607
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."
608
868
  msgstr ""
609
869
 
610
- #: ../lib/pdk/cli/util.rb:25
870
+ #: ../lib/pdk/cli/update.rb:50
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}`."
872
+ msgstr ""
873
+
874
+ #: ../lib/pdk/cli/util.rb:26
611
875
  msgid "This command must be run from inside a valid module (no metadata.json found)."
612
876
  msgstr ""
613
877
 
614
- #: ../lib/pdk/cli/util.rb:51
878
+ #: ../lib/pdk/cli/util.rb:52
615
879
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
616
880
  msgstr ""
617
881
 
618
- #: ../lib/pdk/cli/util.rb:98
882
+ #: ../lib/pdk/cli/util.rb:99
619
883
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
620
884
  msgstr ""
621
885
 
622
- #: ../lib/pdk/cli/util.rb:104
886
+ #: ../lib/pdk/cli/util.rb:105
623
887
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
624
888
  msgstr ""
625
889
 
626
- #: ../lib/pdk/cli/util.rb:109
890
+ #: ../lib/pdk/cli/util.rb:110
627
891
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
628
892
  msgstr ""
629
893
 
630
- #: ../lib/pdk/cli/util.rb:113
894
+ #: ../lib/pdk/cli/util.rb:114
631
895
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
632
896
  msgstr ""
633
897
 
634
- #: ../lib/pdk/cli/util.rb:124
898
+ #: ../lib/pdk/cli/util.rb:125
635
899
  msgid "Support for Puppet versions older than %{version} is deprecated and will be removed in a future version of PDK."
636
900
  msgstr ""
637
901
 
638
- #: ../lib/pdk/cli/util.rb:162
902
+ #: ../lib/pdk/cli/util.rb:166
639
903
  msgid "Using Ruby %{version}"
640
904
  msgstr ""
641
905
 
642
- #: ../lib/pdk/cli/util.rb:176
906
+ #: ../lib/pdk/cli/util.rb:180
643
907
  msgid "Using %{gem} %{version}"
644
908
  msgstr ""
645
909
 
646
- #: ../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
647
911
  msgid "You cannot specify a %{first} and %{second} at the same time."
648
912
  msgstr ""
649
913
 
650
- #: ../lib/pdk/cli/util.rb:255
914
+ #: ../lib/pdk/cli/util.rb:259
651
915
  msgid "--template-ref requires --template-url to also be specified."
652
916
  msgstr ""
653
917
 
654
- #: ../lib/pdk/cli/util.rb:259
918
+ #: ../lib/pdk/cli/util.rb:263
655
919
  msgid "--template-url may not be used to specify paths containing #'s."
656
920
  msgstr ""
657
921
 
@@ -708,47 +972,83 @@ msgstr ""
708
972
  msgid "Run validations in parallel."
709
973
  msgstr ""
710
974
 
711
- #: ../lib/pdk/cli/validate.rb:35
975
+ #: ../lib/pdk/cli/validate.rb:34
712
976
  msgid "Available validators: %{validator_names}"
713
977
  msgstr ""
714
978
 
715
- #: ../lib/pdk/cli/validate.rb:42
979
+ #: ../lib/pdk/cli/validate.rb:40
716
980
  msgid "Code validation can only be run from inside a valid module directory"
717
981
  msgstr ""
718
982
 
719
- #: ../lib/pdk/cli/validate.rb:58
983
+ #: ../lib/pdk/cli/validate.rb:61
720
984
  msgid "Unknown validator '%{v}'. Available validators: %{validators}."
721
985
  msgstr ""
722
986
 
723
- #: ../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
724
988
  msgid "Running all available validators..."
725
989
  msgstr ""
726
990
 
727
- #: ../lib/pdk/cli/validate.rb:111
728
- msgid "Validating module using %{num_of_threads} threads"
991
+ #: ../lib/pdk/config.rb:140
992
+ msgid "Expected an Array but got '%{klass}' for scopes"
993
+ msgstr ""
994
+
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"
729
1001
  msgstr ""
730
1002
 
731
- #: ../lib/pdk/config.rb:46
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
732
1012
  msgid "Unable to load %{file}: %{message}"
733
1013
  msgstr ""
734
1014
 
735
- #: ../lib/pdk/config.rb:79
1015
+ #: ../lib/pdk/config.rb:231
736
1016
  msgid ""
737
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"
738
1018
  msgstr ""
739
1019
 
740
- #: ../lib/pdk/config.rb:85
1020
+ #: ../lib/pdk/config.rb:237
741
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."
742
1022
  msgstr ""
743
1023
 
744
- #: ../lib/pdk/config.rb:97
1024
+ #: ../lib/pdk/config.rb:249
745
1025
  msgid "Do you consent to the collection of anonymous PDK usage information?"
746
1026
  msgstr ""
747
1027
 
748
- #: ../lib/pdk/config.rb:111
1028
+ #: ../lib/pdk/config.rb:263
749
1029
  msgid "No answer given, opting out of analytics collection."
750
1030
  msgstr ""
751
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
+
752
1052
  #: ../lib/pdk/config/json_schema_namespace.rb:102
753
1053
  msgid "Setting '#{key}' does not exist'"
754
1054
  msgstr ""
@@ -761,7 +1061,7 @@ msgstr ""
761
1061
  msgid "Unable to open %{file} for reading. JSON Error: %{msg}"
762
1062
  msgstr ""
763
1063
 
764
- #: ../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
765
1065
  msgid "%{key} %{message}"
766
1066
  msgstr ""
767
1067
 
@@ -769,36 +1069,40 @@ msgstr ""
769
1069
  msgid "The configuration file %{filename} is not valid: %{message}"
770
1070
  msgstr ""
771
1071
 
772
- #: ../lib/pdk/config/namespace.rb:67
1072
+ #: ../lib/pdk/config/namespace.rb:68
773
1073
  msgid "Only PDK::Config::Namespace objects can be mounted into a namespace"
774
1074
  msgstr ""
775
1075
 
776
- #: ../lib/pdk/config/namespace.rb:139
1076
+ #: ../lib/pdk/config/namespace.rb:141
777
1077
  msgid "Namespace mounts can not be set a value"
778
1078
  msgstr ""
779
1079
 
780
- #: ../lib/pdk/config/namespace.rb:288
1080
+ #: ../lib/pdk/config/namespace.rb:308
781
1081
  msgid "Unable to open %{file} for reading"
782
1082
  msgstr ""
783
1083
 
784
- #: ../lib/pdk/config/namespace.rb:311
1084
+ #: ../lib/pdk/config/namespace.rb:331
785
1085
  msgid "Unable to open %{file} for writing"
786
1086
  msgstr ""
787
1087
 
788
- #: ../lib/pdk/config/setting.rb:79
1088
+ #: ../lib/pdk/config/setting.rb:80
789
1089
  msgid "`validator` must be a Hash"
790
1090
  msgstr ""
791
1091
 
792
- #: ../lib/pdk/config/setting.rb:80
1092
+ #: ../lib/pdk/config/setting.rb:81
793
1093
  msgid "the :proc key must contain a Proc"
794
1094
  msgstr ""
795
1095
 
796
- #: ../lib/pdk/config/setting.rb:81
1096
+ #: ../lib/pdk/config/setting.rb:82
797
1097
  msgid "the :message key must contain a String"
798
1098
  msgstr ""
799
1099
 
800
- #: ../lib/pdk/config/setting.rb:112
801
- msgid "must be passed a block"
1100
+ #: ../lib/pdk/config/validator.rb:16
1101
+ msgid "must be a boolean: true or false"
1102
+ msgstr ""
1103
+
1104
+ #: ../lib/pdk/config/validator.rb:26
1105
+ msgid "must be a version 4 UUID"
802
1106
  msgstr ""
803
1107
 
804
1108
  #: ../lib/pdk/config/yaml.rb:21 ../lib/pdk/config/yaml_with_schema.rb:39
@@ -809,441 +1113,483 @@ msgstr ""
809
1113
  msgid "Unsupported class in %{file}: %{error}"
810
1114
  msgstr ""
811
1115
 
812
- #: ../lib/pdk/generate/module.rb:12
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
+
1128
+ #: ../lib/pdk/generate/module.rb:10
813
1129
  msgid ""
814
1130
  "'%{module_name}' is not a valid module name.\n"
815
1131
  "Module names must begin with a lowercase letter and can only include lowercase letters, digits, and underscores."
816
1132
  msgstr ""
817
1133
 
818
- #: ../lib/pdk/generate/module.rb:20
1134
+ #: ../lib/pdk/generate/module.rb:18
819
1135
  msgid "The destination directory '%{dir}' already exists"
820
1136
  msgstr ""
821
1137
 
822
- #: ../lib/pdk/generate/module.rb:42
1138
+ #: ../lib/pdk/generate/module.rb:38
823
1139
  msgid "You do not have permission to write to '%{parent_dir}'"
824
1140
  msgstr ""
825
1141
 
826
- #: ../lib/pdk/generate/module.rb:94
827
- 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."
828
1144
  msgstr ""
829
1145
 
830
- #: ../lib/pdk/generate/module.rb:95
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"
1152
+ msgstr ""
1153
+
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
831
1163
  msgid "In your module directory, add classes with the 'pdk new class' command."
832
1164
  msgstr ""
833
1165
 
834
- #: ../lib/pdk/generate/module.rb:98
1166
+ #: ../lib/pdk/generate/module.rb:111
835
1167
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
836
1168
  msgstr ""
837
1169
 
838
- #: ../lib/pdk/generate/module.rb:114
1170
+ #: ../lib/pdk/generate/module.rb:127
839
1171
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
840
1172
  msgstr ""
841
1173
 
842
- #: ../lib/pdk/generate/module.rb:154
1174
+ #: ../lib/pdk/generate/module.rb:165
843
1175
  msgid "Unable to create directory '%{dir}': %{message}"
844
1176
  msgstr ""
845
1177
 
846
- #: ../lib/pdk/generate/module.rb:169
1178
+ #: ../lib/pdk/generate/module.rb:180
847
1179
  msgid "If you have a name for your module, add it here."
848
1180
  msgstr ""
849
1181
 
850
- #: ../lib/pdk/generate/module.rb:170
1182
+ #: ../lib/pdk/generate/module.rb:181
851
1183
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
852
1184
  msgstr ""
853
1185
 
854
- #: ../lib/pdk/generate/module.rb:173
1186
+ #: ../lib/pdk/generate/module.rb:184
855
1187
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
856
1188
  msgstr ""
857
1189
 
858
- #: ../lib/pdk/generate/module.rb:177
1190
+ #: ../lib/pdk/generate/module.rb:188
859
1191
  msgid "If you have a Puppet Forge username, add it here."
860
1192
  msgstr ""
861
1193
 
862
- #: ../lib/pdk/generate/module.rb:178
1194
+ #: ../lib/pdk/generate/module.rb:189
863
1195
  msgid "We can use this to upload your module to the Forge when it's complete."
864
1196
  msgstr ""
865
1197
 
866
- #: ../lib/pdk/generate/module.rb:181
1198
+ #: ../lib/pdk/generate/module.rb:192
867
1199
  msgid "Forge usernames can only contain lowercase letters and numbers"
868
1200
  msgstr ""
869
1201
 
870
- #: ../lib/pdk/generate/module.rb:186
1202
+ #: ../lib/pdk/generate/module.rb:197
871
1203
  msgid "What version is this module?"
872
1204
  msgstr ""
873
1205
 
874
- #: ../lib/pdk/generate/module.rb:187
1206
+ #: ../lib/pdk/generate/module.rb:198
875
1207
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
876
1208
  msgstr ""
877
1209
 
878
- #: ../lib/pdk/generate/module.rb:190
1210
+ #: ../lib/pdk/generate/module.rb:201
879
1211
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
880
1212
  msgstr ""
881
1213
 
882
- #: ../lib/pdk/generate/module.rb:196
1214
+ #: ../lib/pdk/generate/module.rb:207
883
1215
  msgid "Who wrote this module?"
884
1216
  msgstr ""
885
1217
 
886
- #: ../lib/pdk/generate/module.rb:197
1218
+ #: ../lib/pdk/generate/module.rb:208
887
1219
  msgid "This is used to credit the module's author."
888
1220
  msgstr ""
889
1221
 
890
- #: ../lib/pdk/generate/module.rb:203
1222
+ #: ../lib/pdk/generate/module.rb:214
891
1223
  msgid "What license does this module code fall under?"
892
1224
  msgstr ""
893
1225
 
894
- #: ../lib/pdk/generate/module.rb:204
1226
+ #: ../lib/pdk/generate/module.rb:215
895
1227
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
896
1228
  msgstr ""
897
1229
 
898
- #: ../lib/pdk/generate/module.rb:210
1230
+ #: ../lib/pdk/generate/module.rb:221
899
1231
  msgid "What operating systems does this module support?"
900
1232
  msgstr ""
901
1233
 
902
- #: ../lib/pdk/generate/module.rb:211
1234
+ #: ../lib/pdk/generate/module.rb:222
903
1235
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
904
1236
  msgstr ""
905
1237
 
906
- #: ../lib/pdk/generate/module.rb:222
1238
+ #: ../lib/pdk/generate/module.rb:233
907
1239
  msgid "Summarize the purpose of this module in a single sentence."
908
1240
  msgstr ""
909
1241
 
910
- #: ../lib/pdk/generate/module.rb:223
1242
+ #: ../lib/pdk/generate/module.rb:234
911
1243
  msgid "This helps other Puppet users understand what the module does."
912
1244
  msgstr ""
913
1245
 
914
- #: ../lib/pdk/generate/module.rb:230
1246
+ #: ../lib/pdk/generate/module.rb:241
915
1247
  msgid "If there is a source code repository for this module, enter the URL here."
916
1248
  msgstr ""
917
1249
 
918
- #: ../lib/pdk/generate/module.rb:231
1250
+ #: ../lib/pdk/generate/module.rb:242
919
1251
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
920
1252
  msgstr ""
921
1253
 
922
- #: ../lib/pdk/generate/module.rb:238
1254
+ #: ../lib/pdk/generate/module.rb:249
923
1255
  msgid "If there is a URL where others can learn more about this module, enter it here."
924
1256
  msgstr ""
925
1257
 
926
- #: ../lib/pdk/generate/module.rb:239 ../lib/pdk/generate/module.rb:246
1258
+ #: ../lib/pdk/generate/module.rb:250 ../lib/pdk/generate/module.rb:257
927
1259
  msgid "Optional. You can update this later in the metadata.json."
928
1260
  msgstr ""
929
1261
 
930
- #: ../lib/pdk/generate/module.rb:245
1262
+ #: ../lib/pdk/generate/module.rb:256
931
1263
  msgid "If there is a public issue tracker for this module, enter its URL here."
932
1264
  msgstr ""
933
1265
 
934
- #: ../lib/pdk/generate/module.rb:273
1266
+ #: ../lib/pdk/generate/module.rb:284
935
1267
  msgid ""
936
1268
  "\n"
937
1269
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
938
1270
  msgstr ""
939
1271
 
940
- #: ../lib/pdk/generate/module.rb:280
1272
+ #: ../lib/pdk/generate/module.rb:291
941
1273
  msgid ""
942
1274
  "\n"
943
1275
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
944
1276
  msgstr ""
945
1277
 
946
- #: ../lib/pdk/generate/module.rb:288
1278
+ #: ../lib/pdk/generate/module.rb:299
947
1279
  msgid ""
948
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"
949
1281
  "\n"
950
1282
  msgstr ""
951
1283
 
952
- #: ../lib/pdk/generate/module.rb:297
1284
+ #: ../lib/pdk/generate/module.rb:308
953
1285
  msgid "No answers given, interview cancelled."
954
1286
  msgstr ""
955
1287
 
956
- #: ../lib/pdk/generate/module.rb:323
1288
+ #: ../lib/pdk/generate/module.rb:334
957
1289
  msgid "Metadata will be generated based on this information, continue?"
958
1290
  msgstr ""
959
1291
 
960
- #: ../lib/pdk/generate/module.rb:325
1292
+ #: ../lib/pdk/generate/module.rb:336
961
1293
  msgid "Interview cancelled; exiting."
962
1294
  msgstr ""
963
1295
 
964
- #: ../lib/pdk/generate/module.rb:329
1296
+ #: ../lib/pdk/generate/module.rb:340
965
1297
  msgid "Process cancelled; exiting."
966
1298
  msgstr ""
967
1299
 
968
- #: ../lib/pdk/generate/provider.rb:23
969
- 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"
970
1302
  msgstr ""
971
1303
 
972
- #: ../lib/pdk/generate/provider.rb:33 ../lib/pdk/generate/transport.rb:33
973
- msgid ".sync.yml not found"
1304
+ #: ../lib/pdk/generate/puppet_object.rb:64
1305
+ msgid "Expected a module context but got %{context_name}"
974
1306
  msgstr ""
975
1307
 
976
- #: ../lib/pdk/generate/provider.rb:37 ../lib/pdk/generate/transport.rb:37
977
- msgid ".sync.yml contents is not a Hash"
978
- msgstr ""
979
-
980
- #: ../lib/pdk/generate/provider.rb:39 ../lib/pdk/generate/transport.rb:39
981
- msgid "Gemfile configuration not found"
1308
+ #: ../lib/pdk/generate/puppet_object.rb:125
1309
+ msgid "Unable to generate %{object_type}; '%{file}' already exists."
982
1310
  msgstr ""
983
1311
 
984
- #: ../lib/pdk/generate/provider.rb:41 ../lib/pdk/generate/transport.rb:41
985
- 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."
986
1314
  msgstr ""
987
1315
 
988
- #: ../lib/pdk/generate/provider.rb:43 ../lib/pdk/generate/transport.rb:43
989
- 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."
990
1318
  msgstr ""
991
1319
 
992
- #: ../lib/pdk/generate/provider.rb:45 ../lib/pdk/generate/transport.rb:45
993
- 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}."
994
1322
  msgstr ""
995
1323
 
996
- #: ../lib/pdk/generate/provider.rb:47 ../lib/pdk/generate/transport.rb:47
997
- msgid "spec/spec_helper.rb configuration not found"
1324
+ #: ../lib/pdk/generate/resource_api_object.rb:20
1325
+ msgid ".sync.yml not found"
998
1326
  msgstr ""
999
1327
 
1000
- #: ../lib/pdk/generate/provider.rb:49 ../lib/pdk/generate/transport.rb:49
1001
- 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"
1002
1330
  msgstr ""
1003
1331
 
1004
- #: ../lib/pdk/generate/provider.rb:51 ../lib/pdk/generate/transport.rb:51
1005
- 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"
1006
1334
  msgstr ""
1007
1335
 
1008
- #: ../lib/pdk/generate/puppet_object.rb:142
1009
- 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"
1010
1338
  msgstr ""
1011
1339
 
1012
- #: ../lib/pdk/generate/puppet_object.rb:226
1013
- msgid "Creating '%{file}' from template."
1340
+ #: ../lib/pdk/generate/resource_api_object.rb:30
1341
+ msgid "Gemfile.optional.:development configuration not found"
1014
1342
  msgstr ""
1015
1343
 
1016
- #: ../lib/pdk/generate/puppet_object.rb:233
1017
- 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"
1018
1346
  msgstr ""
1019
1347
 
1020
- #: ../lib/pdk/generate/puppet_object.rb:241
1021
- 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"
1022
1350
  msgstr ""
1023
1351
 
1024
- #: ../lib/pdk/generate/puppet_object.rb:268
1025
- 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"
1026
1354
  msgstr ""
1027
1355
 
1028
- #: ../lib/pdk/generate/puppet_object.rb:281
1029
- 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'"
1030
1358
  msgstr ""
1031
1359
 
1032
- #: ../lib/pdk/generate/puppet_object.rb:283
1033
- 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"
1034
1362
  msgstr ""
1035
1363
 
1036
- #: ../lib/pdk/generate/task.rb:54
1364
+ #: ../lib/pdk/generate/task.rb:31
1037
1365
  msgid "A task named '%{name}' already exists in this module; defined in %{file}"
1038
1366
  msgstr ""
1039
1367
 
1040
- #: ../lib/pdk/generate/transport.rb:23
1041
- 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."
1042
- msgstr ""
1043
-
1044
- #: ../lib/pdk/module/build.rb:132
1368
+ #: ../lib/pdk/module/build.rb:129
1045
1369
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1046
1370
  msgstr ""
1047
1371
 
1048
- #: ../lib/pdk/module/build.rb:162
1372
+ #: ../lib/pdk/module/build.rb:159
1049
1373
  msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
1050
1374
  msgstr ""
1051
1375
 
1052
- #: ../lib/pdk/module/build.rb:189
1376
+ #: ../lib/pdk/module/build.rb:186
1053
1377
  msgid "The path '%{path}' is longer than 256 bytes."
1054
1378
  msgstr ""
1055
1379
 
1056
- #: ../lib/pdk/module/build.rb:213
1380
+ #: ../lib/pdk/module/build.rb:210
1057
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."
1058
1382
  msgstr ""
1059
1383
 
1060
- #: ../lib/pdk/module/build.rb:249
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
1061
1389
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1062
1390
  msgstr ""
1063
1391
 
1064
- #: ../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
1065
1393
  msgid "No changes required."
1066
1394
  msgstr ""
1067
1395
 
1068
- #: ../lib/pdk/module/convert.rb:44
1396
+ #: ../lib/pdk/module/convert.rb:48
1069
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."
1070
1398
  msgstr ""
1071
1399
 
1072
- #: ../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
1073
1401
  msgid "Do you want to continue and make these changes to your module?"
1074
1402
  msgstr ""
1075
1403
 
1076
- #: ../lib/pdk/module/convert.rb:135
1404
+ #: ../lib/pdk/module/convert.rb:131
1405
+ msgid "No test changes required."
1406
+ msgstr ""
1407
+
1408
+ #: ../lib/pdk/module/convert.rb:156
1077
1409
  msgid "skipping '%{path}'"
1078
1410
  msgstr ""
1079
1411
 
1080
- #: ../lib/pdk/module/convert.rb:174
1412
+ #: ../lib/pdk/module/convert.rb:195
1081
1413
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1082
1414
  msgstr ""
1083
1415
 
1084
- #: ../lib/pdk/module/convert.rb:190
1416
+ #: ../lib/pdk/module/convert.rb:211
1085
1417
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1086
1418
  msgstr ""
1087
1419
 
1088
- #: ../lib/pdk/module/convert.rb:235 ../lib/pdk/module/convert.rb:240 ../lib/pdk/module/convert.rb:246
1420
+ #: ../lib/pdk/module/convert.rb:256 ../lib/pdk/module/convert.rb:261 ../lib/pdk/module/convert.rb:267
1089
1421
  msgid ""
1090
1422
  "\n"
1091
1423
  "%{banner}"
1092
1424
  msgstr ""
1093
1425
 
1094
- #: ../lib/pdk/module/convert.rb:248
1426
+ #: ../lib/pdk/module/convert.rb:269
1095
1427
  msgid ""
1096
1428
  "\n"
1097
1429
  "%{summary}\n"
1098
1430
  "\n"
1099
1431
  msgstr ""
1100
1432
 
1101
- #: ../lib/pdk/module/convert.rb:261
1433
+ #: ../lib/pdk/module/convert.rb:278
1102
1434
  msgid ""
1103
1435
  "\n"
1104
1436
  "You can find a report of differences in %{path}.\n"
1105
1437
  "\n"
1106
1438
  msgstr ""
1107
1439
 
1108
- #: ../lib/pdk/module/metadata.rb:93
1440
+ #: ../lib/pdk/module/metadata.rb:91
1109
1441
  msgid "Cannot read metadata from file: no path to file was given."
1110
1442
  msgstr ""
1111
1443
 
1112
- #: ../lib/pdk/module/metadata.rb:97
1444
+ #: ../lib/pdk/module/metadata.rb:95
1113
1445
  msgid "'%{file}' does not exist or is not a file."
1114
1446
  msgstr ""
1115
1447
 
1116
- #: ../lib/pdk/module/metadata.rb:101
1448
+ #: ../lib/pdk/module/metadata.rb:99
1117
1449
  msgid "Unable to open '%{file}' for reading."
1118
1450
  msgstr ""
1119
1451
 
1120
- #: ../lib/pdk/module/metadata.rb:108
1452
+ #: ../lib/pdk/module/metadata.rb:106
1121
1453
  msgid "Invalid JSON in metadata.json: %{msg}"
1122
1454
  msgstr ""
1123
1455
 
1124
- #: ../lib/pdk/module/metadata.rb:145
1456
+ #: ../lib/pdk/module/metadata.rb:143
1125
1457
  msgid "Module metadata does not contain any requirements."
1126
1458
  msgstr ""
1127
1459
 
1128
- #: ../lib/pdk/module/metadata.rb:146
1460
+ #: ../lib/pdk/module/metadata.rb:144
1129
1461
  msgid "Module metadata does not contain a \"puppet\" requirement."
1130
1462
  msgstr ""
1131
1463
 
1132
- #: ../lib/pdk/module/metadata.rb:147
1464
+ #: ../lib/pdk/module/metadata.rb:145
1133
1465
  msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
1134
1466
  msgstr ""
1135
1467
 
1136
- #: ../lib/pdk/module/metadata.rb:187
1468
+ #: ../lib/pdk/module/metadata.rb:185
1137
1469
  msgid "Field must be a dash-separated user name and module name."
1138
1470
  msgstr ""
1139
1471
 
1140
- #: ../lib/pdk/module/metadata.rb:189
1472
+ #: ../lib/pdk/module/metadata.rb:187
1141
1473
  msgid "Module name must contain only alphanumeric or underscore characters."
1142
1474
  msgstr ""
1143
1475
 
1144
- #: ../lib/pdk/module/metadata.rb:191
1476
+ #: ../lib/pdk/module/metadata.rb:189
1145
1477
  msgid "Module name must begin with a letter."
1146
1478
  msgstr ""
1147
1479
 
1148
- #: ../lib/pdk/module/metadata.rb:193
1480
+ #: ../lib/pdk/module/metadata.rb:191
1149
1481
  msgid "Namespace must contain only alphanumeric characters."
1150
1482
  msgstr ""
1151
1483
 
1152
- #: ../lib/pdk/module/metadata.rb:196
1484
+ #: ../lib/pdk/module/metadata.rb:194
1153
1485
  msgid "Invalid 'name' field in metadata.json: %{err}"
1154
1486
  msgstr ""
1155
1487
 
1156
- #: ../lib/pdk/module/templatedir.rb:42
1157
- msgid "%{class_name} must be initialized with a block."
1488
+ #: ../lib/pdk/module/release.rb:19
1489
+ msgid "Running the release process outside of the working directory is not supported"
1158
1490
  msgstr ""
1159
1491
 
1160
- #: ../lib/pdk/module/templatedir.rb:45
1161
- msgid "PDK::Module::TemplateDir.new must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1492
+ #: ../lib/pdk/module/release.rb:23
1493
+ msgid "The module release process requires a valid module path"
1162
1494
  msgstr ""
1163
1495
 
1164
- #: ../lib/pdk/module/templatedir.rb:59
1165
- msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1496
+ #: ../lib/pdk/module/release.rb:25
1497
+ msgid "%{module_path} is not a valid module"
1166
1498
  msgstr ""
1167
1499
 
1168
- #: ../lib/pdk/module/templatedir.rb:126
1169
- msgid "Rendering '%{template}'..."
1500
+ #: ../lib/pdk/module/release.rb:32
1501
+ msgid "The module is not PDK compatible"
1170
1502
  msgstr ""
1171
1503
 
1172
- #: ../lib/pdk/module/templatedir.rb:144
1173
- msgid ""
1174
- "Failed to render template '%{template}'\n"
1175
- "%{exception}: %{message}"
1504
+ #: ../lib/pdk/module/release.rb:33
1505
+ msgid "The module is not Forge compatible"
1176
1506
  msgstr ""
1177
1507
 
1178
- #: ../lib/pdk/module/templatedir.rb:217
1179
- msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1508
+ #: ../lib/pdk/module/release.rb:43
1509
+ msgid "Releasing %{module_name} - from version %{module_version}"
1180
1510
  msgstr ""
1181
1511
 
1182
- #: ../lib/pdk/module/templatedir.rb:219
1183
- msgid "The specified template '%{path}' is not a directory."
1512
+ #: ../lib/pdk/module/release.rb:58
1513
+ msgid "Updating version to %{module_version}"
1184
1514
  msgstr ""
1185
1515
 
1186
- #: ../lib/pdk/module/templatedir.rb:224
1187
- msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1516
+ #: ../lib/pdk/module/release.rb:115
1517
+ msgid "An error occured during validation"
1188
1518
  msgstr ""
1189
1519
 
1190
- #: ../lib/pdk/module/templatedir.rb:229
1191
- 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."
1520
+ #: ../lib/pdk/module/release.rb:119
1521
+ msgid "Updating documentation using puppet strings"
1192
1522
  msgstr ""
1193
1523
 
1194
- #: ../lib/pdk/module/templatedir.rb:245
1195
- msgid "The directory '%{dir}' doesn't exist"
1524
+ #: ../lib/pdk/module/release.rb:123
1525
+ msgid "An error occured generating the module documentation: %{stdout}"
1196
1526
  msgstr ""
1197
1527
 
1198
- #: ../lib/pdk/module/templatedir.rb:320
1199
- msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1528
+ #: ../lib/pdk/module/release.rb:128
1529
+ msgid "Running dependency checks"
1200
1530
  msgstr ""
1201
1531
 
1202
- #: ../lib/pdk/module/templatedir.rb:358
1203
- msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1532
+ #: ../lib/pdk/module/release.rb:134
1533
+ msgid "An error occured checking the module dependencies: %{stdout}"
1204
1534
  msgstr ""
1205
1535
 
1206
- #: ../lib/pdk/module/templatedir.rb:377
1207
- msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1536
+ #: ../lib/pdk/module/release.rb:144
1537
+ msgid "Module tarball %{tarball_path} does not exist"
1208
1538
  msgstr ""
1209
1539
 
1210
- #: ../lib/pdk/module/templatedir.rb:380
1211
- msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1540
+ #: ../lib/pdk/module/release.rb:150
1541
+ msgid "Uploading tarball to puppet forge..."
1542
+ msgstr ""
1543
+
1544
+ #: ../lib/pdk/module/release.rb:166
1545
+ msgid "Error uploading to Puppet Forge: %{result}"
1546
+ msgstr ""
1547
+
1548
+ #: ../lib/pdk/module/release.rb:167
1549
+ msgid "Publish to Forge was successful"
1550
+ msgstr ""
1551
+
1552
+ #: ../lib/pdk/module/release.rb:172
1553
+ msgid "Missing forge-upload-url option"
1554
+ msgstr ""
1555
+
1556
+ #: ../lib/pdk/module/release.rb:173
1557
+ msgid "Missing forge-token option"
1212
1558
  msgstr ""
1213
1559
 
1214
1560
  #: ../lib/pdk/module/update.rb:14
1215
1561
  msgid "This module is already up to date with version %{version} of the template."
1216
1562
  msgstr ""
1217
1563
 
1218
- #: ../lib/pdk/module/update.rb:109
1564
+ #: ../lib/pdk/module/update.rb:117
1219
1565
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1220
1566
  msgstr ""
1221
1567
 
1222
- #: ../lib/pdk/module/update.rb:111
1568
+ #: ../lib/pdk/module/update.rb:119
1223
1569
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1224
1570
  msgstr ""
1225
1571
 
1226
- #: ../lib/pdk/module/update_manager.rb:111
1572
+ #: ../lib/pdk/module/update_manager.rb:118
1227
1573
  msgid "unlinking '%{path}'"
1228
1574
  msgstr ""
1229
1575
 
1230
- #: ../lib/pdk/module/update_manager.rb:114
1576
+ #: ../lib/pdk/module/update_manager.rb:121
1231
1577
  msgid "'%{path}': already gone"
1232
1578
  msgstr ""
1233
1579
 
1234
- #: ../lib/pdk/module/update_manager.rb:117
1580
+ #: ../lib/pdk/module/update_manager.rb:124
1235
1581
  msgid "Unable to remove '%{path}': %{message}"
1236
1582
  msgstr ""
1237
1583
 
1238
- #: ../lib/pdk/module/update_manager.rb:137
1584
+ #: ../lib/pdk/module/update_manager.rb:144
1239
1585
  msgid "Unable to open '%{path}' for reading"
1240
1586
  msgstr ""
1241
1587
 
1242
- #: ../lib/pdk/module/update_manager.rb:156
1588
+ #: ../lib/pdk/module/update_manager.rb:163
1243
1589
  msgid "writing '%{path}'"
1244
1590
  msgstr ""
1245
1591
 
1246
- #: ../lib/pdk/module/update_manager.rb:159
1592
+ #: ../lib/pdk/module/update_manager.rb:166
1247
1593
  msgid "You do not have permission to write to '%{path}'"
1248
1594
  msgstr ""
1249
1595
 
@@ -1291,10 +1637,56 @@ msgstr ""
1291
1637
  msgid "Trace must be an Array of stack trace lines."
1292
1638
  msgstr ""
1293
1639
 
1294
- #: ../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
1295
1683
  msgid "'%{template}' is not a readable file"
1296
1684
  msgstr ""
1297
1685
 
1686
+ #: ../lib/pdk/template/template_dir.rb:39
1687
+ msgid "Could not find a compatible template renderer for %{path}"
1688
+ msgstr ""
1689
+
1298
1690
  #: ../lib/pdk/tests/unit.rb:64
1299
1691
  msgid "Cleaning up after running unit tests."
1300
1692
  msgstr ""
@@ -1319,86 +1711,90 @@ msgstr ""
1319
1711
  msgid "Failed to prepare to run the unit tests."
1320
1712
  msgstr ""
1321
1713
 
1322
- #: ../lib/pdk/tests/unit.rb:95
1714
+ #: ../lib/pdk/tests/unit.rb:100
1323
1715
  msgid "Running unit tests in parallel."
1324
1716
  msgstr ""
1325
1717
 
1326
- #: ../lib/pdk/tests/unit.rb:95
1718
+ #: ../lib/pdk/tests/unit.rb:100
1327
1719
  msgid "Running unit tests."
1328
1720
  msgstr ""
1329
1721
 
1330
- #: ../lib/pdk/tests/unit.rb:120
1722
+ #: ../lib/pdk/tests/unit.rb:125
1331
1723
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1332
1724
  msgstr ""
1333
1725
 
1334
- #: ../lib/pdk/tests/unit.rb:172
1726
+ #: ../lib/pdk/tests/unit.rb:177
1335
1727
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1336
1728
  msgstr ""
1337
1729
 
1338
- #: ../lib/pdk/tests/unit.rb:226
1730
+ #: ../lib/pdk/tests/unit.rb:231
1339
1731
  msgid "Finding unit tests."
1340
1732
  msgstr ""
1341
1733
 
1342
- #: ../lib/pdk/tests/unit.rb:229
1734
+ #: ../lib/pdk/tests/unit.rb:234
1343
1735
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1344
1736
  msgstr ""
1345
1737
 
1346
- #: ../lib/pdk/tests/unit.rb:234
1738
+ #: ../lib/pdk/tests/unit.rb:239
1347
1739
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1348
1740
  msgstr ""
1349
1741
 
1350
- #: ../lib/pdk/util.rb:76
1742
+ #: ../lib/pdk/util.rb:88
1351
1743
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1352
1744
  msgstr ""
1353
1745
 
1354
- #: ../lib/pdk/util.rb:105
1746
+ #: ../lib/pdk/util.rb:117
1355
1747
  msgid "Package basedir requested for non-package install."
1356
1748
  msgstr ""
1357
1749
 
1358
- #: ../lib/pdk/util/bundler.rb:17
1750
+ #: ../lib/pdk/util/bundler.rb:15
1359
1751
  msgid "Bundler managed gems already up to date."
1360
1752
  msgstr ""
1361
1753
 
1362
- #: ../lib/pdk/util/bundler.rb:22
1754
+ #: ../lib/pdk/util/bundler.rb:20
1363
1755
  msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
1364
1756
  msgstr ""
1365
1757
 
1366
- #: ../lib/pdk/util/bundler.rb:98
1758
+ #: ../lib/pdk/util/bundler.rb:96
1367
1759
  msgid "Checking for missing Gemfile dependencies."
1368
1760
  msgstr ""
1369
1761
 
1370
- #: ../lib/pdk/util/bundler.rb:127
1762
+ #: ../lib/pdk/util/bundler.rb:126
1371
1763
  msgid "Vendored Gemfile.lock (%{source}) not found."
1372
1764
  msgstr ""
1373
1765
 
1374
- #: ../lib/pdk/util/bundler.rb:132
1766
+ #: ../lib/pdk/util/bundler.rb:131
1375
1767
  msgid "Using vendored Gemfile.lock from %{source}."
1376
1768
  msgstr ""
1377
1769
 
1378
- #: ../lib/pdk/util/bundler.rb:138
1770
+ #: ../lib/pdk/util/bundler.rb:137
1379
1771
  msgid "Resolving default Gemfile dependencies."
1380
1772
  msgstr ""
1381
1773
 
1382
- #: ../lib/pdk/util/bundler.rb:145
1774
+ #: ../lib/pdk/util/bundler.rb:144
1383
1775
  msgid "Unable to resolve default Gemfile dependencies."
1384
1776
  msgstr ""
1385
1777
 
1386
- #: ../lib/pdk/util/bundler.rb:158
1778
+ #: ../lib/pdk/util/bundler.rb:157
1387
1779
  msgid "Updating Gemfile dependencies."
1388
1780
  msgstr ""
1389
1781
 
1390
- #: ../lib/pdk/util/bundler.rb:186
1782
+ #: ../lib/pdk/util/bundler.rb:185
1391
1783
  msgid "Unable to resolve Gemfile dependencies."
1392
1784
  msgstr ""
1393
1785
 
1394
- #: ../lib/pdk/util/bundler.rb:199
1786
+ #: ../lib/pdk/util/bundler.rb:198
1395
1787
  msgid "Installing missing Gemfile dependencies."
1396
1788
  msgstr ""
1397
1789
 
1398
- #: ../lib/pdk/util/bundler.rb:207
1790
+ #: ../lib/pdk/util/bundler.rb:206
1399
1791
  msgid "Unable to install missing Gemfile dependencies."
1400
1792
  msgstr ""
1401
1793
 
1794
+ #: ../lib/pdk/util/bundler.rb:213
1795
+ msgid "Unable to install requested binstubs as the Gemfile is missing"
1796
+ msgstr ""
1797
+
1402
1798
  #: ../lib/pdk/util/bundler.rb:221
1403
1799
  msgid ""
1404
1800
  "Failed to generate binstubs for '%{gems}':\n"
@@ -1409,11 +1805,31 @@ msgstr ""
1409
1805
  msgid "Unable to install requested binstubs."
1410
1806
  msgstr ""
1411
1807
 
1412
- #: ../lib/pdk/util/filesystem.rb:7
1413
- msgid "content must be a String"
1808
+ #: ../lib/pdk/util/changelog_generator.rb:15
1809
+ msgid "Unable to generate the changelog as the %{gem} gem is not installed"
1810
+ msgstr ""
1811
+
1812
+ #: ../lib/pdk/util/changelog_generator.rb:30
1813
+ msgid "Error generating changelog: %{stdout}"
1814
+ msgstr ""
1815
+
1816
+ #: ../lib/pdk/util/changelog_generator.rb:34
1817
+ msgid "The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details"
1818
+ msgstr ""
1819
+
1820
+ #: ../lib/pdk/util/changelog_generator.rb:43
1821
+ msgid "Invalid version string %{version}"
1822
+ msgstr ""
1823
+
1824
+ #: ../lib/pdk/util/changelog_generator.rb:45
1825
+ msgid "Determing the target version from '%{file}'"
1414
1826
  msgstr ""
1415
1827
 
1416
1828
  #: ../lib/pdk/util/filesystem.rb:8
1829
+ msgid "content must be a String"
1830
+ msgstr ""
1831
+
1832
+ #: ../lib/pdk/util/filesystem.rb:9
1417
1833
  msgid "path must be a String or Pathname"
1418
1834
  msgstr ""
1419
1835
 
@@ -1421,19 +1837,19 @@ msgstr ""
1421
1837
  msgid "Git command failed: git %{args}"
1422
1838
  msgstr ""
1423
1839
 
1424
- #: ../lib/pdk/util/git.rb:92
1840
+ #: ../lib/pdk/util/git.rb:103
1425
1841
  msgid "Unable to locate git work dir \"%{workdir}\""
1426
1842
  msgstr ""
1427
1843
 
1428
- #: ../lib/pdk/util/git.rb:93
1844
+ #: ../lib/pdk/util/git.rb:104
1429
1845
  msgid "Unable to locate git dir \"%{gitdir}\""
1430
1846
  msgstr ""
1431
1847
 
1432
- #: ../lib/pdk/util/git.rb:108
1848
+ #: ../lib/pdk/util/git.rb:119
1433
1849
  msgid "Unable to access the template repository \"%{repository}\""
1434
1850
  msgstr ""
1435
1851
 
1436
- #: ../lib/pdk/util/git.rb:115
1852
+ #: ../lib/pdk/util/git.rb:126
1437
1853
  msgid "Unable to find a branch or tag named \"%{ref}\" in %{repo}"
1438
1854
  msgstr ""
1439
1855
 
@@ -1449,43 +1865,43 @@ msgstr ""
1449
1865
  msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
1450
1866
  msgstr ""
1451
1867
 
1452
- #: ../lib/pdk/util/puppet_version.rb:71
1868
+ #: ../lib/pdk/util/puppet_version.rb:70
1453
1869
  msgid "Unable to clone git repository from '%{repo}'."
1454
1870
  msgstr ""
1455
1871
 
1456
- #: ../lib/pdk/util/puppet_version.rb:80
1872
+ #: ../lib/pdk/util/puppet_version.rb:79
1457
1873
  msgid "Unable to fetch from git remote at '%{repo}'."
1458
1874
  msgstr ""
1459
1875
 
1460
- #: ../lib/pdk/util/puppet_version.rb:91
1876
+ #: ../lib/pdk/util/puppet_version.rb:90
1461
1877
  msgid "Unable to update git repository at '%{cachedir}'."
1462
1878
  msgstr ""
1463
1879
 
1464
- #: ../lib/pdk/util/puppet_version.rb:112
1880
+ #: ../lib/pdk/util/puppet_version.rb:111
1465
1881
  msgid "Unable to find a Puppet gem matching %{requirement}."
1466
1882
  msgstr ""
1467
1883
 
1468
- #: ../lib/pdk/util/puppet_version.rb:119
1884
+ #: ../lib/pdk/util/puppet_version.rb:118
1469
1885
  msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
1470
1886
  msgstr ""
1471
1887
 
1472
- #: ../lib/pdk/util/puppet_version.rb:136
1888
+ #: ../lib/pdk/util/puppet_version.rb:135
1473
1889
  msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
1474
1890
  msgstr ""
1475
1891
 
1476
- #: ../lib/pdk/util/puppet_version.rb:141
1892
+ #: ../lib/pdk/util/puppet_version.rb:140
1477
1893
  msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
1478
1894
  msgstr ""
1479
1895
 
1480
- #: ../lib/pdk/util/puppet_version.rb:157
1896
+ #: ../lib/pdk/util/puppet_version.rb:156
1481
1897
  msgid "Unable to determine Puppet version for module: no metadata.json present in module."
1482
1898
  msgstr ""
1483
1899
 
1484
- #: ../lib/pdk/util/puppet_version.rb:183
1900
+ #: ../lib/pdk/util/puppet_version.rb:182
1485
1901
  msgid "%{version} is not a valid version number."
1486
1902
  msgstr ""
1487
1903
 
1488
- #: ../lib/pdk/util/puppet_version.rb:219
1904
+ #: ../lib/pdk/util/puppet_version.rb:218
1489
1905
  msgid "Failed to parse Puppet Enterprise version map file."
1490
1906
  msgstr ""
1491
1907
 
@@ -1497,31 +1913,31 @@ msgstr ""
1497
1913
  msgid "PDK::Util::TemplateURI attempted initialization with a non-uri string: {string}"
1498
1914
  msgstr ""
1499
1915
 
1500
- #: ../lib/pdk/util/template_uri.rb:167
1916
+ #: ../lib/pdk/util/template_uri.rb:181
1501
1917
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1502
1918
  msgstr ""
1503
1919
 
1504
- #: ../lib/pdk/util/template_uri.rb:218
1920
+ #: ../lib/pdk/util/template_uri.rb:232
1505
1921
  msgid "--template-url"
1506
1922
  msgstr ""
1507
1923
 
1508
- #: ../lib/pdk/util/template_uri.rb:219
1924
+ #: ../lib/pdk/util/template_uri.rb:233
1509
1925
  msgid "metadata.json"
1510
1926
  msgstr ""
1511
1927
 
1512
- #: ../lib/pdk/util/template_uri.rb:220
1928
+ #: ../lib/pdk/util/template_uri.rb:234
1513
1929
  msgid "PDK answers"
1514
1930
  msgstr ""
1515
1931
 
1516
- #: ../lib/pdk/util/template_uri.rb:221
1932
+ #: ../lib/pdk/util/template_uri.rb:235
1517
1933
  msgid "default"
1518
1934
  msgstr ""
1519
1935
 
1520
- #: ../lib/pdk/util/template_uri.rb:245
1936
+ #: ../lib/pdk/util/template_uri.rb:259
1521
1937
  msgid "Unable to find a valid module template to use."
1522
1938
  msgstr ""
1523
1939
 
1524
- #: ../lib/pdk/util/template_uri.rb:270
1940
+ #: ../lib/pdk/util/template_uri.rb:282
1525
1941
  msgid "Unable to find a valid template at %{uri}"
1526
1942
  msgstr ""
1527
1943
 
@@ -1569,90 +1985,110 @@ msgstr ""
1569
1985
  msgid "Failed to set environment variaible: %{name}"
1570
1986
  msgstr ""
1571
1987
 
1572
- #: ../lib/pdk/validate/base_validator.rb:105
1573
- 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})."
1994
+ msgstr ""
1995
+
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."
1574
2010
  msgstr ""
1575
2011
 
1576
- #: ../lib/pdk/validate/base_validator.rb:110
2012
+ #: ../lib/pdk/validate/invokable_validator.rb:119
2013
+ msgid "Running %{name} validator ..."
2014
+ msgstr ""
2015
+
2016
+ #: ../lib/pdk/validate/invokable_validator.rb:136
1577
2017
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1578
2018
  msgstr ""
1579
2019
 
1580
- #: ../lib/pdk/validate/base_validator.rb:114
2020
+ #: ../lib/pdk/validate/invokable_validator.rb:140
1581
2021
  msgid "Target does not contain any files to validate (%{pattern})."
1582
2022
  msgstr ""
1583
2023
 
1584
- #: ../lib/pdk/validate/base_validator.rb:123
2024
+ #: ../lib/pdk/validate/invokable_validator.rb:152
1585
2025
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1586
2026
  msgstr ""
1587
2027
 
1588
- #: ../lib/pdk/validate/base_validator.rb:127
2028
+ #: ../lib/pdk/validate/invokable_validator.rb:156
1589
2029
  msgid "File does not exist."
1590
2030
  msgstr ""
1591
2031
 
1592
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:19
2032
+ #: ../lib/pdk/validate/metadata/metadata_json_lint_validator.rb:22
1593
2033
  msgid "Checking module metadata style (%{targets})."
1594
2034
  msgstr ""
1595
2035
 
1596
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:36
1597
- msgid "More than 1 target provided to PDK::Validate::MetadataJSONLint."
2036
+ #: ../lib/pdk/validate/metadata/metadata_json_lint_validator.rb:39
2037
+ msgid "More than 1 target provided to PDK::Validate::MetadataJSONLintValidator."
1598
2038
  msgstr ""
1599
2039
 
1600
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:15
1601
- msgid "Checking metadata syntax (%{targets})."
1602
- msgstr ""
1603
-
1604
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:71 ../lib/pdk/validate/tasks/metadata_lint.rb:81 ../lib/pdk/validate/yaml/syntax.rb:76
1605
- msgid "Could not be read."
2040
+ #: ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:16
2041
+ msgid "Checking metadata syntax (%{patterns})."
1606
2042
  msgstr ""
1607
2043
 
1608
- #: ../lib/pdk/validate/puppet/puppet_epp.rb:43
2044
+ #: ../lib/pdk/validate/puppet/puppet_epp_validator.rb:40
1609
2045
  msgid "Checking Puppet EPP syntax (%{pattern})."
1610
2046
  msgstr ""
1611
2047
 
1612
- #: ../lib/pdk/validate/puppet/puppet_lint.rb:19
2048
+ #: ../lib/pdk/validate/puppet/puppet_lint_validator.rb:20
1613
2049
  msgid "Checking Puppet manifest style (%{pattern})."
1614
2050
  msgstr ""
1615
2051
 
1616
- #: ../lib/pdk/validate/puppet/puppet_syntax.rb:43
2052
+ #: ../lib/pdk/validate/puppet/puppet_syntax_validator.rb:44
1617
2053
  msgid "Checking Puppet manifest syntax (%{pattern})."
1618
2054
  msgstr ""
1619
2055
 
1620
- #: ../lib/pdk/validate/ruby/rubocop.rb:21
2056
+ #: ../lib/pdk/validate/ruby/ruby_rubocop_validator.rb:28
1621
2057
  msgid "Checking Ruby code style (%{pattern})."
1622
2058
  msgstr ""
1623
2059
 
1624
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:18
1625
- msgid "Checking task metadata style (%{targets})."
2060
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:18
2061
+ msgid "Checking task metadata style (%{pattern})."
1626
2062
  msgstr ""
1627
2063
 
1628
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:58
2064
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:32
1629
2065
  msgid "Failed to parse Task Metadata Schema file."
1630
2066
  msgstr ""
1631
2067
 
1632
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:96
2068
+ #: ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:57
1633
2069
  msgid "Unable to validate Task Metadata. %{error}."
1634
2070
  msgstr ""
1635
2071
 
1636
- #: ../lib/pdk/validate/tasks/name.rb:7
2072
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:7
1637
2073
  msgid "Invalid task name. Task names must start with a lowercase letter and can only contain lowercase letters, numbers, and underscores."
1638
2074
  msgstr ""
1639
2075
 
1640
- #: ../lib/pdk/validate/tasks/name.rb:21
1641
- msgid "Checking task names (%{targets})."
2076
+ #: ../lib/pdk/validate/tasks/tasks_name_validator.rb:21
2077
+ msgid "Checking task names (%{pattern})."
1642
2078
  msgstr ""
1643
2079
 
1644
- #: ../lib/pdk/validate/yaml/syntax.rb:24
1645
- msgid "Checking YAML syntax (%{targets})."
2080
+ #: ../lib/pdk/validate/validator_group.rb:35
2081
+ msgid "Running %{name} validators ..."
1646
2082
  msgstr ""
1647
2083
 
1648
- #: ../lib/pdk/validate/yaml/syntax.rb:65
1649
- msgid "Validating yaml content of %{parsed_targets}"
2084
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:36
2085
+ msgid "Checking YAML syntax (%{patterns})."
1650
2086
  msgstr ""
1651
2087
 
1652
- #: ../lib/pdk/validate/yaml/syntax.rb:99
2088
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:73
1653
2089
  msgid "%{problem} %{context}"
1654
2090
  msgstr ""
1655
2091
 
1656
- #: ../lib/pdk/validate/yaml/syntax.rb:111
2092
+ #: ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:85
1657
2093
  msgid "Unsupported class: %{message}"
1658
2094
  msgstr ""