pdk 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +41 -0
  4. data/lib/pdk.rb +0 -13
  5. data/lib/pdk/analytics.rb +18 -2
  6. data/lib/pdk/analytics/client/google_analytics.rb +3 -0
  7. data/lib/pdk/answer_file.rb +4 -1
  8. data/lib/pdk/cli.rb +7 -2
  9. data/lib/pdk/cli/build.rb +2 -2
  10. data/lib/pdk/cli/bundle.rb +7 -1
  11. data/lib/pdk/cli/console.rb +148 -0
  12. data/lib/pdk/cli/convert.rb +2 -2
  13. data/lib/pdk/cli/exec.rb +14 -14
  14. data/lib/pdk/cli/exec/command.rb +16 -11
  15. data/lib/pdk/cli/exec/interactive_command.rb +4 -0
  16. data/lib/pdk/cli/exec_group.rb +5 -5
  17. data/lib/pdk/cli/module/build.rb +0 -2
  18. data/lib/pdk/cli/module/generate.rb +1 -2
  19. data/lib/pdk/cli/new.rb +1 -1
  20. data/lib/pdk/cli/new/defined_type.rb +2 -0
  21. data/lib/pdk/cli/new/provider.rb +2 -0
  22. data/lib/pdk/cli/new/task.rb +2 -0
  23. data/lib/pdk/cli/new/{unit_test.rb → test.rb} +16 -12
  24. data/lib/pdk/cli/new/transport.rb +2 -0
  25. data/lib/pdk/cli/test/unit.rb +5 -3
  26. data/lib/pdk/cli/update.rb +2 -3
  27. data/lib/pdk/cli/util.rb +45 -14
  28. data/lib/pdk/cli/util/spinner.rb +2 -2
  29. data/lib/pdk/cli/validate.rb +6 -2
  30. data/lib/pdk/config.rb +20 -8
  31. data/lib/pdk/config/analytics_schema.json +26 -0
  32. data/lib/pdk/config/json.rb +14 -3
  33. data/lib/pdk/config/json_schema_namespace.rb +143 -0
  34. data/lib/pdk/config/json_schema_setting.rb +53 -0
  35. data/lib/pdk/config/json_with_schema.rb +50 -0
  36. data/lib/pdk/config/namespace.rb +84 -76
  37. data/lib/pdk/config/setting.rb +132 -0
  38. data/lib/pdk/config/yaml.rb +15 -3
  39. data/lib/pdk/config/yaml_with_schema.rb +59 -0
  40. data/lib/pdk/generate.rb +0 -2
  41. data/lib/pdk/generate/module.rb +29 -16
  42. data/lib/pdk/generate/puppet_object.rb +31 -28
  43. data/lib/pdk/module.rb +2 -2
  44. data/lib/pdk/module/build.rb +21 -8
  45. data/lib/pdk/module/convert.rb +64 -7
  46. data/lib/pdk/module/metadata.rb +5 -1
  47. data/lib/pdk/module/templatedir.rb +24 -7
  48. data/lib/pdk/module/update.rb +5 -1
  49. data/lib/pdk/module/update_manager.rb +21 -13
  50. data/lib/pdk/report.rb +4 -3
  51. data/lib/pdk/report/event.rb +5 -3
  52. data/lib/pdk/tests/unit.rb +36 -7
  53. data/lib/pdk/util.rb +20 -8
  54. data/lib/pdk/util/bundler.rb +14 -6
  55. data/lib/pdk/util/filesystem.rb +5 -0
  56. data/lib/pdk/util/git.rb +6 -0
  57. data/lib/pdk/util/puppet_strings.rb +24 -2
  58. data/lib/pdk/util/puppet_version.rb +25 -10
  59. data/lib/pdk/util/ruby_version.rb +13 -1
  60. data/lib/pdk/util/template_uri.rb +23 -2
  61. data/lib/pdk/util/vendored_file.rb +28 -24
  62. data/lib/pdk/util/version.rb +5 -5
  63. data/lib/pdk/validate/base_validator.rb +5 -4
  64. data/lib/pdk/validate/metadata/metadata_json_lint.rb +0 -4
  65. data/lib/pdk/validate/metadata/metadata_syntax.rb +5 -3
  66. data/lib/pdk/validate/metadata_validator.rb +0 -2
  67. data/lib/pdk/validate/puppet/puppet_epp.rb +4 -4
  68. data/lib/pdk/validate/puppet/puppet_lint.rb +0 -3
  69. data/lib/pdk/validate/puppet/puppet_syntax.rb +4 -4
  70. data/lib/pdk/validate/puppet_validator.rb +0 -2
  71. data/lib/pdk/validate/ruby/rubocop.rb +0 -5
  72. data/lib/pdk/validate/ruby_validator.rb +0 -2
  73. data/lib/pdk/validate/tasks/metadata_lint.rb +9 -5
  74. data/lib/pdk/validate/tasks/name.rb +4 -2
  75. data/lib/pdk/validate/tasks_validator.rb +0 -2
  76. data/lib/pdk/validate/yaml/syntax.rb +4 -4
  77. data/lib/pdk/validate/yaml_validator.rb +0 -2
  78. data/lib/pdk/version.rb +1 -1
  79. data/locales/pdk.pot +351 -311
  80. metadata +11 -7
  81. data/lib/pdk/config/validator.rb +0 -31
  82. data/lib/pdk/config/value.rb +0 -94
@@ -1,8 +1,4 @@
1
- require 'pdk'
2
- require 'pdk/cli/exec'
3
1
  require 'pdk/validate/base_validator'
4
- require 'pdk/util'
5
- require 'pathname'
6
2
 
7
3
  module PDK
8
4
  module Validate
@@ -31,6 +27,8 @@ module PDK
31
27
  end
32
28
 
33
29
  def self.create_spinner(targets = [], options = {})
30
+ require 'pdk/cli/util'
31
+
34
32
  return unless PDK::CLI::Util.interactive?
35
33
  options = options.merge(PDK::CLI::Util.spinner_opts_for_platform)
36
34
 
@@ -38,6 +36,8 @@ module PDK
38
36
  @spinner = if exec_group
39
37
  exec_group.add_spinner(spinner_text(targets), options)
40
38
  else
39
+ require 'pdk/cli/util/spinner'
40
+
41
41
  TTY::Spinner.new("[:spinner] #{spinner_text(targets)}", options)
42
42
  end
43
43
  @spinner.auto_spin
@@ -1,5 +1,3 @@
1
- require 'pdk'
2
- require 'pdk/cli/exec'
3
1
  require 'pdk/validate/base_validator'
4
2
  require 'pdk/validate/yaml/syntax'
5
3
 
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.13.0'.freeze
2
+ VERSION = '1.14.0'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v1.12.0-37-g18d39ff\n"
9
+ "Project-Id-Version: puppet development kit v1.13.0-68-g46cd813\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2019-08-29 14:28+1000\n"
13
- "PO-Revision-Date: 2019-08-29 14:28+1000\n"
12
+ "POT-Creation-Date: 2019-10-09 14:07+1100\n"
13
+ "PO-Revision-Date: 2019-10-09 14:07+1100\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -19,103 +19,103 @@ msgstr ""
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
21
21
 
22
- #: ../lib/pdk/analytics/client/google_analytics.rb:42 ../lib/pdk/analytics/client/google_analytics.rb:57
22
+ #: ../lib/pdk/analytics/client/google_analytics.rb:43 ../lib/pdk/analytics/client/google_analytics.rb:58
23
23
  msgid "Unknown analytics key '%{key}'"
24
24
  msgstr ""
25
25
 
26
- #: ../lib/pdk/answer_file.rb:59
26
+ #: ../lib/pdk/answer_file.rb:58
27
27
  msgid "Answer file can be updated only with a Hash"
28
28
  msgstr ""
29
29
 
30
- #: ../lib/pdk/answer_file.rb:86
30
+ #: ../lib/pdk/answer_file.rb:87
31
31
  msgid "Unable to open '%{file}' for reading"
32
32
  msgstr ""
33
33
 
34
- #: ../lib/pdk/answer_file.rb:95
34
+ #: ../lib/pdk/answer_file.rb:96
35
35
  msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
36
36
  msgstr ""
37
37
 
38
- #: ../lib/pdk/answer_file.rb:101
38
+ #: ../lib/pdk/answer_file.rb:102
39
39
  msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
40
40
  msgstr ""
41
41
 
42
- #: ../lib/pdk/answer_file.rb:115
42
+ #: ../lib/pdk/answer_file.rb:118
43
43
  msgid "Unable to write '%{file}': %{msg}"
44
44
  msgstr ""
45
45
 
46
- #: ../lib/pdk/cli.rb:79
46
+ #: ../lib/pdk/cli.rb:82
47
47
  msgid "Specifies the URL to the template to use when creating new modules or classes. (default: %{default_url})"
48
48
  msgstr ""
49
49
 
50
- #: ../lib/pdk/cli.rb:85
50
+ #: ../lib/pdk/cli.rb:88
51
51
  msgid "Specifies the template git branch or tag to use when creating new modules or classes."
52
52
  msgstr ""
53
53
 
54
- #: ../lib/pdk/cli.rb:89
54
+ #: ../lib/pdk/cli.rb:92
55
55
  msgid "When specified, skips interactive querying of metadata."
56
56
  msgstr ""
57
57
 
58
- #: ../lib/pdk/cli.rb:93
58
+ #: ../lib/pdk/cli.rb:96
59
59
  msgid "When specified, interactive querying of metadata will include all optional questions."
60
60
  msgstr ""
61
61
 
62
- #: ../lib/pdk/cli.rb:97
62
+ #: ../lib/pdk/cli.rb:100
63
63
  msgid "Puppet version to run tests or validations against."
64
64
  msgstr ""
65
65
 
66
- #: ../lib/pdk/cli.rb:98
66
+ #: ../lib/pdk/cli.rb:101
67
67
  msgid "Puppet Enterprise version to run tests or validations against."
68
68
  msgstr ""
69
69
 
70
- #: ../lib/pdk/cli.rb:104
70
+ #: ../lib/pdk/cli.rb:107
71
71
  msgid "When specified, PDK will validate or test against the current Puppet source from github.com. To use this option, you must have network access to https://github.com."
72
72
  msgstr ""
73
73
 
74
- #: ../lib/pdk/cli.rb:109
74
+ #: ../lib/pdk/cli.rb:112
75
75
  msgid "pdk command [options]"
76
76
  msgstr ""
77
77
 
78
- #: ../lib/pdk/cli.rb:110
78
+ #: ../lib/pdk/cli.rb:113
79
79
  msgid "Puppet Development Kit"
80
80
  msgstr ""
81
81
 
82
- #: ../lib/pdk/cli.rb:111
82
+ #: ../lib/pdk/cli.rb:114
83
83
  msgid "The shortest path to better modules."
84
84
  msgstr ""
85
85
 
86
- #: ../lib/pdk/cli.rb:114
86
+ #: ../lib/pdk/cli.rb:117
87
87
  msgid "Show version of pdk."
88
88
  msgstr ""
89
89
 
90
- #: ../lib/pdk/cli.rb:119
90
+ #: ../lib/pdk/cli.rb:122
91
91
  msgid "Show help for this command."
92
92
  msgstr ""
93
93
 
94
- #: ../lib/pdk/cli.rb:124
94
+ #: ../lib/pdk/cli.rb:127
95
95
  msgid "Specify desired output format. Valid formats are '%{available_formats}'. You may also specify a file to which the formatted output is sent, for example: '--format=junit:report.xml'. This option may be specified multiple times if each option specifies a distinct target file."
96
96
  msgstr ""
97
97
 
98
- #: ../lib/pdk/cli.rb:135
98
+ #: ../lib/pdk/cli.rb:138
99
99
  msgid "Enable debug output."
100
100
  msgstr ""
101
101
 
102
- #: ../lib/pdk/cli.rb:139
102
+ #: ../lib/pdk/cli.rb:142
103
103
  msgid "Path to an answer file."
104
104
  msgstr ""
105
105
 
106
- #: ../lib/pdk/cli/build.rb:6
106
+ #: ../lib/pdk/cli/build.rb:4
107
107
  msgid "build [options]"
108
108
  msgstr ""
109
109
 
110
- #: ../lib/pdk/cli/build.rb:7
110
+ #: ../lib/pdk/cli/build.rb:5
111
111
  msgid "Builds a package from the module that can be published to the Puppet Forge."
112
112
  msgstr ""
113
113
 
114
- #: ../lib/pdk/cli/build.rb:10
114
+ #: ../lib/pdk/cli/build.rb:8
115
115
  msgid "The target directory where you want PDK to write the package."
116
116
  msgstr ""
117
117
 
118
- #: ../lib/pdk/cli/build.rb:13
118
+ #: ../lib/pdk/cli/build.rb:11
119
119
  msgid "Skips the prompts and builds the module package."
120
120
  msgstr ""
121
121
 
@@ -169,7 +169,7 @@ msgid ""
169
169
  "Careless use of this command can lead to errors that pdk can't help recover from.\n"
170
170
  msgstr ""
171
171
 
172
- #: ../lib/pdk/cli/bundle.rb:15
172
+ #: ../lib/pdk/cli/bundle.rb:18
173
173
  msgid "`pdk bundle` can only be run from inside a valid module directory."
174
174
  msgstr ""
175
175
 
@@ -201,22 +201,50 @@ msgstr ""
201
201
  msgid "%{name}=%{value}"
202
202
  msgstr ""
203
203
 
204
- #: ../lib/pdk/cli/convert.rb:6
204
+ #: ../lib/pdk/cli/console.rb:4
205
+ msgid "console [console_options]"
206
+ msgstr ""
207
+
208
+ #: ../lib/pdk/cli/console.rb:5
209
+ msgid "(Experimental) Start a session of the puppet debugger console."
210
+ msgstr ""
211
+
212
+ #: ../lib/pdk/cli/console.rb:7
213
+ msgid ""
214
+ "The pdk console runs a interactive session of the puppet debugger tool to test out snippets of code, run\n"
215
+ "language evaluations, datatype prototyping and much more. A virtual playground for your puppet code!\n"
216
+ "For usage details see the puppet debugger docs at https://docs.puppet-debugger.com.\n"
217
+ "\n"
218
+ msgstr ""
219
+
220
+ #: ../lib/pdk/cli/console.rb:26
221
+ msgid "Console can only be run from inside a valid module directory"
222
+ msgstr ""
223
+
224
+ #: ../lib/pdk/cli/console.rb:89
225
+ msgid "Module fixtures not found, please run pdk bundle exec rake spec_prep."
226
+ msgstr ""
227
+
228
+ #: ../lib/pdk/cli/convert.rb:4
205
229
  msgid "convert [options]"
206
230
  msgstr ""
207
231
 
208
- #: ../lib/pdk/cli/convert.rb:7
232
+ #: ../lib/pdk/cli/convert.rb:5
209
233
  msgid "Convert an existing module to be compatible with the PDK."
210
234
  msgstr ""
211
235
 
212
- #: ../lib/pdk/cli/convert.rb:13
236
+ #: ../lib/pdk/cli/convert.rb:11
213
237
  msgid "Do not convert the module, just output what would be done."
214
238
  msgstr ""
215
239
 
216
- #: ../lib/pdk/cli/convert.rb:14
240
+ #: ../lib/pdk/cli/convert.rb:12
217
241
  msgid "Convert the module automatically, with no prompts."
218
242
  msgstr ""
219
243
 
244
+ #: ../lib/pdk/cli/convert.rb:13
245
+ msgid "Add any missing tests while converting the module."
246
+ msgstr ""
247
+
220
248
  #: ../lib/pdk/cli/convert.rb:21
221
249
  msgid "`pdk convert` can only be run from inside a valid module directory."
222
250
  msgstr ""
@@ -237,7 +265,7 @@ msgstr ""
237
265
  msgid "An unexpected error has occurred. Try running the command again with --debug"
238
266
  msgstr ""
239
267
 
240
- #: ../lib/pdk/cli/exec.rb:35
268
+ #: ../lib/pdk/cli/exec.rb:31
241
269
  msgid "Unable to find `%{name}`. Check that it is installed and try again."
242
270
  msgstr ""
243
271
 
@@ -253,61 +281,61 @@ msgstr ""
253
281
  msgid "Using '%{vendored_bin}' from PDK package."
254
282
  msgstr ""
255
283
 
256
- #: ../lib/pdk/cli/exec/command.rb:46
284
+ #: ../lib/pdk/cli/exec/command.rb:38
257
285
  msgid "Expected execution context to be :system or :module but got '%{context}'."
258
286
  msgstr ""
259
287
 
260
- #: ../lib/pdk/cli/exec/command.rb:85 ../lib/pdk/cli/exec/interactive_command.rb:44
288
+ #: ../lib/pdk/cli/exec/command.rb:84 ../lib/pdk/cli/exec/interactive_command.rb:46
261
289
  msgid "Current working directory is not part of a module. (No metadata.json was found.)"
262
290
  msgstr ""
263
291
 
264
- #: ../lib/pdk/cli/exec/command.rb:112
292
+ #: ../lib/pdk/cli/exec/command.rb:111
265
293
  msgid "STDOUT: %{output}"
266
294
  msgstr ""
267
295
 
268
- #: ../lib/pdk/cli/exec/command.rb:115
296
+ #: ../lib/pdk/cli/exec/command.rb:114
269
297
  msgid "STDERR: %{output}"
270
298
  msgstr ""
271
299
 
272
- #: ../lib/pdk/cli/exec/command.rb:129
300
+ #: ../lib/pdk/cli/exec/command.rb:128
273
301
  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"
274
302
  msgstr ""
275
303
 
276
- #: ../lib/pdk/cli/exec/command.rb:138
304
+ #: ../lib/pdk/cli/exec/command.rb:137
277
305
  msgid "%{varname} is not supported by PDK."
278
306
  msgstr ""
279
307
 
280
- #: ../lib/pdk/cli/exec/command.rb:197
308
+ #: ../lib/pdk/cli/exec/command.rb:202
281
309
  msgid "Executing '%{command}'"
282
310
  msgstr ""
283
311
 
284
- #: ../lib/pdk/cli/exec/command.rb:200 ../lib/pdk/cli/exec/interactive_command.rb:76
312
+ #: ../lib/pdk/cli/exec/command.rb:205 ../lib/pdk/cli/exec/interactive_command.rb:78
285
313
  msgid "Command environment:"
286
314
  msgstr ""
287
315
 
288
- #: ../lib/pdk/cli/exec/command.rb:211
316
+ #: ../lib/pdk/cli/exec/command.rb:216
289
317
  msgid "Failed to execute '%{command}': %{message}"
290
318
  msgstr ""
291
319
 
292
- #: ../lib/pdk/cli/exec/command.rb:227
320
+ #: ../lib/pdk/cli/exec/command.rb:232
293
321
  msgid "Execution of '%{command}' complete (duration: %{duration_in_seconds}s; exit code: %{exit_code})"
294
322
  msgstr ""
295
323
 
296
- #: ../lib/pdk/cli/exec/interactive_command.rb:18 ../lib/pdk/cli/exec/interactive_command.rb:22 ../lib/pdk/cli/exec/interactive_command.rb:26 ../lib/pdk/cli/exec/interactive_command.rb:30 ../lib/pdk/cli/exec/interactive_command.rb:34 ../lib/pdk/cli/exec/interactive_command.rb:105
324
+ #: ../lib/pdk/cli/exec/interactive_command.rb:18 ../lib/pdk/cli/exec/interactive_command.rb:22 ../lib/pdk/cli/exec/interactive_command.rb:26 ../lib/pdk/cli/exec/interactive_command.rb:30 ../lib/pdk/cli/exec/interactive_command.rb:34 ../lib/pdk/cli/exec/interactive_command.rb:109
297
325
  msgid "This method is not implemented for PDK::CLI::Exec::InteractiveCommand"
298
326
  msgstr ""
299
327
 
300
- #: ../lib/pdk/cli/exec/interactive_command.rb:73
328
+ #: ../lib/pdk/cli/exec/interactive_command.rb:75
301
329
  msgid "Executing '%{command}' interactively"
302
330
  msgstr ""
303
331
 
304
- #: ../lib/pdk/cli/exec/interactive_command.rb:89
332
+ #: ../lib/pdk/cli/exec/interactive_command.rb:91
305
333
  msgid ""
306
334
  "Execution of '%{command}' complete (duration: \\\n"
307
335
  " %{duration_in_seconds}s; exit code: %{exit_code})"
308
336
  msgstr ""
309
337
 
310
- #: ../lib/pdk/cli/exec_group.rb:30
338
+ #: ../lib/pdk/cli/exec_group.rb:28
311
339
  msgid "No block registered"
312
340
  msgstr ""
313
341
 
@@ -323,31 +351,31 @@ msgstr ""
323
351
  msgid "This command is only for reminding you how to accomplish tasks with the PDK, when you were previously doing them with the puppet module command."
324
352
  msgstr ""
325
353
 
326
- #: ../lib/pdk/cli/module/build.rb:6
354
+ #: ../lib/pdk/cli/module/build.rb:4
327
355
  msgid "build"
328
356
  msgstr ""
329
357
 
330
- #: ../lib/pdk/cli/module/build.rb:7
358
+ #: ../lib/pdk/cli/module/build.rb:5
331
359
  msgid "This command is now 'pdk build'."
332
360
  msgstr ""
333
361
 
334
- #: ../lib/pdk/cli/module/build.rb:10
362
+ #: ../lib/pdk/cli/module/build.rb:8
335
363
  msgid "Modules are built using the ‘pdk build’ command."
336
364
  msgstr ""
337
365
 
338
- #: ../lib/pdk/cli/module/generate.rb:6
366
+ #: ../lib/pdk/cli/module/generate.rb:4
339
367
  msgid "generate [options] <module_name>"
340
368
  msgstr ""
341
369
 
342
- #: ../lib/pdk/cli/module/generate.rb:7
370
+ #: ../lib/pdk/cli/module/generate.rb:5
343
371
  msgid "This command is now 'pdk new module'."
344
372
  msgstr ""
345
373
 
346
- #: ../lib/pdk/cli/module/generate.rb:25
374
+ #: ../lib/pdk/cli/module/generate.rb:24
347
375
  msgid "New modules are created using the ‘pdk new module’ command."
348
376
  msgstr ""
349
377
 
350
- #: ../lib/pdk/cli/module/generate.rb:41 ../lib/pdk/cli/new/module.rb:42
378
+ #: ../lib/pdk/cli/module/generate.rb:40 ../lib/pdk/cli/new/module.rb:42
351
379
  msgid "Creating new module: %{modname}"
352
380
  msgstr ""
353
381
 
@@ -435,52 +463,52 @@ msgstr ""
435
463
  msgid "A short description of the purpose of the task"
436
464
  msgstr ""
437
465
 
438
- #: ../lib/pdk/cli/new/task.rb:11
466
+ #: ../lib/pdk/cli/new/task.rb:13
439
467
  msgid "Tasks can only be created from inside a valid module directory."
440
468
  msgstr ""
441
469
 
442
- #: ../lib/pdk/cli/new/task.rb:24
470
+ #: ../lib/pdk/cli/new/task.rb:26
443
471
  msgid "'%{name}' is not a valid task name"
444
472
  msgstr ""
445
473
 
446
- #: ../lib/pdk/cli/new/transport.rb:4
447
- msgid "transport [options] <name>"
474
+ #: ../lib/pdk/cli/new/test.rb:4
475
+ msgid "test [options] <name>"
448
476
  msgstr ""
449
477
 
450
- #: ../lib/pdk/cli/new/transport.rb:5
451
- msgid "[experimental] Create a new ruby transport named <name> using given options"
478
+ #: ../lib/pdk/cli/new/test.rb:5
479
+ msgid "Create a new test for the object named <name>"
452
480
  msgstr ""
453
481
 
454
- #: ../lib/pdk/cli/new/transport.rb:19
455
- msgid "'%{name}' is not a valid transport name"
482
+ #: ../lib/pdk/cli/new/test.rb:6
483
+ msgid "Create a new unit test."
456
484
  msgstr ""
457
485
 
458
- #: ../lib/pdk/cli/new/unit_test.rb:4
459
- msgid "unit_test [options] <name>"
486
+ #: ../lib/pdk/cli/new/test.rb:16
487
+ msgid "Tests can only be created from inside a valid module directory."
460
488
  msgstr ""
461
489
 
462
- #: ../lib/pdk/cli/new/unit_test.rb:5
463
- msgid "(Experimental) Create a new unit test for the object named <name>"
490
+ #: ../lib/pdk/cli/new/test.rb:31
491
+ msgid "Test type not specified, assuming unit."
464
492
  msgstr ""
465
493
 
466
- #: ../lib/pdk/cli/new/unit_test.rb:6
467
- msgid ""
468
- "Generate a new rspec-puppet unit test for an existing class or defined type.\n"
469
- "\n"
470
- "Please note, this is an experimental feature; the functionality and UX is\n"
471
- "subject to change in future releases.\n"
494
+ #: ../lib/pdk/cli/new/test.rb:47
495
+ msgid "Unable to find anything called \"%{object}\" to generate unit tests for."
472
496
  msgstr ""
473
497
 
474
- #: ../lib/pdk/cli/new/unit_test.rb:19
475
- msgid "Unit tests can only be created from inside a valid module directory."
498
+ #: ../lib/pdk/cli/new/test.rb:49
499
+ msgid "PDK does not support generating unit tests for \"%{object_type}\" objects."
476
500
  msgstr ""
477
501
 
478
- #: ../lib/pdk/cli/new/unit_test.rb:43
479
- msgid "Unable to find anything called \"%{object}\" to generate unit tests for."
502
+ #: ../lib/pdk/cli/new/transport.rb:4
503
+ msgid "transport [options] <name>"
480
504
  msgstr ""
481
505
 
482
- #: ../lib/pdk/cli/new/unit_test.rb:45
483
- msgid "PDK does not support generating unit tests for \"%{object_type}\" objects."
506
+ #: ../lib/pdk/cli/new/transport.rb:5
507
+ msgid "[experimental] Create a new ruby transport named <name> using given options"
508
+ msgstr ""
509
+
510
+ #: ../lib/pdk/cli/new/transport.rb:19
511
+ msgid "'%{name}' is not a valid transport name"
484
512
  msgstr ""
485
513
 
486
514
  #: ../lib/pdk/cli/test.rb:4
@@ -491,31 +519,31 @@ msgstr ""
491
519
  msgid "Run tests."
492
520
  msgstr ""
493
521
 
494
- #: ../lib/pdk/cli/test/unit.rb:7
522
+ #: ../lib/pdk/cli/test/unit.rb:4
495
523
  msgid "unit [options]"
496
524
  msgstr ""
497
525
 
498
- #: ../lib/pdk/cli/test/unit.rb:8
526
+ #: ../lib/pdk/cli/test/unit.rb:5
499
527
  msgid "Run unit tests."
500
528
  msgstr ""
501
529
 
502
- #: ../lib/pdk/cli/test/unit.rb:12
530
+ #: ../lib/pdk/cli/test/unit.rb:9
503
531
  msgid "List all available unit test files."
504
532
  msgstr ""
505
533
 
506
- #: ../lib/pdk/cli/test/unit.rb:13
534
+ #: ../lib/pdk/cli/test/unit.rb:10
507
535
  msgid "Run unit tests in parallel."
508
536
  msgstr ""
509
537
 
510
- #: ../lib/pdk/cli/test/unit.rb:14
538
+ #: ../lib/pdk/cli/test/unit.rb:11
511
539
  msgid "More verbose --list output. Displays a list of examples in each unit test file."
512
540
  msgstr ""
513
541
 
514
- #: ../lib/pdk/cli/test/unit.rb:15
542
+ #: ../lib/pdk/cli/test/unit.rb:12
515
543
  msgid "Clean up downloaded fixtures after the test run."
516
544
  msgstr ""
517
545
 
518
- #: ../lib/pdk/cli/test/unit.rb:17
546
+ #: ../lib/pdk/cli/test/unit.rb:14
519
547
  msgid "Specify a comma-separated list of unit test files to run."
520
548
  msgstr ""
521
549
 
@@ -539,39 +567,39 @@ msgstr ""
539
567
  msgid "--verbose has no effect when not used with --list"
540
568
  msgstr ""
541
569
 
542
- #: ../lib/pdk/cli/update.rb:7
570
+ #: ../lib/pdk/cli/update.rb:4
543
571
  msgid "update [options]"
544
572
  msgstr ""
545
573
 
546
- #: ../lib/pdk/cli/update.rb:8
574
+ #: ../lib/pdk/cli/update.rb:5
547
575
  msgid "Update a module that has been created by or converted for use by PDK."
548
576
  msgstr ""
549
577
 
550
- #: ../lib/pdk/cli/update.rb:10
578
+ #: ../lib/pdk/cli/update.rb:7
551
579
  msgid "Do not update the module, just output what would be done."
552
580
  msgstr ""
553
581
 
554
- #: ../lib/pdk/cli/update.rb:11
582
+ #: ../lib/pdk/cli/update.rb:8
555
583
  msgid "Update the module automatically, with no prompts."
556
584
  msgstr ""
557
585
 
558
- #: ../lib/pdk/cli/update.rb:19
586
+ #: ../lib/pdk/cli/update.rb:18
559
587
  msgid "`pdk update` can only be run from inside a valid module directory."
560
588
  msgstr ""
561
589
 
562
- #: ../lib/pdk/cli/update.rb:23
590
+ #: ../lib/pdk/cli/update.rb:22
563
591
  msgid "This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`."
564
592
  msgstr ""
565
593
 
566
- #: ../lib/pdk/cli/update.rb:26
594
+ #: ../lib/pdk/cli/update.rb:25
567
595
  msgid "You can not specify --noop and --force when updating a module"
568
596
  msgstr ""
569
597
 
570
- #: ../lib/pdk/cli/update.rb:30
598
+ #: ../lib/pdk/cli/update.rb:29
571
599
  msgid "This module has been updated to PDK %{module_pdk_version} which is newer than your PDK version (%{user_pdk_version}), proceed with caution!"
572
600
  msgstr ""
573
601
 
574
- #: ../lib/pdk/cli/update.rb:40
602
+ #: ../lib/pdk/cli/update.rb:39
575
603
  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."
576
604
  msgstr ""
577
605
 
@@ -583,39 +611,43 @@ msgstr ""
583
611
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
584
612
  msgstr ""
585
613
 
586
- #: ../lib/pdk/cli/util.rb:86
614
+ #: ../lib/pdk/cli/util.rb:88
587
615
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
588
616
  msgstr ""
589
617
 
590
- #: ../lib/pdk/cli/util.rb:92
618
+ #: ../lib/pdk/cli/util.rb:94
591
619
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
592
620
  msgstr ""
593
621
 
594
- #: ../lib/pdk/cli/util.rb:97
622
+ #: ../lib/pdk/cli/util.rb:99
595
623
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
596
624
  msgstr ""
597
625
 
598
- #: ../lib/pdk/cli/util.rb:101
626
+ #: ../lib/pdk/cli/util.rb:103
599
627
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
600
628
  msgstr ""
601
629
 
602
- #: ../lib/pdk/cli/util.rb:127
630
+ #: ../lib/pdk/cli/util.rb:114
631
+ msgid "Support for Puppet versions older than %{version} is deprecated and will be removed in a future version of PDK."
632
+ msgstr ""
633
+
634
+ #: ../lib/pdk/cli/util.rb:151
603
635
  msgid "Using Ruby %{version}"
604
636
  msgstr ""
605
637
 
606
- #: ../lib/pdk/cli/util.rb:137
638
+ #: ../lib/pdk/cli/util.rb:165
607
639
  msgid "Using %{gem} %{version}"
608
640
  msgstr ""
609
641
 
610
- #: ../lib/pdk/cli/util.rb:167 ../lib/pdk/cli/util.rb:179
642
+ #: ../lib/pdk/cli/util.rb:196 ../lib/pdk/cli/util.rb:208
611
643
  msgid "You cannot specify a %{first} and %{second} at the same time."
612
644
  msgstr ""
613
645
 
614
- #: ../lib/pdk/cli/util.rb:215
646
+ #: ../lib/pdk/cli/util.rb:244
615
647
  msgid "--template-ref requires --template-url to also be specified."
616
648
  msgstr ""
617
649
 
618
- #: ../lib/pdk/cli/util.rb:219
650
+ #: ../lib/pdk/cli/util.rb:248
619
651
  msgid "--template-url may not be used to specify paths containing #'s."
620
652
  msgstr ""
621
653
 
@@ -643,15 +675,15 @@ msgstr ""
643
675
  msgid "Error: the following values are invalid: %{invalid_entries}"
644
676
  msgstr ""
645
677
 
646
- #: ../lib/pdk/cli/validate.rb:6
678
+ #: ../lib/pdk/cli/validate.rb:4
647
679
  msgid "validate [validators] [options] [targets]"
648
680
  msgstr ""
649
681
 
650
- #: ../lib/pdk/cli/validate.rb:7
682
+ #: ../lib/pdk/cli/validate.rb:5
651
683
  msgid "Run static analysis tests."
652
684
  msgstr ""
653
685
 
654
- #: ../lib/pdk/cli/validate.rb:8
686
+ #: ../lib/pdk/cli/validate.rb:6
655
687
  msgid ""
656
688
  "Run metadata, YAML, Puppet, Ruby, or Tasks validation.\n"
657
689
  "\n"
@@ -660,15 +692,15 @@ msgid ""
660
692
  "[targets] is an optional space-separated list of files or directories to be validated. If not specified, validators are run against all applicable files in the module."
661
693
  msgstr ""
662
694
 
663
- #: ../lib/pdk/cli/validate.rb:19
695
+ #: ../lib/pdk/cli/validate.rb:17
664
696
  msgid "List all available validators."
665
697
  msgstr ""
666
698
 
667
- #: ../lib/pdk/cli/validate.rb:20
699
+ #: ../lib/pdk/cli/validate.rb:18
668
700
  msgid "Automatically correct problems where possible."
669
701
  msgstr ""
670
702
 
671
- #: ../lib/pdk/cli/validate.rb:21
703
+ #: ../lib/pdk/cli/validate.rb:19
672
704
  msgid "Run validations in parallel."
673
705
  msgstr ""
674
706
 
@@ -688,90 +720,102 @@ msgstr ""
688
720
  msgid "Running all available validators..."
689
721
  msgstr ""
690
722
 
691
- #: ../lib/pdk/cli/validate.rb:108
723
+ #: ../lib/pdk/cli/validate.rb:112
692
724
  msgid "Validating module using %{num_of_threads} threads"
693
725
  msgstr ""
694
726
 
695
- #: ../lib/pdk/config.rb:48
727
+ #: ../lib/pdk/config.rb:47
696
728
  msgid "Unable to load %{file}: %{message}"
697
729
  msgstr ""
698
730
 
699
- #: ../lib/pdk/config.rb:70
731
+ #: ../lib/pdk/config.rb:80
700
732
  msgid ""
701
733
  "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"
702
734
  msgstr ""
703
735
 
704
- #: ../lib/pdk/config.rb:76
736
+ #: ../lib/pdk/config.rb:86
705
737
  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."
706
738
  msgstr ""
707
739
 
708
- #: ../lib/pdk/config.rb:88
740
+ #: ../lib/pdk/config.rb:98
709
741
  msgid "Do you consent to the collection of anonymous PDK usage information?"
710
742
  msgstr ""
711
743
 
712
- #: ../lib/pdk/config.rb:100
744
+ #: ../lib/pdk/config.rb:112
713
745
  msgid "No answer given, opting out of analytics collection."
714
746
  msgstr ""
715
747
 
716
- #: ../lib/pdk/config/namespace.rb:63
717
- msgid "Only PDK::Config::Namespace objects can be mounted into a namespace"
748
+ #: ../lib/pdk/config/json_schema_namespace.rb:100
749
+ msgid "Setting '#{key}' does not exist'"
718
750
  msgstr ""
719
751
 
720
- #: ../lib/pdk/config/namespace.rb:251
721
- msgid "Unable to open %{file} for reading"
752
+ #: ../lib/pdk/config/json_schema_namespace.rb:124
753
+ msgid "Unable to open %{file} for reading. File does not exist"
722
754
  msgstr ""
723
755
 
724
- #: ../lib/pdk/config/namespace.rb:283
725
- msgid "Unable to open %{file} for writing"
756
+ #: ../lib/pdk/config/json_schema_namespace.rb:136
757
+ msgid "Unable to open %{file} for reading. JSON Error: %{msg}"
758
+ msgstr ""
759
+
760
+ #: ../lib/pdk/config/json_schema_setting.rb:27 ../lib/pdk/config/setting.rb:96
761
+ msgid "%{key} %{message}"
726
762
  msgstr ""
727
763
 
728
- #: ../lib/pdk/config/validator.rb:16
729
- msgid "must be a boolean: true or false"
764
+ #: ../lib/pdk/config/json_with_schema.rb:23 ../lib/pdk/config/yaml_with_schema.rb:23
765
+ msgid "The configuration file %{filename} is not valid: %{message}"
730
766
  msgstr ""
731
767
 
732
- #: ../lib/pdk/config/validator.rb:26
733
- msgid "must be a version 4 UUID"
768
+ #: ../lib/pdk/config/namespace.rb:65
769
+ msgid "Only PDK::Config::Namespace objects can be mounted into a namespace"
734
770
  msgstr ""
735
771
 
736
- #: ../lib/pdk/config/value.rb:42
772
+ #: ../lib/pdk/config/namespace.rb:137
773
+ msgid "Namespace mounts can not be set a value"
774
+ msgstr ""
775
+
776
+ #: ../lib/pdk/config/namespace.rb:286
777
+ msgid "Unable to open %{file} for reading"
778
+ msgstr ""
779
+
780
+ #: ../lib/pdk/config/namespace.rb:309
781
+ msgid "Unable to open %{file} for writing"
782
+ msgstr ""
783
+
784
+ #: ../lib/pdk/config/setting.rb:77
737
785
  msgid "`validator` must be a Hash"
738
786
  msgstr ""
739
787
 
740
- #: ../lib/pdk/config/value.rb:43
788
+ #: ../lib/pdk/config/setting.rb:78
741
789
  msgid "the :proc key must contain a Proc"
742
790
  msgstr ""
743
791
 
744
- #: ../lib/pdk/config/value.rb:44
792
+ #: ../lib/pdk/config/setting.rb:79
745
793
  msgid "the :message key must contain a String"
746
794
  msgstr ""
747
795
 
748
- #: ../lib/pdk/config/value.rb:62
749
- msgid "%{key} %{message}"
750
- msgstr ""
751
-
752
- #: ../lib/pdk/config/value.rb:76
796
+ #: ../lib/pdk/config/setting.rb:110
753
797
  msgid "must be passed a block"
754
798
  msgstr ""
755
799
 
756
- #: ../lib/pdk/config/yaml.rb:13
800
+ #: ../lib/pdk/config/yaml.rb:22 ../lib/pdk/config/yaml_with_schema.rb:39
757
801
  msgid "Syntax error when loading %{file}: %{error}"
758
802
  msgstr ""
759
803
 
760
- #: ../lib/pdk/config/yaml.rb:18
804
+ #: ../lib/pdk/config/yaml.rb:27 ../lib/pdk/config/yaml_with_schema.rb:44
761
805
  msgid "Unsupported class in %{file}: %{error}"
762
806
  msgstr ""
763
807
 
764
- #: ../lib/pdk/generate/module.rb:24
808
+ #: ../lib/pdk/generate/module.rb:12
765
809
  msgid ""
766
810
  "'%{module_name}' is not a valid module name.\n"
767
811
  "Module names must begin with a lowercase letter and can only include lowercase letters, digits, and underscores."
768
812
  msgstr ""
769
813
 
770
- #: ../lib/pdk/generate/module.rb:32
814
+ #: ../lib/pdk/generate/module.rb:20
771
815
  msgid "The destination directory '%{dir}' already exists"
772
816
  msgstr ""
773
817
 
774
- #: ../lib/pdk/generate/module.rb:48
818
+ #: ../lib/pdk/generate/module.rb:42
775
819
  msgid "You do not have permission to write to '%{parent_dir}'"
776
820
  msgstr ""
777
821
 
@@ -787,133 +831,133 @@ msgstr ""
787
831
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
788
832
  msgstr ""
789
833
 
790
- #: ../lib/pdk/generate/module.rb:112
834
+ #: ../lib/pdk/generate/module.rb:114
791
835
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
792
836
  msgstr ""
793
837
 
794
- #: ../lib/pdk/generate/module.rb:147
838
+ #: ../lib/pdk/generate/module.rb:154
795
839
  msgid "Unable to create directory '%{dir}': %{message}"
796
840
  msgstr ""
797
841
 
798
- #: ../lib/pdk/generate/module.rb:159
842
+ #: ../lib/pdk/generate/module.rb:169
799
843
  msgid "If you have a name for your module, add it here."
800
844
  msgstr ""
801
845
 
802
- #: ../lib/pdk/generate/module.rb:160
846
+ #: ../lib/pdk/generate/module.rb:170
803
847
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
804
848
  msgstr ""
805
849
 
806
- #: ../lib/pdk/generate/module.rb:163
850
+ #: ../lib/pdk/generate/module.rb:173
807
851
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
808
852
  msgstr ""
809
853
 
810
- #: ../lib/pdk/generate/module.rb:167
854
+ #: ../lib/pdk/generate/module.rb:177
811
855
  msgid "If you have a Puppet Forge username, add it here."
812
856
  msgstr ""
813
857
 
814
- #: ../lib/pdk/generate/module.rb:168
858
+ #: ../lib/pdk/generate/module.rb:178
815
859
  msgid "We can use this to upload your module to the Forge when it's complete."
816
860
  msgstr ""
817
861
 
818
- #: ../lib/pdk/generate/module.rb:171
862
+ #: ../lib/pdk/generate/module.rb:181
819
863
  msgid "Forge usernames can only contain lowercase letters and numbers"
820
864
  msgstr ""
821
865
 
822
- #: ../lib/pdk/generate/module.rb:176
866
+ #: ../lib/pdk/generate/module.rb:186
823
867
  msgid "What version is this module?"
824
868
  msgstr ""
825
869
 
826
- #: ../lib/pdk/generate/module.rb:177
870
+ #: ../lib/pdk/generate/module.rb:187
827
871
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
828
872
  msgstr ""
829
873
 
830
- #: ../lib/pdk/generate/module.rb:180
874
+ #: ../lib/pdk/generate/module.rb:190
831
875
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
832
876
  msgstr ""
833
877
 
834
- #: ../lib/pdk/generate/module.rb:186
878
+ #: ../lib/pdk/generate/module.rb:196
835
879
  msgid "Who wrote this module?"
836
880
  msgstr ""
837
881
 
838
- #: ../lib/pdk/generate/module.rb:187
882
+ #: ../lib/pdk/generate/module.rb:197
839
883
  msgid "This is used to credit the module's author."
840
884
  msgstr ""
841
885
 
842
- #: ../lib/pdk/generate/module.rb:193
886
+ #: ../lib/pdk/generate/module.rb:203
843
887
  msgid "What license does this module code fall under?"
844
888
  msgstr ""
845
889
 
846
- #: ../lib/pdk/generate/module.rb:194
890
+ #: ../lib/pdk/generate/module.rb:204
847
891
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
848
892
  msgstr ""
849
893
 
850
- #: ../lib/pdk/generate/module.rb:200
894
+ #: ../lib/pdk/generate/module.rb:210
851
895
  msgid "What operating systems does this module support?"
852
896
  msgstr ""
853
897
 
854
- #: ../lib/pdk/generate/module.rb:201
898
+ #: ../lib/pdk/generate/module.rb:211
855
899
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
856
900
  msgstr ""
857
901
 
858
- #: ../lib/pdk/generate/module.rb:212
902
+ #: ../lib/pdk/generate/module.rb:222
859
903
  msgid "Summarize the purpose of this module in a single sentence."
860
904
  msgstr ""
861
905
 
862
- #: ../lib/pdk/generate/module.rb:213
906
+ #: ../lib/pdk/generate/module.rb:223
863
907
  msgid "This helps other Puppet users understand what the module does."
864
908
  msgstr ""
865
909
 
866
- #: ../lib/pdk/generate/module.rb:220
910
+ #: ../lib/pdk/generate/module.rb:230
867
911
  msgid "If there is a source code repository for this module, enter the URL here."
868
912
  msgstr ""
869
913
 
870
- #: ../lib/pdk/generate/module.rb:221
914
+ #: ../lib/pdk/generate/module.rb:231
871
915
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
872
916
  msgstr ""
873
917
 
874
- #: ../lib/pdk/generate/module.rb:228
918
+ #: ../lib/pdk/generate/module.rb:238
875
919
  msgid "If there is a URL where others can learn more about this module, enter it here."
876
920
  msgstr ""
877
921
 
878
- #: ../lib/pdk/generate/module.rb:229 ../lib/pdk/generate/module.rb:236
922
+ #: ../lib/pdk/generate/module.rb:239 ../lib/pdk/generate/module.rb:246
879
923
  msgid "Optional. You can update this later in the metadata.json."
880
924
  msgstr ""
881
925
 
882
- #: ../lib/pdk/generate/module.rb:235
926
+ #: ../lib/pdk/generate/module.rb:245
883
927
  msgid "If there is a public issue tracker for this module, enter its URL here."
884
928
  msgstr ""
885
929
 
886
- #: ../lib/pdk/generate/module.rb:263
930
+ #: ../lib/pdk/generate/module.rb:273
887
931
  msgid ""
888
932
  "\n"
889
933
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
890
934
  msgstr ""
891
935
 
892
- #: ../lib/pdk/generate/module.rb:270
936
+ #: ../lib/pdk/generate/module.rb:280
893
937
  msgid ""
894
938
  "\n"
895
939
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
896
940
  msgstr ""
897
941
 
898
- #: ../lib/pdk/generate/module.rb:278
942
+ #: ../lib/pdk/generate/module.rb:288
899
943
  msgid ""
900
944
  "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"
901
945
  "\n"
902
946
  msgstr ""
903
947
 
904
- #: ../lib/pdk/generate/module.rb:287
948
+ #: ../lib/pdk/generate/module.rb:297
905
949
  msgid "No answers given, interview cancelled."
906
950
  msgstr ""
907
951
 
908
- #: ../lib/pdk/generate/module.rb:311
952
+ #: ../lib/pdk/generate/module.rb:323
909
953
  msgid "Metadata will be generated based on this information, continue?"
910
954
  msgstr ""
911
955
 
912
- #: ../lib/pdk/generate/module.rb:313
956
+ #: ../lib/pdk/generate/module.rb:325
913
957
  msgid "Interview cancelled; exiting."
914
958
  msgstr ""
915
959
 
916
- #: ../lib/pdk/generate/module.rb:317
960
+ #: ../lib/pdk/generate/module.rb:329
917
961
  msgid "Process cancelled; exiting."
918
962
  msgstr ""
919
963
 
@@ -957,38 +1001,34 @@ msgstr ""
957
1001
  msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
958
1002
  msgstr ""
959
1003
 
960
- #: ../lib/pdk/generate/puppet_object.rb:147
1004
+ #: ../lib/pdk/generate/puppet_object.rb:140
961
1005
  msgid "Unable to generate %{object_type}; '%{file}' already exists."
962
1006
  msgstr ""
963
1007
 
964
- #: ../lib/pdk/generate/puppet_object.rb:214
1008
+ #: ../lib/pdk/generate/puppet_object.rb:224
965
1009
  msgid "Creating '%{file}' from template."
966
1010
  msgstr ""
967
1011
 
968
- #: ../lib/pdk/generate/puppet_object.rb:221
1012
+ #: ../lib/pdk/generate/puppet_object.rb:231
969
1013
  msgid "Unable to create directory '%{path}': %{message}"
970
1014
  msgstr ""
971
1015
 
972
- #: ../lib/pdk/generate/puppet_object.rb:229
1016
+ #: ../lib/pdk/generate/puppet_object.rb:239
973
1017
  msgid "Unable to write to file '%{path}': %{message}"
974
1018
  msgstr ""
975
1019
 
976
- #: ../lib/pdk/generate/puppet_object.rb:252
1020
+ #: ../lib/pdk/generate/puppet_object.rb:266
977
1021
  msgid "No %{dir_type} template found; trying next template directory."
978
1022
  msgstr ""
979
1023
 
980
- #: ../lib/pdk/generate/puppet_object.rb:265
1024
+ #: ../lib/pdk/generate/puppet_object.rb:279
981
1025
  msgid "Unable to find a %{type} template in %{url}; trying next template directory."
982
1026
  msgstr ""
983
1027
 
984
- #: ../lib/pdk/generate/puppet_object.rb:267
1028
+ #: ../lib/pdk/generate/puppet_object.rb:281
985
1029
  msgid "Unable to find the %{type} template in %{url}."
986
1030
  msgstr ""
987
1031
 
988
- #: ../lib/pdk/generate/puppet_object.rb:322
989
- msgid "'%{dir}' does not contain valid Puppet module metadata: %{msg}"
990
- msgstr ""
991
-
992
1032
  #: ../lib/pdk/generate/task.rb:54
993
1033
  msgid "A task named '%{name}' already exists in this module; defined in %{file}"
994
1034
  msgstr ""
@@ -997,23 +1037,23 @@ msgstr ""
997
1037
  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."
998
1038
  msgstr ""
999
1039
 
1000
- #: ../lib/pdk/module/build.rb:127
1040
+ #: ../lib/pdk/module/build.rb:130
1001
1041
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1002
1042
  msgstr ""
1003
1043
 
1004
- #: ../lib/pdk/module/build.rb:155
1044
+ #: ../lib/pdk/module/build.rb:160
1005
1045
  msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
1006
1046
  msgstr ""
1007
1047
 
1008
- #: ../lib/pdk/module/build.rb:182
1048
+ #: ../lib/pdk/module/build.rb:187
1009
1049
  msgid "The path '%{path}' is longer than 256 bytes."
1010
1050
  msgstr ""
1011
1051
 
1012
- #: ../lib/pdk/module/build.rb:206
1052
+ #: ../lib/pdk/module/build.rb:211
1013
1053
  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."
1014
1054
  msgstr ""
1015
1055
 
1016
- #: ../lib/pdk/module/build.rb:237
1056
+ #: ../lib/pdk/module/build.rb:247
1017
1057
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1018
1058
  msgstr ""
1019
1059
 
@@ -1021,55 +1061,55 @@ msgstr ""
1021
1061
  msgid "No changes required."
1022
1062
  msgstr ""
1023
1063
 
1024
- #: ../lib/pdk/module/convert.rb:38
1064
+ #: ../lib/pdk/module/convert.rb:42
1025
1065
  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."
1026
1066
  msgstr ""
1027
1067
 
1028
- #: ../lib/pdk/module/convert.rb:43 ../lib/pdk/module/update.rb:32
1068
+ #: ../lib/pdk/module/convert.rb:47 ../lib/pdk/module/update.rb:32
1029
1069
  msgid "Do you want to continue and make these changes to your module?"
1030
1070
  msgstr ""
1031
1071
 
1032
- #: ../lib/pdk/module/convert.rb:90
1072
+ #: ../lib/pdk/module/convert.rb:133
1033
1073
  msgid "skipping '%{path}'"
1034
1074
  msgstr ""
1035
1075
 
1036
- #: ../lib/pdk/module/convert.rb:121
1076
+ #: ../lib/pdk/module/convert.rb:172
1037
1077
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1038
1078
  msgstr ""
1039
1079
 
1040
- #: ../lib/pdk/module/convert.rb:137
1080
+ #: ../lib/pdk/module/convert.rb:188
1041
1081
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1042
1082
  msgstr ""
1043
1083
 
1044
- #: ../lib/pdk/module/convert.rb:180 ../lib/pdk/module/convert.rb:185 ../lib/pdk/module/convert.rb:189
1084
+ #: ../lib/pdk/module/convert.rb:233 ../lib/pdk/module/convert.rb:238 ../lib/pdk/module/convert.rb:244
1045
1085
  msgid ""
1046
1086
  "\n"
1047
1087
  "%{banner}"
1048
1088
  msgstr ""
1049
1089
 
1050
- #: ../lib/pdk/module/convert.rb:191
1090
+ #: ../lib/pdk/module/convert.rb:246
1051
1091
  msgid ""
1052
1092
  "\n"
1053
1093
  "%{summary}\n"
1054
1094
  "\n"
1055
1095
  msgstr ""
1056
1096
 
1057
- #: ../lib/pdk/module/convert.rb:202
1097
+ #: ../lib/pdk/module/convert.rb:259
1058
1098
  msgid ""
1059
1099
  "\n"
1060
1100
  "You can find a report of differences in %{path}.\n"
1061
1101
  "\n"
1062
1102
  msgstr ""
1063
1103
 
1064
- #: ../lib/pdk/module/metadata.rb:94
1104
+ #: ../lib/pdk/module/metadata.rb:93
1065
1105
  msgid "Cannot read metadata from file: no path to file was given."
1066
1106
  msgstr ""
1067
1107
 
1068
- #: ../lib/pdk/module/metadata.rb:98
1108
+ #: ../lib/pdk/module/metadata.rb:97
1069
1109
  msgid "'%{file}' does not exist or is not a file."
1070
1110
  msgstr ""
1071
1111
 
1072
- #: ../lib/pdk/module/metadata.rb:102
1112
+ #: ../lib/pdk/module/metadata.rb:101
1073
1113
  msgid "Unable to open '%{file}' for reading."
1074
1114
  msgstr ""
1075
1115
 
@@ -1077,93 +1117,93 @@ msgstr ""
1077
1117
  msgid "Invalid JSON in metadata.json: %{msg}"
1078
1118
  msgstr ""
1079
1119
 
1080
- #: ../lib/pdk/module/metadata.rb:140
1120
+ #: ../lib/pdk/module/metadata.rb:144
1081
1121
  msgid "Module metadata does not contain any requirements."
1082
1122
  msgstr ""
1083
1123
 
1084
- #: ../lib/pdk/module/metadata.rb:141
1124
+ #: ../lib/pdk/module/metadata.rb:145
1085
1125
  msgid "Module metadata does not contain a \"puppet\" requirement."
1086
1126
  msgstr ""
1087
1127
 
1088
- #: ../lib/pdk/module/metadata.rb:142
1128
+ #: ../lib/pdk/module/metadata.rb:146
1089
1129
  msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
1090
1130
  msgstr ""
1091
1131
 
1092
- #: ../lib/pdk/module/metadata.rb:182
1132
+ #: ../lib/pdk/module/metadata.rb:186
1093
1133
  msgid "Field must be a dash-separated user name and module name."
1094
1134
  msgstr ""
1095
1135
 
1096
- #: ../lib/pdk/module/metadata.rb:184
1136
+ #: ../lib/pdk/module/metadata.rb:188
1097
1137
  msgid "Module name must contain only alphanumeric or underscore characters."
1098
1138
  msgstr ""
1099
1139
 
1100
- #: ../lib/pdk/module/metadata.rb:186
1140
+ #: ../lib/pdk/module/metadata.rb:190
1101
1141
  msgid "Module name must begin with a letter."
1102
1142
  msgstr ""
1103
1143
 
1104
- #: ../lib/pdk/module/metadata.rb:188
1144
+ #: ../lib/pdk/module/metadata.rb:192
1105
1145
  msgid "Namespace must contain only alphanumeric characters."
1106
1146
  msgstr ""
1107
1147
 
1108
- #: ../lib/pdk/module/metadata.rb:191
1148
+ #: ../lib/pdk/module/metadata.rb:195
1109
1149
  msgid "Invalid 'name' field in metadata.json: %{err}"
1110
1150
  msgstr ""
1111
1151
 
1112
- #: ../lib/pdk/module/templatedir.rb:43
1152
+ #: ../lib/pdk/module/templatedir.rb:40
1113
1153
  msgid "%{class_name} must be initialized with a block."
1114
1154
  msgstr ""
1115
1155
 
1116
- #: ../lib/pdk/module/templatedir.rb:46
1156
+ #: ../lib/pdk/module/templatedir.rb:43
1117
1157
  msgid "PDK::Module::TemplateDir.new must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1118
1158
  msgstr ""
1119
1159
 
1120
- #: ../lib/pdk/module/templatedir.rb:60
1160
+ #: ../lib/pdk/module/templatedir.rb:57
1121
1161
  msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1122
1162
  msgstr ""
1123
1163
 
1124
- #: ../lib/pdk/module/templatedir.rb:122
1164
+ #: ../lib/pdk/module/templatedir.rb:124
1125
1165
  msgid "Rendering '%{template}'..."
1126
1166
  msgstr ""
1127
1167
 
1128
- #: ../lib/pdk/module/templatedir.rb:140
1168
+ #: ../lib/pdk/module/templatedir.rb:142
1129
1169
  msgid ""
1130
1170
  "Failed to render template '%{template}'\n"
1131
1171
  "%{exception}: %{message}"
1132
1172
  msgstr ""
1133
1173
 
1134
- #: ../lib/pdk/module/templatedir.rb:211
1174
+ #: ../lib/pdk/module/templatedir.rb:215
1135
1175
  msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1136
1176
  msgstr ""
1137
1177
 
1138
- #: ../lib/pdk/module/templatedir.rb:213
1178
+ #: ../lib/pdk/module/templatedir.rb:217
1139
1179
  msgid "The specified template '%{path}' is not a directory."
1140
1180
  msgstr ""
1141
1181
 
1142
- #: ../lib/pdk/module/templatedir.rb:218
1182
+ #: ../lib/pdk/module/templatedir.rb:222
1143
1183
  msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1144
1184
  msgstr ""
1145
1185
 
1146
- #: ../lib/pdk/module/templatedir.rb:223
1186
+ #: ../lib/pdk/module/templatedir.rb:227
1147
1187
  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."
1148
1188
  msgstr ""
1149
1189
 
1150
- #: ../lib/pdk/module/templatedir.rb:239
1190
+ #: ../lib/pdk/module/templatedir.rb:243
1151
1191
  msgid "The directory '%{dir}' doesn't exist"
1152
1192
  msgstr ""
1153
1193
 
1154
- #: ../lib/pdk/module/templatedir.rb:308
1194
+ #: ../lib/pdk/module/templatedir.rb:318
1155
1195
  msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1156
1196
  msgstr ""
1157
1197
 
1158
- #: ../lib/pdk/module/templatedir.rb:343
1198
+ #: ../lib/pdk/module/templatedir.rb:356
1159
1199
  msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1160
1200
  msgstr ""
1161
1201
 
1162
- #: ../lib/pdk/module/templatedir.rb:360
1202
+ #: ../lib/pdk/module/templatedir.rb:375
1163
1203
  msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1164
1204
  msgstr ""
1165
1205
 
1166
- #: ../lib/pdk/module/templatedir.rb:363
1206
+ #: ../lib/pdk/module/templatedir.rb:378
1167
1207
  msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1168
1208
  msgstr ""
1169
1209
 
@@ -1171,79 +1211,79 @@ msgstr ""
1171
1211
  msgid "This module is already up to date with version %{version} of the template."
1172
1212
  msgstr ""
1173
1213
 
1174
- #: ../lib/pdk/module/update.rb:105
1214
+ #: ../lib/pdk/module/update.rb:109
1175
1215
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1176
1216
  msgstr ""
1177
1217
 
1178
- #: ../lib/pdk/module/update.rb:107
1218
+ #: ../lib/pdk/module/update.rb:111
1179
1219
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1180
1220
  msgstr ""
1181
1221
 
1182
- #: ../lib/pdk/module/update_manager.rb:110
1222
+ #: ../lib/pdk/module/update_manager.rb:109
1183
1223
  msgid "unlinking '%{path}'"
1184
1224
  msgstr ""
1185
1225
 
1186
- #: ../lib/pdk/module/update_manager.rb:113
1226
+ #: ../lib/pdk/module/update_manager.rb:112
1187
1227
  msgid "'%{path}': already gone"
1188
1228
  msgstr ""
1189
1229
 
1190
- #: ../lib/pdk/module/update_manager.rb:116
1230
+ #: ../lib/pdk/module/update_manager.rb:115
1191
1231
  msgid "Unable to remove '%{path}': %{message}"
1192
1232
  msgstr ""
1193
1233
 
1194
- #: ../lib/pdk/module/update_manager.rb:134
1234
+ #: ../lib/pdk/module/update_manager.rb:135
1195
1235
  msgid "Unable to open '%{path}' for reading"
1196
1236
  msgstr ""
1197
1237
 
1198
- #: ../lib/pdk/module/update_manager.rb:151
1238
+ #: ../lib/pdk/module/update_manager.rb:154
1199
1239
  msgid "writing '%{path}'"
1200
1240
  msgstr ""
1201
1241
 
1202
- #: ../lib/pdk/module/update_manager.rb:154
1242
+ #: ../lib/pdk/module/update_manager.rb:157
1203
1243
  msgid "You do not have permission to write to '%{path}'"
1204
1244
  msgstr ""
1205
1245
 
1206
- #: ../lib/pdk/report/event.rb:191
1246
+ #: ../lib/pdk/report/event.rb:190
1207
1247
  msgid "File not specified."
1208
1248
  msgstr ""
1209
1249
 
1210
- #: ../lib/pdk/report/event.rb:195
1250
+ #: ../lib/pdk/report/event.rb:194
1211
1251
  msgid "File must be a String."
1212
1252
  msgstr ""
1213
1253
 
1214
- #: ../lib/pdk/report/event.rb:228
1254
+ #: ../lib/pdk/report/event.rb:230
1215
1255
  msgid "State not specified."
1216
1256
  msgstr ""
1217
1257
 
1218
- #: ../lib/pdk/report/event.rb:233
1258
+ #: ../lib/pdk/report/event.rb:235
1219
1259
  msgid "State must be a Symbol, not %{type}"
1220
1260
  msgstr ""
1221
1261
 
1222
- #: ../lib/pdk/report/event.rb:238
1262
+ #: ../lib/pdk/report/event.rb:240
1223
1263
  msgid "Invalid state %{state}. Valid states are: %{valid}."
1224
1264
  msgstr ""
1225
1265
 
1226
- #: ../lib/pdk/report/event.rb:257
1266
+ #: ../lib/pdk/report/event.rb:259
1227
1267
  msgid "Source not specified."
1228
1268
  msgstr ""
1229
1269
 
1230
- #: ../lib/pdk/report/event.rb:278
1270
+ #: ../lib/pdk/report/event.rb:280
1231
1271
  msgid "Line must be an Integer or a String representation of an Integer."
1232
1272
  msgstr ""
1233
1273
 
1234
- #: ../lib/pdk/report/event.rb:282
1274
+ #: ../lib/pdk/report/event.rb:284
1235
1275
  msgid "The line number can contain only the digits 0-9."
1236
1276
  msgstr ""
1237
1277
 
1238
- #: ../lib/pdk/report/event.rb:303
1278
+ #: ../lib/pdk/report/event.rb:305
1239
1279
  msgid "Column must be an Integer or a String representation of an Integer."
1240
1280
  msgstr ""
1241
1281
 
1242
- #: ../lib/pdk/report/event.rb:307
1282
+ #: ../lib/pdk/report/event.rb:309
1243
1283
  msgid "The column number can contain only the digits 0-9."
1244
1284
  msgstr ""
1245
1285
 
1246
- #: ../lib/pdk/report/event.rb:325
1286
+ #: ../lib/pdk/report/event.rb:327
1247
1287
  msgid "Trace must be an Array of stack trace lines."
1248
1288
  msgstr ""
1249
1289
 
@@ -1251,117 +1291,117 @@ msgstr ""
1251
1291
  msgid "'%{template}' is not a readable file"
1252
1292
  msgstr ""
1253
1293
 
1254
- #: ../lib/pdk/tests/unit.rb:47
1294
+ #: ../lib/pdk/tests/unit.rb:64
1255
1295
  msgid "Cleaning up after running unit tests."
1256
1296
  msgstr ""
1257
1297
 
1258
- #: ../lib/pdk/tests/unit.rb:51
1298
+ #: ../lib/pdk/tests/unit.rb:68
1259
1299
  msgid "The spec_clean rake task failed with the following error(s):"
1260
1300
  msgstr ""
1261
1301
 
1262
- #: ../lib/pdk/tests/unit.rb:52
1302
+ #: ../lib/pdk/tests/unit.rb:69
1263
1303
  msgid "Failed to clean up after running unit tests"
1264
1304
  msgstr ""
1265
1305
 
1266
- #: ../lib/pdk/tests/unit.rb:56
1306
+ #: ../lib/pdk/tests/unit.rb:73
1267
1307
  msgid "Preparing to run the unit tests."
1268
1308
  msgstr ""
1269
1309
 
1270
- #: ../lib/pdk/tests/unit.rb:62
1310
+ #: ../lib/pdk/tests/unit.rb:79
1271
1311
  msgid "The spec_prep rake task failed with the following error(s):"
1272
1312
  msgstr ""
1273
1313
 
1274
- #: ../lib/pdk/tests/unit.rb:63
1314
+ #: ../lib/pdk/tests/unit.rb:80
1275
1315
  msgid "Failed to prepare to run the unit tests."
1276
1316
  msgstr ""
1277
1317
 
1278
- #: ../lib/pdk/tests/unit.rb:75
1318
+ #: ../lib/pdk/tests/unit.rb:95
1279
1319
  msgid "Running unit tests in parallel."
1280
1320
  msgstr ""
1281
1321
 
1282
- #: ../lib/pdk/tests/unit.rb:75
1322
+ #: ../lib/pdk/tests/unit.rb:95
1283
1323
  msgid "Running unit tests."
1284
1324
  msgstr ""
1285
1325
 
1286
- #: ../lib/pdk/tests/unit.rb:89
1326
+ #: ../lib/pdk/tests/unit.rb:115
1287
1327
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1288
1328
  msgstr ""
1289
1329
 
1290
- #: ../lib/pdk/tests/unit.rb:141
1330
+ #: ../lib/pdk/tests/unit.rb:167
1291
1331
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1292
1332
  msgstr ""
1293
1333
 
1294
- #: ../lib/pdk/tests/unit.rb:192
1334
+ #: ../lib/pdk/tests/unit.rb:221
1295
1335
  msgid "Finding unit tests."
1296
1336
  msgstr ""
1297
1337
 
1298
- #: ../lib/pdk/tests/unit.rb:195
1338
+ #: ../lib/pdk/tests/unit.rb:224
1299
1339
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1300
1340
  msgstr ""
1301
1341
 
1302
- #: ../lib/pdk/tests/unit.rb:200
1342
+ #: ../lib/pdk/tests/unit.rb:229
1303
1343
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1304
1344
  msgstr ""
1305
1345
 
1306
- #: ../lib/pdk/util.rb:62
1346
+ #: ../lib/pdk/util.rb:59
1307
1347
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1308
1348
  msgstr ""
1309
1349
 
1310
- #: ../lib/pdk/util.rb:87
1350
+ #: ../lib/pdk/util.rb:88
1311
1351
  msgid "Package basedir requested for non-package install."
1312
1352
  msgstr ""
1313
1353
 
1314
- #: ../lib/pdk/util/bundler.rb:19
1354
+ #: ../lib/pdk/util/bundler.rb:15
1315
1355
  msgid "Bundler managed gems already up to date."
1316
1356
  msgstr ""
1317
1357
 
1318
- #: ../lib/pdk/util/bundler.rb:24
1358
+ #: ../lib/pdk/util/bundler.rb:20
1319
1359
  msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
1320
1360
  msgstr ""
1321
1361
 
1322
- #: ../lib/pdk/util/bundler.rb:97
1362
+ #: ../lib/pdk/util/bundler.rb:96
1323
1363
  msgid "Checking for missing Gemfile dependencies."
1324
1364
  msgstr ""
1325
1365
 
1326
- #: ../lib/pdk/util/bundler.rb:122
1366
+ #: ../lib/pdk/util/bundler.rb:125
1327
1367
  msgid "Vendored Gemfile.lock (%{source}) not found."
1328
1368
  msgstr ""
1329
1369
 
1330
- #: ../lib/pdk/util/bundler.rb:127
1370
+ #: ../lib/pdk/util/bundler.rb:130
1331
1371
  msgid "Using vendored Gemfile.lock from %{source}."
1332
1372
  msgstr ""
1333
1373
 
1334
- #: ../lib/pdk/util/bundler.rb:133
1374
+ #: ../lib/pdk/util/bundler.rb:136
1335
1375
  msgid "Resolving default Gemfile dependencies."
1336
1376
  msgstr ""
1337
1377
 
1338
- #: ../lib/pdk/util/bundler.rb:140
1378
+ #: ../lib/pdk/util/bundler.rb:143
1339
1379
  msgid "Unable to resolve default Gemfile dependencies."
1340
1380
  msgstr ""
1341
1381
 
1342
- #: ../lib/pdk/util/bundler.rb:153
1382
+ #: ../lib/pdk/util/bundler.rb:156
1343
1383
  msgid "Updating Gemfile dependencies."
1344
1384
  msgstr ""
1345
1385
 
1346
- #: ../lib/pdk/util/bundler.rb:181
1386
+ #: ../lib/pdk/util/bundler.rb:184
1347
1387
  msgid "Unable to resolve Gemfile dependencies."
1348
1388
  msgstr ""
1349
1389
 
1350
- #: ../lib/pdk/util/bundler.rb:192
1390
+ #: ../lib/pdk/util/bundler.rb:197
1351
1391
  msgid "Installing missing Gemfile dependencies."
1352
1392
  msgstr ""
1353
1393
 
1354
- #: ../lib/pdk/util/bundler.rb:200
1394
+ #: ../lib/pdk/util/bundler.rb:205
1355
1395
  msgid "Unable to install missing Gemfile dependencies."
1356
1396
  msgstr ""
1357
1397
 
1358
- #: ../lib/pdk/util/bundler.rb:214
1398
+ #: ../lib/pdk/util/bundler.rb:219
1359
1399
  msgid ""
1360
1400
  "Failed to generate binstubs for '%{gems}':\n"
1361
1401
  "%{output}"
1362
1402
  msgstr ""
1363
1403
 
1364
- #: ../lib/pdk/util/bundler.rb:215
1404
+ #: ../lib/pdk/util/bundler.rb:220
1365
1405
  msgid "Unable to install requested binstubs."
1366
1406
  msgstr ""
1367
1407
 
@@ -1369,19 +1409,19 @@ msgstr ""
1369
1409
  msgid "Git command failed: git %{args}"
1370
1410
  msgstr ""
1371
1411
 
1372
- #: ../lib/pdk/util/git.rb:84
1412
+ #: ../lib/pdk/util/git.rb:90
1373
1413
  msgid "Unable to locate git work dir \"%{workdir}\""
1374
1414
  msgstr ""
1375
1415
 
1376
- #: ../lib/pdk/util/git.rb:85
1416
+ #: ../lib/pdk/util/git.rb:91
1377
1417
  msgid "Unable to locate git dir \"%{gitdir}\""
1378
1418
  msgstr ""
1379
1419
 
1380
- #: ../lib/pdk/util/git.rb:100
1420
+ #: ../lib/pdk/util/git.rb:106
1381
1421
  msgid "Unable to access the template repository \"%{repository}\""
1382
1422
  msgstr ""
1383
1423
 
1384
- #: ../lib/pdk/util/git.rb:107
1424
+ #: ../lib/pdk/util/git.rb:113
1385
1425
  msgid "Unable to find a branch or tag named \"%{ref}\" in %{repo}"
1386
1426
  msgstr ""
1387
1427
 
@@ -1393,51 +1433,51 @@ msgstr ""
1393
1433
  msgid "Unable to parse puppet-strings output"
1394
1434
  msgstr ""
1395
1435
 
1396
- #: ../lib/pdk/util/puppet_version.rb:38
1436
+ #: ../lib/pdk/util/puppet_version.rb:39
1397
1437
  msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
1398
1438
  msgstr ""
1399
1439
 
1400
- #: ../lib/pdk/util/puppet_version.rb:59
1440
+ #: ../lib/pdk/util/puppet_version.rb:63
1401
1441
  msgid "Unable to clone git repository from '%{repo}'."
1402
1442
  msgstr ""
1403
1443
 
1404
- #: ../lib/pdk/util/puppet_version.rb:68
1444
+ #: ../lib/pdk/util/puppet_version.rb:72
1405
1445
  msgid "Unable to fetch from git remote at '%{repo}'."
1406
1446
  msgstr ""
1407
1447
 
1408
- #: ../lib/pdk/util/puppet_version.rb:77
1448
+ #: ../lib/pdk/util/puppet_version.rb:81
1409
1449
  msgid "Unable to update git repository at '%{cachedir}'."
1410
1450
  msgstr ""
1411
1451
 
1412
- #: ../lib/pdk/util/puppet_version.rb:98
1452
+ #: ../lib/pdk/util/puppet_version.rb:102
1413
1453
  msgid "Unable to find a Puppet gem matching %{requirement}."
1414
1454
  msgstr ""
1415
1455
 
1416
- #: ../lib/pdk/util/puppet_version.rb:105
1456
+ #: ../lib/pdk/util/puppet_version.rb:109
1417
1457
  msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
1418
1458
  msgstr ""
1419
1459
 
1420
- #: ../lib/pdk/util/puppet_version.rb:122
1460
+ #: ../lib/pdk/util/puppet_version.rb:126
1421
1461
  msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
1422
1462
  msgstr ""
1423
1463
 
1424
- #: ../lib/pdk/util/puppet_version.rb:127
1464
+ #: ../lib/pdk/util/puppet_version.rb:131
1425
1465
  msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
1426
1466
  msgstr ""
1427
1467
 
1428
- #: ../lib/pdk/util/puppet_version.rb:140
1468
+ #: ../lib/pdk/util/puppet_version.rb:147
1429
1469
  msgid "Unable to determine Puppet version for module: no metadata.json present in module."
1430
1470
  msgstr ""
1431
1471
 
1432
- #: ../lib/pdk/util/puppet_version.rb:166
1472
+ #: ../lib/pdk/util/puppet_version.rb:173
1433
1473
  msgid "%{version} is not a valid version number."
1434
1474
  msgstr ""
1435
1475
 
1436
- #: ../lib/pdk/util/puppet_version.rb:200
1476
+ #: ../lib/pdk/util/puppet_version.rb:209
1437
1477
  msgid "Failed to parse Puppet Enterprise version map file."
1438
1478
  msgstr ""
1439
1479
 
1440
- #: ../lib/pdk/util/ruby_version.rb:37
1480
+ #: ../lib/pdk/util/ruby_version.rb:36
1441
1481
  msgid "Unknown Ruby version \"%{ruby_version}\""
1442
1482
  msgstr ""
1443
1483
 
@@ -1445,43 +1485,43 @@ msgstr ""
1445
1485
  msgid "PDK::Util::TemplateURI attempted initialization with a non-uri string: {string}"
1446
1486
  msgstr ""
1447
1487
 
1448
- #: ../lib/pdk/util/template_uri.rb:155
1488
+ #: ../lib/pdk/util/template_uri.rb:165
1449
1489
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1450
1490
  msgstr ""
1451
1491
 
1452
- #: ../lib/pdk/util/template_uri.rb:202
1492
+ #: ../lib/pdk/util/template_uri.rb:216
1453
1493
  msgid "--template-url"
1454
1494
  msgstr ""
1455
1495
 
1456
- #: ../lib/pdk/util/template_uri.rb:203
1496
+ #: ../lib/pdk/util/template_uri.rb:217
1457
1497
  msgid "metadata.json"
1458
1498
  msgstr ""
1459
1499
 
1460
- #: ../lib/pdk/util/template_uri.rb:204
1500
+ #: ../lib/pdk/util/template_uri.rb:218
1461
1501
  msgid "PDK answers"
1462
1502
  msgstr ""
1463
1503
 
1464
- #: ../lib/pdk/util/template_uri.rb:205
1504
+ #: ../lib/pdk/util/template_uri.rb:219
1465
1505
  msgid "default"
1466
1506
  msgstr ""
1467
1507
 
1468
- #: ../lib/pdk/util/template_uri.rb:226
1508
+ #: ../lib/pdk/util/template_uri.rb:243
1469
1509
  msgid "Unable to find a valid module template to use."
1470
1510
  msgstr ""
1471
1511
 
1472
- #: ../lib/pdk/util/template_uri.rb:247
1512
+ #: ../lib/pdk/util/template_uri.rb:268
1473
1513
  msgid "Unable to find a valid template at %{uri}"
1474
1514
  msgstr ""
1475
1515
 
1476
- #: ../lib/pdk/util/vendored_file.rb:49
1516
+ #: ../lib/pdk/util/vendored_file.rb:48
1477
1517
  msgid "%{file_name} was not found in the cache, downloading it from %{url}."
1478
1518
  msgstr ""
1479
1519
 
1480
- #: ../lib/pdk/util/vendored_file.rb:64
1520
+ #: ../lib/pdk/util/vendored_file.rb:63
1481
1521
  msgid "Unable to download %{url}. %{code}: %{message}."
1482
1522
  msgstr ""
1483
1523
 
1484
- #: ../lib/pdk/util/vendored_file.rb:73
1524
+ #: ../lib/pdk/util/vendored_file.rb:72
1485
1525
  msgid "Unable to download %{url}. Check internet connectivity and try again. %{error}"
1486
1526
  msgstr ""
1487
1527
 
@@ -1493,79 +1533,79 @@ msgstr ""
1493
1533
  msgid "Failed to call GetLongPathName"
1494
1534
  msgstr ""
1495
1535
 
1496
- #: ../lib/pdk/validate/base_validator.rb:105
1536
+ #: ../lib/pdk/validate/base_validator.rb:103
1497
1537
  msgid "Invoking %{cmd}"
1498
1538
  msgstr ""
1499
1539
 
1500
- #: ../lib/pdk/validate/base_validator.rb:110
1540
+ #: ../lib/pdk/validate/base_validator.rb:108
1501
1541
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1502
1542
  msgstr ""
1503
1543
 
1504
- #: ../lib/pdk/validate/base_validator.rb:114
1544
+ #: ../lib/pdk/validate/base_validator.rb:112
1505
1545
  msgid "Target does not contain any files to validate (%{pattern})."
1506
1546
  msgstr ""
1507
1547
 
1508
- #: ../lib/pdk/validate/base_validator.rb:123
1548
+ #: ../lib/pdk/validate/base_validator.rb:121
1509
1549
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1510
1550
  msgstr ""
1511
1551
 
1512
- #: ../lib/pdk/validate/base_validator.rb:127
1552
+ #: ../lib/pdk/validate/base_validator.rb:125
1513
1553
  msgid "File does not exist."
1514
1554
  msgstr ""
1515
1555
 
1516
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:23
1556
+ #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:19
1517
1557
  msgid "Checking module metadata style (%{targets})."
1518
1558
  msgstr ""
1519
1559
 
1520
- #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:40
1560
+ #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:36
1521
1561
  msgid "More than 1 target provided to PDK::Validate::MetadataJSONLint."
1522
1562
  msgstr ""
1523
1563
 
1524
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:18
1564
+ #: ../lib/pdk/validate/metadata/metadata_syntax.rb:15
1525
1565
  msgid "Checking metadata syntax (%{targets})."
1526
1566
  msgstr ""
1527
1567
 
1528
- #: ../lib/pdk/validate/metadata/metadata_syntax.rb:69 ../lib/pdk/validate/tasks/metadata_lint.rb:77 ../lib/pdk/validate/yaml/syntax.rb:76
1568
+ #: ../lib/pdk/validate/metadata/metadata_syntax.rb:71 ../lib/pdk/validate/tasks/metadata_lint.rb:81 ../lib/pdk/validate/yaml/syntax.rb:76
1529
1569
  msgid "Could not be read."
1530
1570
  msgstr ""
1531
1571
 
1532
- #: ../lib/pdk/validate/puppet/puppet_epp.rb:47
1572
+ #: ../lib/pdk/validate/puppet/puppet_epp.rb:43
1533
1573
  msgid "Checking Puppet EPP syntax (%{pattern})."
1534
1574
  msgstr ""
1535
1575
 
1536
- #: ../lib/pdk/validate/puppet/puppet_lint.rb:22
1576
+ #: ../lib/pdk/validate/puppet/puppet_lint.rb:19
1537
1577
  msgid "Checking Puppet manifest style (%{pattern})."
1538
1578
  msgstr ""
1539
1579
 
1540
- #: ../lib/pdk/validate/puppet/puppet_syntax.rb:47
1580
+ #: ../lib/pdk/validate/puppet/puppet_syntax.rb:43
1541
1581
  msgid "Checking Puppet manifest syntax (%{pattern})."
1542
1582
  msgstr ""
1543
1583
 
1544
- #: ../lib/pdk/validate/ruby/rubocop.rb:26
1584
+ #: ../lib/pdk/validate/ruby/rubocop.rb:21
1545
1585
  msgid "Checking Ruby code style (%{pattern})."
1546
1586
  msgstr ""
1547
1587
 
1548
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:23
1588
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:18
1549
1589
  msgid "Checking task metadata style (%{targets})."
1550
1590
  msgstr ""
1551
1591
 
1552
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:56
1592
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:58
1553
1593
  msgid "Failed to parse Task Metadata Schema file."
1554
1594
  msgstr ""
1555
1595
 
1556
- #: ../lib/pdk/validate/tasks/metadata_lint.rb:92
1596
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:96
1557
1597
  msgid "Unable to validate Task Metadata. %{error}."
1558
1598
  msgstr ""
1559
1599
 
1560
- #: ../lib/pdk/validate/tasks/name.rb:9
1600
+ #: ../lib/pdk/validate/tasks/name.rb:7
1561
1601
  msgid "Invalid task name. Task names must start with a lowercase letter and can only contain lowercase letters, numbers, and underscores."
1562
1602
  msgstr ""
1563
1603
 
1564
- #: ../lib/pdk/validate/tasks/name.rb:23
1604
+ #: ../lib/pdk/validate/tasks/name.rb:21
1565
1605
  msgid "Checking task names (%{targets})."
1566
1606
  msgstr ""
1567
1607
 
1568
- #: ../lib/pdk/validate/yaml/syntax.rb:28
1608
+ #: ../lib/pdk/validate/yaml/syntax.rb:24
1569
1609
  msgid "Checking YAML syntax (%{targets})."
1570
1610
  msgstr ""
1571
1611