pdk 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/lib/pdk.rb +63 -8
  4. data/lib/pdk/analytics.rb +14 -28
  5. data/lib/pdk/analytics/client/google_analytics.rb +2 -0
  6. data/lib/pdk/analytics/client/noop.rb +2 -0
  7. data/lib/pdk/analytics/util.rb +2 -0
  8. data/lib/pdk/answer_file.rb +2 -21
  9. data/lib/pdk/cli.rb +25 -13
  10. data/lib/pdk/cli/errors.rb +2 -0
  11. data/lib/pdk/cli/exec.rb +5 -0
  12. data/lib/pdk/cli/exec/command.rb +10 -6
  13. data/lib/pdk/cli/exec/interactive_command.rb +1 -1
  14. data/lib/pdk/cli/exec_group.rb +2 -0
  15. data/lib/pdk/cli/module/generate.rb +1 -1
  16. data/lib/pdk/cli/new/module.rb +8 -1
  17. data/lib/pdk/cli/new/test.rb +0 -1
  18. data/lib/pdk/cli/test/unit.rb +0 -3
  19. data/lib/pdk/cli/util.rb +24 -13
  20. data/lib/pdk/cli/util/command_redirector.rb +3 -2
  21. data/lib/pdk/cli/util/interview.rb +2 -1
  22. data/lib/pdk/cli/util/option_normalizer.rb +2 -0
  23. data/lib/pdk/cli/util/option_validator.rb +2 -0
  24. data/lib/pdk/cli/validate.rb +0 -1
  25. data/lib/pdk/config.rb +19 -13
  26. data/lib/pdk/config/json.rb +1 -1
  27. data/lib/pdk/config/json_schema_namespace.rb +3 -4
  28. data/lib/pdk/config/json_schema_setting.rb +1 -1
  29. data/lib/pdk/config/json_with_schema.rb +1 -2
  30. data/lib/pdk/config/namespace.rb +2 -0
  31. data/lib/pdk/config/setting.rb +2 -0
  32. data/lib/pdk/config/validator.rb +31 -0
  33. data/lib/pdk/config/yaml.rb +1 -2
  34. data/lib/pdk/config/yaml_with_schema.rb +1 -1
  35. data/lib/pdk/generate.rb +19 -13
  36. data/lib/pdk/generate/defined_type.rb +1 -1
  37. data/lib/pdk/generate/module.rb +1 -1
  38. data/lib/pdk/generate/provider.rb +2 -2
  39. data/lib/pdk/generate/puppet_class.rb +1 -1
  40. data/lib/pdk/generate/puppet_object.rb +2 -0
  41. data/lib/pdk/generate/task.rb +1 -1
  42. data/lib/pdk/generate/transport.rb +1 -1
  43. data/lib/pdk/logger.rb +1 -4
  44. data/lib/pdk/module.rb +7 -0
  45. data/lib/pdk/module/build.rb +2 -0
  46. data/lib/pdk/module/convert.rb +2 -0
  47. data/lib/pdk/module/metadata.rb +2 -1
  48. data/lib/pdk/module/templatedir.rb +2 -0
  49. data/lib/pdk/module/update.rb +1 -1
  50. data/lib/pdk/module/update_manager.rb +2 -0
  51. data/lib/pdk/report.rb +3 -1
  52. data/lib/pdk/report/event.rb +2 -0
  53. data/lib/pdk/template_file.rb +1 -0
  54. data/lib/pdk/tests/unit.rb +8 -3
  55. data/lib/pdk/util.rb +25 -7
  56. data/lib/pdk/util/bundler.rb +2 -0
  57. data/lib/pdk/util/env.rb +30 -0
  58. data/lib/pdk/util/filesystem.rb +4 -1
  59. data/lib/pdk/util/git.rb +3 -1
  60. data/lib/pdk/util/puppet_strings.rb +4 -2
  61. data/lib/pdk/util/puppet_version.rb +11 -1
  62. data/lib/pdk/util/ruby_version.rb +1 -0
  63. data/lib/pdk/util/template_uri.rb +2 -0
  64. data/lib/pdk/util/vendored_file.rb +2 -0
  65. data/lib/pdk/util/version.rb +2 -0
  66. data/lib/pdk/util/windows.rb +1 -0
  67. data/lib/pdk/util/windows/api_types.rb +32 -0
  68. data/lib/pdk/util/windows/process.rb +79 -0
  69. data/lib/pdk/validate.rb +24 -5
  70. data/lib/pdk/validate/base_validator.rb +2 -0
  71. data/lib/pdk/validate/metadata/metadata_json_lint.rb +1 -1
  72. data/lib/pdk/validate/metadata/metadata_syntax.rb +1 -1
  73. data/lib/pdk/validate/metadata_validator.rb +1 -3
  74. data/lib/pdk/validate/puppet/puppet_epp.rb +2 -2
  75. data/lib/pdk/validate/puppet/puppet_lint.rb +1 -1
  76. data/lib/pdk/validate/puppet/puppet_syntax.rb +2 -2
  77. data/lib/pdk/validate/puppet_validator.rb +1 -4
  78. data/lib/pdk/validate/ruby/rubocop.rb +1 -1
  79. data/lib/pdk/validate/ruby_validator.rb +1 -2
  80. data/lib/pdk/validate/tasks/metadata_lint.rb +1 -1
  81. data/lib/pdk/validate/tasks/name.rb +1 -1
  82. data/lib/pdk/validate/tasks_validator.rb +1 -3
  83. data/lib/pdk/validate/yaml/syntax.rb +1 -1
  84. data/lib/pdk/validate/yaml_validator.rb +1 -2
  85. data/lib/pdk/version.rb +1 -1
  86. data/locales/pdk.pot +243 -207
  87. metadata +7 -4
@@ -1,11 +1,30 @@
1
- require 'pdk/validate/metadata_validator'
2
- require 'pdk/validate/puppet_validator'
3
- require 'pdk/validate/ruby_validator'
4
- require 'pdk/validate/tasks_validator'
5
- require 'pdk/validate/yaml_validator'
1
+ require 'pdk'
6
2
 
7
3
  module PDK
8
4
  module Validate
5
+ # TODO: Fix validator namespacing
6
+ autoload :BaseValidator, 'pdk/validate/base_validator'
7
+ autoload :MetadataJSONLint, 'pdk/validate/metadata/metadata_json_lint'
8
+ autoload :MetadataSyntax, 'pdk/validate/metadata/metadata_syntax'
9
+ autoload :MetadataValidator, 'pdk/validate/metadata_validator'
10
+ autoload :PuppetEPP, 'pdk/validate/puppet/puppet_epp'
11
+ autoload :PuppetLint, 'pdk/validate/puppet/puppet_lint'
12
+ autoload :PuppetSyntax, 'pdk/validate/puppet/puppet_syntax'
13
+ autoload :PuppetValidator, 'pdk/validate/puppet_validator'
14
+ autoload :Rubocop, 'pdk/validate/ruby/rubocop'
15
+ autoload :RubyValidator, 'pdk/validate/ruby_validator'
16
+ autoload :TasksValidator, 'pdk/validate/tasks_validator'
17
+ autoload :YAMLValidator, 'pdk/validate/yaml_validator'
18
+
19
+ class Tasks
20
+ autoload :Name, 'pdk/validate/tasks/name'
21
+ autoload :MetadataLint, 'pdk/validate/tasks/metadata_lint'
22
+ end
23
+
24
+ class YAML
25
+ autoload :Syntax, 'pdk/validate/yaml/syntax'
26
+ end
27
+
9
28
  def self.validators
10
29
  @validators ||= [
11
30
  MetadataValidator,
@@ -1,3 +1,5 @@
1
+ require 'pdk'
2
+
1
3
  module PDK
2
4
  module Validate
3
5
  class BaseValidator
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,6 +1,4 @@
1
- require 'pdk/validate/base_validator'
2
- require 'pdk/validate/metadata/metadata_json_lint'
3
- require 'pdk/validate/metadata/metadata_syntax'
1
+ require 'pdk'
4
2
 
5
3
  module PDK
6
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -81,7 +81,7 @@ module PDK
81
81
  def self.parse_output(report, result, targets)
82
82
  # Due to PUP-7504, we will have to programmatically construct the json
83
83
  # object from the text output for now.
84
- output = result[:stderr].split("\n").reject { |entry| entry.empty? }
84
+ output = result[:stderr].split(%r{\r?\n}).reject { |entry| entry.empty? }
85
85
 
86
86
  results_data = []
87
87
  output.each do |offense|
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -81,7 +81,7 @@ module PDK
81
81
  def self.parse_output(report, result, targets)
82
82
  # Due to PUP-7504, we will have to programmatically construct the json
83
83
  # object from the text output for now.
84
- output = result[:stderr].split("\n").reject { |entry| entry.empty? }
84
+ output = result[:stderr].split(%r{\r?\n}).reject { |entry| entry.empty? }
85
85
 
86
86
  results_data = []
87
87
  output.each do |offense|
@@ -1,7 +1,4 @@
1
- require 'pdk/validate/base_validator'
2
- require 'pdk/validate/puppet/puppet_lint'
3
- require 'pdk/validate/puppet/puppet_syntax'
4
- require 'pdk/validate/puppet/puppet_epp'
1
+ require 'pdk'
5
2
 
6
3
  module PDK
7
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,5 +1,4 @@
1
- require 'pdk/validate/base_validator'
2
- require 'pdk/validate/ruby/rubocop'
1
+ require 'pdk'
3
2
 
4
3
  module PDK
5
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,6 +1,4 @@
1
- require 'pdk/validate/base_validator'
2
- require 'pdk/validate/tasks/metadata_lint'
3
- require 'pdk/validate/tasks/name'
1
+ require 'pdk'
4
2
 
5
3
  module PDK
6
4
  module Validate
@@ -1,4 +1,4 @@
1
- require 'pdk/validate/base_validator'
1
+ require 'pdk'
2
2
 
3
3
  module PDK
4
4
  module Validate
@@ -1,5 +1,4 @@
1
- require 'pdk/validate/base_validator'
2
- require 'pdk/validate/yaml/syntax'
1
+ require 'pdk'
3
2
 
4
3
  module PDK
5
4
  module Validate
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.14.0'.freeze
2
+ VERSION = '1.14.1'.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.13.0-68-g46cd813\n"
9
+ "Project-Id-Version: puppet development kit v1.14.0-110-gcedef59\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2019-10-09 14:07+1100\n"
13
- "PO-Revision-Date: 2019-10-09 14:07+1100\n"
12
+ "POT-Creation-Date: 2019-11-01 11:14+1100\n"
13
+ "PO-Revision-Date: 2019-11-01 11:14+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,87 +19,91 @@ 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:43 ../lib/pdk/analytics/client/google_analytics.rb:58
22
+ #: ../lib/pdk/analytics/client/google_analytics.rb:45 ../lib/pdk/analytics/client/google_analytics.rb:60
23
23
  msgid "Unknown analytics key '%{key}'"
24
24
  msgstr ""
25
25
 
26
- #: ../lib/pdk/answer_file.rb:58
26
+ #: ../lib/pdk/answer_file.rb:43
27
27
  msgid "Answer file can be updated only with a Hash"
28
28
  msgstr ""
29
29
 
30
- #: ../lib/pdk/answer_file.rb:87
30
+ #: ../lib/pdk/answer_file.rb:70
31
31
  msgid "Unable to open '%{file}' for reading"
32
32
  msgstr ""
33
33
 
34
- #: ../lib/pdk/answer_file.rb:96
34
+ #: ../lib/pdk/answer_file.rb:79
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:102
38
+ #: ../lib/pdk/answer_file.rb:85
39
39
  msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
40
40
  msgstr ""
41
41
 
42
- #: ../lib/pdk/answer_file.rb:118
42
+ #: ../lib/pdk/answer_file.rb:99
43
43
  msgid "Unable to write '%{file}': %{msg}"
44
44
  msgstr ""
45
45
 
46
- #: ../lib/pdk/cli.rb:82
46
+ #: ../lib/pdk/cli.rb:56
47
+ 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
+ msgstr ""
49
+
50
+ #: ../lib/pdk/cli.rb:94
47
51
  msgid "Specifies the URL to the template to use when creating new modules or classes. (default: %{default_url})"
48
52
  msgstr ""
49
53
 
50
- #: ../lib/pdk/cli.rb:88
54
+ #: ../lib/pdk/cli.rb:100
51
55
  msgid "Specifies the template git branch or tag to use when creating new modules or classes."
52
56
  msgstr ""
53
57
 
54
- #: ../lib/pdk/cli.rb:92
58
+ #: ../lib/pdk/cli.rb:104
55
59
  msgid "When specified, skips interactive querying of metadata."
56
60
  msgstr ""
57
61
 
58
- #: ../lib/pdk/cli.rb:96
62
+ #: ../lib/pdk/cli.rb:108
59
63
  msgid "When specified, interactive querying of metadata will include all optional questions."
60
64
  msgstr ""
61
65
 
62
- #: ../lib/pdk/cli.rb:100
66
+ #: ../lib/pdk/cli.rb:112
63
67
  msgid "Puppet version to run tests or validations against."
64
68
  msgstr ""
65
69
 
66
- #: ../lib/pdk/cli.rb:101
70
+ #: ../lib/pdk/cli.rb:113
67
71
  msgid "Puppet Enterprise version to run tests or validations against."
68
72
  msgstr ""
69
73
 
70
- #: ../lib/pdk/cli.rb:107
74
+ #: ../lib/pdk/cli.rb:119
71
75
  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
76
  msgstr ""
73
77
 
74
- #: ../lib/pdk/cli.rb:112
78
+ #: ../lib/pdk/cli.rb:124
75
79
  msgid "pdk command [options]"
76
80
  msgstr ""
77
81
 
78
- #: ../lib/pdk/cli.rb:113
82
+ #: ../lib/pdk/cli.rb:125
79
83
  msgid "Puppet Development Kit"
80
84
  msgstr ""
81
85
 
82
- #: ../lib/pdk/cli.rb:114
86
+ #: ../lib/pdk/cli.rb:126
83
87
  msgid "The shortest path to better modules."
84
88
  msgstr ""
85
89
 
86
- #: ../lib/pdk/cli.rb:117
90
+ #: ../lib/pdk/cli.rb:129
87
91
  msgid "Show version of pdk."
88
92
  msgstr ""
89
93
 
90
- #: ../lib/pdk/cli.rb:122
94
+ #: ../lib/pdk/cli.rb:134
91
95
  msgid "Show help for this command."
92
96
  msgstr ""
93
97
 
94
- #: ../lib/pdk/cli.rb:127
98
+ #: ../lib/pdk/cli.rb:139
95
99
  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
100
  msgstr ""
97
101
 
98
- #: ../lib/pdk/cli.rb:138
102
+ #: ../lib/pdk/cli.rb:150
99
103
  msgid "Enable debug output."
100
104
  msgstr ""
101
105
 
102
- #: ../lib/pdk/cli.rb:142
106
+ #: ../lib/pdk/cli.rb:154
103
107
  msgid "Path to an answer file."
104
108
  msgstr ""
105
109
 
@@ -261,63 +265,63 @@ msgstr ""
261
265
  msgid "Ignoring --full-interview and continuing with --force."
262
266
  msgstr ""
263
267
 
264
- #: ../lib/pdk/cli/errors.rb:6
268
+ #: ../lib/pdk/cli/errors.rb:8
265
269
  msgid "An unexpected error has occurred. Try running the command again with --debug"
266
270
  msgstr ""
267
271
 
268
- #: ../lib/pdk/cli/exec.rb:31
272
+ #: ../lib/pdk/cli/exec.rb:36
269
273
  msgid "Unable to find `%{name}`. Check that it is installed and try again."
270
274
  msgstr ""
271
275
 
272
- #: ../lib/pdk/cli/exec.rb:57
276
+ #: ../lib/pdk/cli/exec.rb:62
273
277
  msgid "PDK package installation not found. Trying '%{fallback}' from the system PATH instead."
274
278
  msgstr ""
275
279
 
276
- #: ../lib/pdk/cli/exec.rb:66
280
+ #: ../lib/pdk/cli/exec.rb:71
277
281
  msgid "Could not find '%{vendored_bin}' in PDK package. Trying '%{fallback}' from the system PATH instead."
278
282
  msgstr ""
279
283
 
280
- #: ../lib/pdk/cli/exec.rb:73
284
+ #: ../lib/pdk/cli/exec.rb:78
281
285
  msgid "Using '%{vendored_bin}' from PDK package."
282
286
  msgstr ""
283
287
 
284
- #: ../lib/pdk/cli/exec/command.rb:38
288
+ #: ../lib/pdk/cli/exec/command.rb:42
285
289
  msgid "Expected execution context to be :system or :module but got '%{context}'."
286
290
  msgstr ""
287
291
 
288
- #: ../lib/pdk/cli/exec/command.rb:84 ../lib/pdk/cli/exec/interactive_command.rb:46
292
+ #: ../lib/pdk/cli/exec/command.rb:88 ../lib/pdk/cli/exec/interactive_command.rb:46
289
293
  msgid "Current working directory is not part of a module. (No metadata.json was found.)"
290
294
  msgstr ""
291
295
 
292
- #: ../lib/pdk/cli/exec/command.rb:111
296
+ #: ../lib/pdk/cli/exec/command.rb:115
293
297
  msgid "STDOUT: %{output}"
294
298
  msgstr ""
295
299
 
296
- #: ../lib/pdk/cli/exec/command.rb:114
300
+ #: ../lib/pdk/cli/exec/command.rb:118
297
301
  msgid "STDERR: %{output}"
298
302
  msgstr ""
299
303
 
300
- #: ../lib/pdk/cli/exec/command.rb:128
304
+ #: ../lib/pdk/cli/exec/command.rb:132
301
305
  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"
302
306
  msgstr ""
303
307
 
304
- #: ../lib/pdk/cli/exec/command.rb:137
308
+ #: ../lib/pdk/cli/exec/command.rb:141
305
309
  msgid "%{varname} is not supported by PDK."
306
310
  msgstr ""
307
311
 
308
- #: ../lib/pdk/cli/exec/command.rb:202
312
+ #: ../lib/pdk/cli/exec/command.rb:206
309
313
  msgid "Executing '%{command}'"
310
314
  msgstr ""
311
315
 
312
- #: ../lib/pdk/cli/exec/command.rb:205 ../lib/pdk/cli/exec/interactive_command.rb:78
316
+ #: ../lib/pdk/cli/exec/command.rb:209 ../lib/pdk/cli/exec/interactive_command.rb:78
313
317
  msgid "Command environment:"
314
318
  msgstr ""
315
319
 
316
- #: ../lib/pdk/cli/exec/command.rb:216
320
+ #: ../lib/pdk/cli/exec/command.rb:220
317
321
  msgid "Failed to execute '%{command}': %{message}"
318
322
  msgstr ""
319
323
 
320
- #: ../lib/pdk/cli/exec/command.rb:232
324
+ #: ../lib/pdk/cli/exec/command.rb:236
321
325
  msgid "Execution of '%{command}' complete (duration: %{duration_in_seconds}s; exit code: %{exit_code})"
322
326
  msgstr ""
323
327
 
@@ -335,7 +339,7 @@ msgid ""
335
339
  " %{duration_in_seconds}s; exit code: %{exit_code})"
336
340
  msgstr ""
337
341
 
338
- #: ../lib/pdk/cli/exec_group.rb:28
342
+ #: ../lib/pdk/cli/exec_group.rb:30
339
343
  msgid "No block registered"
340
344
  msgstr ""
341
345
 
@@ -375,7 +379,7 @@ msgstr ""
375
379
  msgid "New modules are created using the ‘pdk new module’ command."
376
380
  msgstr ""
377
381
 
378
- #: ../lib/pdk/cli/module/generate.rb:40 ../lib/pdk/cli/new/module.rb:42
382
+ #: ../lib/pdk/cli/module/generate.rb:40 ../lib/pdk/cli/new/module.rb:49
379
383
  msgid "Creating new module: %{modname}"
380
384
  msgstr ""
381
385
 
@@ -439,6 +443,10 @@ msgstr ""
439
443
  msgid "Do not automatically run `bundle install` after creating the module."
440
444
  msgstr ""
441
445
 
446
+ #: ../lib/pdk/cli/new/module.rb:33
447
+ msgid "You must specify a module name on the command line when running with --skip-interview."
448
+ msgstr ""
449
+
442
450
  #: ../lib/pdk/cli/new/provider.rb:4
443
451
  msgid "provider [options] <name>"
444
452
  msgstr ""
@@ -491,11 +499,11 @@ msgstr ""
491
499
  msgid "Test type not specified, assuming unit."
492
500
  msgstr ""
493
501
 
494
- #: ../lib/pdk/cli/new/test.rb:47
502
+ #: ../lib/pdk/cli/new/test.rb:46
495
503
  msgid "Unable to find anything called \"%{object}\" to generate unit tests for."
496
504
  msgstr ""
497
505
 
498
- #: ../lib/pdk/cli/new/test.rb:49
506
+ #: ../lib/pdk/cli/new/test.rb:48
499
507
  msgid "PDK does not support generating unit tests for \"%{object_type}\" objects."
500
508
  msgstr ""
501
509
 
@@ -551,22 +559,18 @@ msgstr ""
551
559
  msgid "Unit tests can only be run from inside a valid module directory."
552
560
  msgstr ""
553
561
 
554
- #: ../lib/pdk/cli/test/unit.rb:53
562
+ #: ../lib/pdk/cli/test/unit.rb:52
555
563
  msgid "No unit test files with examples were found."
556
564
  msgstr ""
557
565
 
558
- #: ../lib/pdk/cli/test/unit.rb:55
566
+ #: ../lib/pdk/cli/test/unit.rb:54
559
567
  msgid "Unit Test Files:"
560
568
  msgstr ""
561
569
 
562
- #: ../lib/pdk/cli/test/unit.rb:64
570
+ #: ../lib/pdk/cli/test/unit.rb:63
563
571
  msgid "\t%{id}\t%{description}"
564
572
  msgstr ""
565
573
 
566
- #: ../lib/pdk/cli/test/unit.rb:69
567
- msgid "--verbose has no effect when not used with --list"
568
- msgstr ""
569
-
570
574
  #: ../lib/pdk/cli/update.rb:4
571
575
  msgid "update [options]"
572
576
  msgstr ""
@@ -603,75 +607,75 @@ msgstr ""
603
607
  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."
604
608
  msgstr ""
605
609
 
606
- #: ../lib/pdk/cli/util.rb:17
610
+ #: ../lib/pdk/cli/util.rb:25
607
611
  msgid "This command must be run from inside a valid module (no metadata.json found)."
608
612
  msgstr ""
609
613
 
610
- #: ../lib/pdk/cli/util.rb:41
614
+ #: ../lib/pdk/cli/util.rb:51
611
615
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
612
616
  msgstr ""
613
617
 
614
- #: ../lib/pdk/cli/util.rb:88
618
+ #: ../lib/pdk/cli/util.rb:98
615
619
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
616
620
  msgstr ""
617
621
 
618
- #: ../lib/pdk/cli/util.rb:94
622
+ #: ../lib/pdk/cli/util.rb:104
619
623
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
620
624
  msgstr ""
621
625
 
622
- #: ../lib/pdk/cli/util.rb:99
626
+ #: ../lib/pdk/cli/util.rb:109
623
627
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
624
628
  msgstr ""
625
629
 
626
- #: ../lib/pdk/cli/util.rb:103
630
+ #: ../lib/pdk/cli/util.rb:113
627
631
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
628
632
  msgstr ""
629
633
 
630
- #: ../lib/pdk/cli/util.rb:114
634
+ #: ../lib/pdk/cli/util.rb:124
631
635
  msgid "Support for Puppet versions older than %{version} is deprecated and will be removed in a future version of PDK."
632
636
  msgstr ""
633
637
 
634
- #: ../lib/pdk/cli/util.rb:151
638
+ #: ../lib/pdk/cli/util.rb:162
635
639
  msgid "Using Ruby %{version}"
636
640
  msgstr ""
637
641
 
638
- #: ../lib/pdk/cli/util.rb:165
642
+ #: ../lib/pdk/cli/util.rb:176
639
643
  msgid "Using %{gem} %{version}"
640
644
  msgstr ""
641
645
 
642
- #: ../lib/pdk/cli/util.rb:196 ../lib/pdk/cli/util.rb:208
646
+ #: ../lib/pdk/cli/util.rb:207 ../lib/pdk/cli/util.rb:219
643
647
  msgid "You cannot specify a %{first} and %{second} at the same time."
644
648
  msgstr ""
645
649
 
646
- #: ../lib/pdk/cli/util.rb:244
650
+ #: ../lib/pdk/cli/util.rb:255
647
651
  msgid "--template-ref requires --template-url to also be specified."
648
652
  msgstr ""
649
653
 
650
- #: ../lib/pdk/cli/util.rb:248
654
+ #: ../lib/pdk/cli/util.rb:259
651
655
  msgid "--template-url may not be used to specify paths containing #'s."
652
656
  msgstr ""
653
657
 
654
- #: ../lib/pdk/cli/util/command_redirector.rb:18
658
+ #: ../lib/pdk/cli/util/command_redirector.rb:19
655
659
  msgid "Did you mean '%{command}'?"
656
660
  msgstr ""
657
661
 
658
- #: ../lib/pdk/cli/util/interview.rb:32
662
+ #: ../lib/pdk/cli/util/interview.rb:33
659
663
  msgid "[Q %{current_number}/%{questions_total}]"
660
664
  msgstr ""
661
665
 
662
- #: ../lib/pdk/cli/util/interview.rb:38 ../lib/pdk/cli/util/interview.rb:42 ../lib/pdk/cli/util/interview.rb:51
666
+ #: ../lib/pdk/cli/util/interview.rb:39 ../lib/pdk/cli/util/interview.rb:43 ../lib/pdk/cli/util/interview.rb:52
663
667
  msgid "-->"
664
668
  msgstr ""
665
669
 
666
- #: ../lib/pdk/cli/util/option_normalizer.rb:6
670
+ #: ../lib/pdk/cli/util/option_normalizer.rb:8
667
671
  msgid "Error: expected comma separated list"
668
672
  msgstr ""
669
673
 
670
- #: ../lib/pdk/cli/util/option_normalizer.rb:32
674
+ #: ../lib/pdk/cli/util/option_normalizer.rb:34
671
675
  msgid "'%{name}' is not a valid report format (%{valid})"
672
676
  msgstr ""
673
677
 
674
- #: ../lib/pdk/cli/util/option_validator.rb:14
678
+ #: ../lib/pdk/cli/util/option_validator.rb:16
675
679
  msgid "Error: the following values are invalid: %{invalid_entries}"
676
680
  msgstr ""
677
681
 
@@ -720,88 +724,88 @@ msgstr ""
720
724
  msgid "Running all available validators..."
721
725
  msgstr ""
722
726
 
723
- #: ../lib/pdk/cli/validate.rb:112
727
+ #: ../lib/pdk/cli/validate.rb:111
724
728
  msgid "Validating module using %{num_of_threads} threads"
725
729
  msgstr ""
726
730
 
727
- #: ../lib/pdk/config.rb:47
731
+ #: ../lib/pdk/config.rb:46
728
732
  msgid "Unable to load %{file}: %{message}"
729
733
  msgstr ""
730
734
 
731
- #: ../lib/pdk/config.rb:80
735
+ #: ../lib/pdk/config.rb:79
732
736
  msgid ""
733
737
  "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"
734
738
  msgstr ""
735
739
 
736
- #: ../lib/pdk/config.rb:86
740
+ #: ../lib/pdk/config.rb:85
737
741
  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."
738
742
  msgstr ""
739
743
 
740
- #: ../lib/pdk/config.rb:98
744
+ #: ../lib/pdk/config.rb:97
741
745
  msgid "Do you consent to the collection of anonymous PDK usage information?"
742
746
  msgstr ""
743
747
 
744
- #: ../lib/pdk/config.rb:112
748
+ #: ../lib/pdk/config.rb:111
745
749
  msgid "No answer given, opting out of analytics collection."
746
750
  msgstr ""
747
751
 
748
- #: ../lib/pdk/config/json_schema_namespace.rb:100
752
+ #: ../lib/pdk/config/json_schema_namespace.rb:102
749
753
  msgid "Setting '#{key}' does not exist'"
750
754
  msgstr ""
751
755
 
752
- #: ../lib/pdk/config/json_schema_namespace.rb:124
756
+ #: ../lib/pdk/config/json_schema_namespace.rb:123
753
757
  msgid "Unable to open %{file} for reading. File does not exist"
754
758
  msgstr ""
755
759
 
756
- #: ../lib/pdk/config/json_schema_namespace.rb:136
760
+ #: ../lib/pdk/config/json_schema_namespace.rb:135
757
761
  msgid "Unable to open %{file} for reading. JSON Error: %{msg}"
758
762
  msgstr ""
759
763
 
760
- #: ../lib/pdk/config/json_schema_setting.rb:27 ../lib/pdk/config/setting.rb:96
764
+ #: ../lib/pdk/config/json_schema_setting.rb:27 ../lib/pdk/config/setting.rb:98
761
765
  msgid "%{key} %{message}"
762
766
  msgstr ""
763
767
 
764
- #: ../lib/pdk/config/json_with_schema.rb:23 ../lib/pdk/config/yaml_with_schema.rb:23
768
+ #: ../lib/pdk/config/json_with_schema.rb:22 ../lib/pdk/config/yaml_with_schema.rb:23
765
769
  msgid "The configuration file %{filename} is not valid: %{message}"
766
770
  msgstr ""
767
771
 
768
- #: ../lib/pdk/config/namespace.rb:65
772
+ #: ../lib/pdk/config/namespace.rb:67
769
773
  msgid "Only PDK::Config::Namespace objects can be mounted into a namespace"
770
774
  msgstr ""
771
775
 
772
- #: ../lib/pdk/config/namespace.rb:137
776
+ #: ../lib/pdk/config/namespace.rb:139
773
777
  msgid "Namespace mounts can not be set a value"
774
778
  msgstr ""
775
779
 
776
- #: ../lib/pdk/config/namespace.rb:286
780
+ #: ../lib/pdk/config/namespace.rb:288
777
781
  msgid "Unable to open %{file} for reading"
778
782
  msgstr ""
779
783
 
780
- #: ../lib/pdk/config/namespace.rb:309
784
+ #: ../lib/pdk/config/namespace.rb:311
781
785
  msgid "Unable to open %{file} for writing"
782
786
  msgstr ""
783
787
 
784
- #: ../lib/pdk/config/setting.rb:77
788
+ #: ../lib/pdk/config/setting.rb:79
785
789
  msgid "`validator` must be a Hash"
786
790
  msgstr ""
787
791
 
788
- #: ../lib/pdk/config/setting.rb:78
792
+ #: ../lib/pdk/config/setting.rb:80
789
793
  msgid "the :proc key must contain a Proc"
790
794
  msgstr ""
791
795
 
792
- #: ../lib/pdk/config/setting.rb:79
796
+ #: ../lib/pdk/config/setting.rb:81
793
797
  msgid "the :message key must contain a String"
794
798
  msgstr ""
795
799
 
796
- #: ../lib/pdk/config/setting.rb:110
800
+ #: ../lib/pdk/config/setting.rb:112
797
801
  msgid "must be passed a block"
798
802
  msgstr ""
799
803
 
800
- #: ../lib/pdk/config/yaml.rb:22 ../lib/pdk/config/yaml_with_schema.rb:39
804
+ #: ../lib/pdk/config/yaml.rb:21 ../lib/pdk/config/yaml_with_schema.rb:39
801
805
  msgid "Syntax error when loading %{file}: %{error}"
802
806
  msgstr ""
803
807
 
804
- #: ../lib/pdk/config/yaml.rb:27 ../lib/pdk/config/yaml_with_schema.rb:44
808
+ #: ../lib/pdk/config/yaml.rb:26 ../lib/pdk/config/yaml_with_schema.rb:44
805
809
  msgid "Unsupported class in %{file}: %{error}"
806
810
  msgstr ""
807
811
 
@@ -962,7 +966,7 @@ msgid "Process cancelled; exiting."
962
966
  msgstr ""
963
967
 
964
968
  #: ../lib/pdk/generate/provider.rb:23
965
- msgid "%{error}: Creating a provider needs some local configuration in your module. Please follow the docs at https://github.com/puppetlabs/puppet-resource_api#getting-started."
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."
966
970
  msgstr ""
967
971
 
968
972
  #: ../lib/pdk/generate/provider.rb:33 ../lib/pdk/generate/transport.rb:33
@@ -1001,31 +1005,31 @@ msgstr ""
1001
1005
  msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
1002
1006
  msgstr ""
1003
1007
 
1004
- #: ../lib/pdk/generate/puppet_object.rb:140
1008
+ #: ../lib/pdk/generate/puppet_object.rb:142
1005
1009
  msgid "Unable to generate %{object_type}; '%{file}' already exists."
1006
1010
  msgstr ""
1007
1011
 
1008
- #: ../lib/pdk/generate/puppet_object.rb:224
1012
+ #: ../lib/pdk/generate/puppet_object.rb:226
1009
1013
  msgid "Creating '%{file}' from template."
1010
1014
  msgstr ""
1011
1015
 
1012
- #: ../lib/pdk/generate/puppet_object.rb:231
1016
+ #: ../lib/pdk/generate/puppet_object.rb:233
1013
1017
  msgid "Unable to create directory '%{path}': %{message}"
1014
1018
  msgstr ""
1015
1019
 
1016
- #: ../lib/pdk/generate/puppet_object.rb:239
1020
+ #: ../lib/pdk/generate/puppet_object.rb:241
1017
1021
  msgid "Unable to write to file '%{path}': %{message}"
1018
1022
  msgstr ""
1019
1023
 
1020
- #: ../lib/pdk/generate/puppet_object.rb:266
1024
+ #: ../lib/pdk/generate/puppet_object.rb:268
1021
1025
  msgid "No %{dir_type} template found; trying next template directory."
1022
1026
  msgstr ""
1023
1027
 
1024
- #: ../lib/pdk/generate/puppet_object.rb:279
1028
+ #: ../lib/pdk/generate/puppet_object.rb:281
1025
1029
  msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1026
1030
  msgstr ""
1027
1031
 
1028
- #: ../lib/pdk/generate/puppet_object.rb:281
1032
+ #: ../lib/pdk/generate/puppet_object.rb:283
1029
1033
  msgid "Unable to find the %{type} template in %{url}."
1030
1034
  msgstr ""
1031
1035
 
@@ -1037,64 +1041,64 @@ msgstr ""
1037
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."
1038
1042
  msgstr ""
1039
1043
 
1040
- #: ../lib/pdk/module/build.rb:130
1044
+ #: ../lib/pdk/module/build.rb:132
1041
1045
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1042
1046
  msgstr ""
1043
1047
 
1044
- #: ../lib/pdk/module/build.rb:160
1048
+ #: ../lib/pdk/module/build.rb:162
1045
1049
  msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
1046
1050
  msgstr ""
1047
1051
 
1048
- #: ../lib/pdk/module/build.rb:187
1052
+ #: ../lib/pdk/module/build.rb:189
1049
1053
  msgid "The path '%{path}' is longer than 256 bytes."
1050
1054
  msgstr ""
1051
1055
 
1052
- #: ../lib/pdk/module/build.rb:211
1056
+ #: ../lib/pdk/module/build.rb:213
1053
1057
  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."
1054
1058
  msgstr ""
1055
1059
 
1056
- #: ../lib/pdk/module/build.rb:247
1060
+ #: ../lib/pdk/module/build.rb:249
1057
1061
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1058
1062
  msgstr ""
1059
1063
 
1060
- #: ../lib/pdk/module/convert.rb:27 ../lib/pdk/module/update.rb:20
1064
+ #: ../lib/pdk/module/convert.rb:29 ../lib/pdk/module/update.rb:20
1061
1065
  msgid "No changes required."
1062
1066
  msgstr ""
1063
1067
 
1064
- #: ../lib/pdk/module/convert.rb:42
1068
+ #: ../lib/pdk/module/convert.rb:44
1065
1069
  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."
1066
1070
  msgstr ""
1067
1071
 
1068
- #: ../lib/pdk/module/convert.rb:47 ../lib/pdk/module/update.rb:32
1072
+ #: ../lib/pdk/module/convert.rb:49 ../lib/pdk/module/update.rb:32
1069
1073
  msgid "Do you want to continue and make these changes to your module?"
1070
1074
  msgstr ""
1071
1075
 
1072
- #: ../lib/pdk/module/convert.rb:133
1076
+ #: ../lib/pdk/module/convert.rb:135
1073
1077
  msgid "skipping '%{path}'"
1074
1078
  msgstr ""
1075
1079
 
1076
- #: ../lib/pdk/module/convert.rb:172
1080
+ #: ../lib/pdk/module/convert.rb:174
1077
1081
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1078
1082
  msgstr ""
1079
1083
 
1080
- #: ../lib/pdk/module/convert.rb:188
1084
+ #: ../lib/pdk/module/convert.rb:190
1081
1085
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1082
1086
  msgstr ""
1083
1087
 
1084
- #: ../lib/pdk/module/convert.rb:233 ../lib/pdk/module/convert.rb:238 ../lib/pdk/module/convert.rb:244
1088
+ #: ../lib/pdk/module/convert.rb:235 ../lib/pdk/module/convert.rb:240 ../lib/pdk/module/convert.rb:246
1085
1089
  msgid ""
1086
1090
  "\n"
1087
1091
  "%{banner}"
1088
1092
  msgstr ""
1089
1093
 
1090
- #: ../lib/pdk/module/convert.rb:246
1094
+ #: ../lib/pdk/module/convert.rb:248
1091
1095
  msgid ""
1092
1096
  "\n"
1093
1097
  "%{summary}\n"
1094
1098
  "\n"
1095
1099
  msgstr ""
1096
1100
 
1097
- #: ../lib/pdk/module/convert.rb:259
1101
+ #: ../lib/pdk/module/convert.rb:261
1098
1102
  msgid ""
1099
1103
  "\n"
1100
1104
  "You can find a report of differences in %{path}.\n"
@@ -1117,93 +1121,93 @@ msgstr ""
1117
1121
  msgid "Invalid JSON in metadata.json: %{msg}"
1118
1122
  msgstr ""
1119
1123
 
1120
- #: ../lib/pdk/module/metadata.rb:144
1124
+ #: ../lib/pdk/module/metadata.rb:145
1121
1125
  msgid "Module metadata does not contain any requirements."
1122
1126
  msgstr ""
1123
1127
 
1124
- #: ../lib/pdk/module/metadata.rb:145
1128
+ #: ../lib/pdk/module/metadata.rb:146
1125
1129
  msgid "Module metadata does not contain a \"puppet\" requirement."
1126
1130
  msgstr ""
1127
1131
 
1128
- #: ../lib/pdk/module/metadata.rb:146
1132
+ #: ../lib/pdk/module/metadata.rb:147
1129
1133
  msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
1130
1134
  msgstr ""
1131
1135
 
1132
- #: ../lib/pdk/module/metadata.rb:186
1136
+ #: ../lib/pdk/module/metadata.rb:187
1133
1137
  msgid "Field must be a dash-separated user name and module name."
1134
1138
  msgstr ""
1135
1139
 
1136
- #: ../lib/pdk/module/metadata.rb:188
1140
+ #: ../lib/pdk/module/metadata.rb:189
1137
1141
  msgid "Module name must contain only alphanumeric or underscore characters."
1138
1142
  msgstr ""
1139
1143
 
1140
- #: ../lib/pdk/module/metadata.rb:190
1144
+ #: ../lib/pdk/module/metadata.rb:191
1141
1145
  msgid "Module name must begin with a letter."
1142
1146
  msgstr ""
1143
1147
 
1144
- #: ../lib/pdk/module/metadata.rb:192
1148
+ #: ../lib/pdk/module/metadata.rb:193
1145
1149
  msgid "Namespace must contain only alphanumeric characters."
1146
1150
  msgstr ""
1147
1151
 
1148
- #: ../lib/pdk/module/metadata.rb:195
1152
+ #: ../lib/pdk/module/metadata.rb:196
1149
1153
  msgid "Invalid 'name' field in metadata.json: %{err}"
1150
1154
  msgstr ""
1151
1155
 
1152
- #: ../lib/pdk/module/templatedir.rb:40
1156
+ #: ../lib/pdk/module/templatedir.rb:42
1153
1157
  msgid "%{class_name} must be initialized with a block."
1154
1158
  msgstr ""
1155
1159
 
1156
- #: ../lib/pdk/module/templatedir.rb:43
1160
+ #: ../lib/pdk/module/templatedir.rb:45
1157
1161
  msgid "PDK::Module::TemplateDir.new must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1158
1162
  msgstr ""
1159
1163
 
1160
- #: ../lib/pdk/module/templatedir.rb:57
1164
+ #: ../lib/pdk/module/templatedir.rb:59
1161
1165
  msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1162
1166
  msgstr ""
1163
1167
 
1164
- #: ../lib/pdk/module/templatedir.rb:124
1168
+ #: ../lib/pdk/module/templatedir.rb:126
1165
1169
  msgid "Rendering '%{template}'..."
1166
1170
  msgstr ""
1167
1171
 
1168
- #: ../lib/pdk/module/templatedir.rb:142
1172
+ #: ../lib/pdk/module/templatedir.rb:144
1169
1173
  msgid ""
1170
1174
  "Failed to render template '%{template}'\n"
1171
1175
  "%{exception}: %{message}"
1172
1176
  msgstr ""
1173
1177
 
1174
- #: ../lib/pdk/module/templatedir.rb:215
1178
+ #: ../lib/pdk/module/templatedir.rb:217
1175
1179
  msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1176
1180
  msgstr ""
1177
1181
 
1178
- #: ../lib/pdk/module/templatedir.rb:217
1182
+ #: ../lib/pdk/module/templatedir.rb:219
1179
1183
  msgid "The specified template '%{path}' is not a directory."
1180
1184
  msgstr ""
1181
1185
 
1182
- #: ../lib/pdk/module/templatedir.rb:222
1186
+ #: ../lib/pdk/module/templatedir.rb:224
1183
1187
  msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1184
1188
  msgstr ""
1185
1189
 
1186
- #: ../lib/pdk/module/templatedir.rb:227
1190
+ #: ../lib/pdk/module/templatedir.rb:229
1187
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."
1188
1192
  msgstr ""
1189
1193
 
1190
- #: ../lib/pdk/module/templatedir.rb:243
1194
+ #: ../lib/pdk/module/templatedir.rb:245
1191
1195
  msgid "The directory '%{dir}' doesn't exist"
1192
1196
  msgstr ""
1193
1197
 
1194
- #: ../lib/pdk/module/templatedir.rb:318
1198
+ #: ../lib/pdk/module/templatedir.rb:320
1195
1199
  msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1196
1200
  msgstr ""
1197
1201
 
1198
- #: ../lib/pdk/module/templatedir.rb:356
1202
+ #: ../lib/pdk/module/templatedir.rb:358
1199
1203
  msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1200
1204
  msgstr ""
1201
1205
 
1202
- #: ../lib/pdk/module/templatedir.rb:375
1206
+ #: ../lib/pdk/module/templatedir.rb:377
1203
1207
  msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1204
1208
  msgstr ""
1205
1209
 
1206
- #: ../lib/pdk/module/templatedir.rb:378
1210
+ #: ../lib/pdk/module/templatedir.rb:380
1207
1211
  msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1208
1212
  msgstr ""
1209
1213
 
@@ -1219,75 +1223,75 @@ msgstr ""
1219
1223
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1220
1224
  msgstr ""
1221
1225
 
1222
- #: ../lib/pdk/module/update_manager.rb:109
1226
+ #: ../lib/pdk/module/update_manager.rb:111
1223
1227
  msgid "unlinking '%{path}'"
1224
1228
  msgstr ""
1225
1229
 
1226
- #: ../lib/pdk/module/update_manager.rb:112
1230
+ #: ../lib/pdk/module/update_manager.rb:114
1227
1231
  msgid "'%{path}': already gone"
1228
1232
  msgstr ""
1229
1233
 
1230
- #: ../lib/pdk/module/update_manager.rb:115
1234
+ #: ../lib/pdk/module/update_manager.rb:117
1231
1235
  msgid "Unable to remove '%{path}': %{message}"
1232
1236
  msgstr ""
1233
1237
 
1234
- #: ../lib/pdk/module/update_manager.rb:135
1238
+ #: ../lib/pdk/module/update_manager.rb:137
1235
1239
  msgid "Unable to open '%{path}' for reading"
1236
1240
  msgstr ""
1237
1241
 
1238
- #: ../lib/pdk/module/update_manager.rb:154
1242
+ #: ../lib/pdk/module/update_manager.rb:156
1239
1243
  msgid "writing '%{path}'"
1240
1244
  msgstr ""
1241
1245
 
1242
- #: ../lib/pdk/module/update_manager.rb:157
1246
+ #: ../lib/pdk/module/update_manager.rb:159
1243
1247
  msgid "You do not have permission to write to '%{path}'"
1244
1248
  msgstr ""
1245
1249
 
1246
- #: ../lib/pdk/report/event.rb:190
1250
+ #: ../lib/pdk/report/event.rb:192
1247
1251
  msgid "File not specified."
1248
1252
  msgstr ""
1249
1253
 
1250
- #: ../lib/pdk/report/event.rb:194
1254
+ #: ../lib/pdk/report/event.rb:196
1251
1255
  msgid "File must be a String."
1252
1256
  msgstr ""
1253
1257
 
1254
- #: ../lib/pdk/report/event.rb:230
1258
+ #: ../lib/pdk/report/event.rb:232
1255
1259
  msgid "State not specified."
1256
1260
  msgstr ""
1257
1261
 
1258
- #: ../lib/pdk/report/event.rb:235
1262
+ #: ../lib/pdk/report/event.rb:237
1259
1263
  msgid "State must be a Symbol, not %{type}"
1260
1264
  msgstr ""
1261
1265
 
1262
- #: ../lib/pdk/report/event.rb:240
1266
+ #: ../lib/pdk/report/event.rb:242
1263
1267
  msgid "Invalid state %{state}. Valid states are: %{valid}."
1264
1268
  msgstr ""
1265
1269
 
1266
- #: ../lib/pdk/report/event.rb:259
1270
+ #: ../lib/pdk/report/event.rb:261
1267
1271
  msgid "Source not specified."
1268
1272
  msgstr ""
1269
1273
 
1270
- #: ../lib/pdk/report/event.rb:280
1274
+ #: ../lib/pdk/report/event.rb:282
1271
1275
  msgid "Line must be an Integer or a String representation of an Integer."
1272
1276
  msgstr ""
1273
1277
 
1274
- #: ../lib/pdk/report/event.rb:284
1278
+ #: ../lib/pdk/report/event.rb:286
1275
1279
  msgid "The line number can contain only the digits 0-9."
1276
1280
  msgstr ""
1277
1281
 
1278
- #: ../lib/pdk/report/event.rb:305
1282
+ #: ../lib/pdk/report/event.rb:307
1279
1283
  msgid "Column must be an Integer or a String representation of an Integer."
1280
1284
  msgstr ""
1281
1285
 
1282
- #: ../lib/pdk/report/event.rb:309
1286
+ #: ../lib/pdk/report/event.rb:311
1283
1287
  msgid "The column number can contain only the digits 0-9."
1284
1288
  msgstr ""
1285
1289
 
1286
- #: ../lib/pdk/report/event.rb:327
1290
+ #: ../lib/pdk/report/event.rb:329
1287
1291
  msgid "Trace must be an Array of stack trace lines."
1288
1292
  msgstr ""
1289
1293
 
1290
- #: ../lib/pdk/template_file.rb:68
1294
+ #: ../lib/pdk/template_file.rb:69
1291
1295
  msgid "'%{template}' is not a readable file"
1292
1296
  msgstr ""
1293
1297
 
@@ -1323,233 +1327,265 @@ msgstr ""
1323
1327
  msgid "Running unit tests."
1324
1328
  msgstr ""
1325
1329
 
1326
- #: ../lib/pdk/tests/unit.rb:115
1330
+ #: ../lib/pdk/tests/unit.rb:120
1327
1331
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1328
1332
  msgstr ""
1329
1333
 
1330
- #: ../lib/pdk/tests/unit.rb:167
1334
+ #: ../lib/pdk/tests/unit.rb:172
1331
1335
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1332
1336
  msgstr ""
1333
1337
 
1334
- #: ../lib/pdk/tests/unit.rb:221
1338
+ #: ../lib/pdk/tests/unit.rb:226
1335
1339
  msgid "Finding unit tests."
1336
1340
  msgstr ""
1337
1341
 
1338
- #: ../lib/pdk/tests/unit.rb:224
1342
+ #: ../lib/pdk/tests/unit.rb:229
1339
1343
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1340
1344
  msgstr ""
1341
1345
 
1342
- #: ../lib/pdk/tests/unit.rb:229
1346
+ #: ../lib/pdk/tests/unit.rb:234
1343
1347
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1344
1348
  msgstr ""
1345
1349
 
1346
- #: ../lib/pdk/util.rb:59
1350
+ #: ../lib/pdk/util.rb:76
1347
1351
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1348
1352
  msgstr ""
1349
1353
 
1350
- #: ../lib/pdk/util.rb:88
1354
+ #: ../lib/pdk/util.rb:105
1351
1355
  msgid "Package basedir requested for non-package install."
1352
1356
  msgstr ""
1353
1357
 
1354
- #: ../lib/pdk/util/bundler.rb:15
1358
+ #: ../lib/pdk/util/bundler.rb:17
1355
1359
  msgid "Bundler managed gems already up to date."
1356
1360
  msgstr ""
1357
1361
 
1358
- #: ../lib/pdk/util/bundler.rb:20
1362
+ #: ../lib/pdk/util/bundler.rb:22
1359
1363
  msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
1360
1364
  msgstr ""
1361
1365
 
1362
- #: ../lib/pdk/util/bundler.rb:96
1366
+ #: ../lib/pdk/util/bundler.rb:98
1363
1367
  msgid "Checking for missing Gemfile dependencies."
1364
1368
  msgstr ""
1365
1369
 
1366
- #: ../lib/pdk/util/bundler.rb:125
1370
+ #: ../lib/pdk/util/bundler.rb:127
1367
1371
  msgid "Vendored Gemfile.lock (%{source}) not found."
1368
1372
  msgstr ""
1369
1373
 
1370
- #: ../lib/pdk/util/bundler.rb:130
1374
+ #: ../lib/pdk/util/bundler.rb:132
1371
1375
  msgid "Using vendored Gemfile.lock from %{source}."
1372
1376
  msgstr ""
1373
1377
 
1374
- #: ../lib/pdk/util/bundler.rb:136
1378
+ #: ../lib/pdk/util/bundler.rb:138
1375
1379
  msgid "Resolving default Gemfile dependencies."
1376
1380
  msgstr ""
1377
1381
 
1378
- #: ../lib/pdk/util/bundler.rb:143
1382
+ #: ../lib/pdk/util/bundler.rb:145
1379
1383
  msgid "Unable to resolve default Gemfile dependencies."
1380
1384
  msgstr ""
1381
1385
 
1382
- #: ../lib/pdk/util/bundler.rb:156
1386
+ #: ../lib/pdk/util/bundler.rb:158
1383
1387
  msgid "Updating Gemfile dependencies."
1384
1388
  msgstr ""
1385
1389
 
1386
- #: ../lib/pdk/util/bundler.rb:184
1390
+ #: ../lib/pdk/util/bundler.rb:186
1387
1391
  msgid "Unable to resolve Gemfile dependencies."
1388
1392
  msgstr ""
1389
1393
 
1390
- #: ../lib/pdk/util/bundler.rb:197
1394
+ #: ../lib/pdk/util/bundler.rb:199
1391
1395
  msgid "Installing missing Gemfile dependencies."
1392
1396
  msgstr ""
1393
1397
 
1394
- #: ../lib/pdk/util/bundler.rb:205
1398
+ #: ../lib/pdk/util/bundler.rb:207
1395
1399
  msgid "Unable to install missing Gemfile dependencies."
1396
1400
  msgstr ""
1397
1401
 
1398
- #: ../lib/pdk/util/bundler.rb:219
1402
+ #: ../lib/pdk/util/bundler.rb:221
1399
1403
  msgid ""
1400
1404
  "Failed to generate binstubs for '%{gems}':\n"
1401
1405
  "%{output}"
1402
1406
  msgstr ""
1403
1407
 
1404
- #: ../lib/pdk/util/bundler.rb:220
1408
+ #: ../lib/pdk/util/bundler.rb:222
1405
1409
  msgid "Unable to install requested binstubs."
1406
1410
  msgstr ""
1407
1411
 
1408
- #: ../lib/pdk/util/git.rb:15
1412
+ #: ../lib/pdk/util/filesystem.rb:7
1413
+ msgid "content must be a String"
1414
+ msgstr ""
1415
+
1416
+ #: ../lib/pdk/util/filesystem.rb:8
1417
+ msgid "path must be a String or Pathname"
1418
+ msgstr ""
1419
+
1420
+ #: ../lib/pdk/util/git.rb:17
1409
1421
  msgid "Git command failed: git %{args}"
1410
1422
  msgstr ""
1411
1423
 
1412
- #: ../lib/pdk/util/git.rb:90
1424
+ #: ../lib/pdk/util/git.rb:92
1413
1425
  msgid "Unable to locate git work dir \"%{workdir}\""
1414
1426
  msgstr ""
1415
1427
 
1416
- #: ../lib/pdk/util/git.rb:91
1428
+ #: ../lib/pdk/util/git.rb:93
1417
1429
  msgid "Unable to locate git dir \"%{gitdir}\""
1418
1430
  msgstr ""
1419
1431
 
1420
- #: ../lib/pdk/util/git.rb:106
1432
+ #: ../lib/pdk/util/git.rb:108
1421
1433
  msgid "Unable to access the template repository \"%{repository}\""
1422
1434
  msgstr ""
1423
1435
 
1424
- #: ../lib/pdk/util/git.rb:113
1436
+ #: ../lib/pdk/util/git.rb:115
1425
1437
  msgid "Unable to find a branch or tag named \"%{ref}\" in %{repo}"
1426
1438
  msgstr ""
1427
1439
 
1428
- #: ../lib/pdk/util/puppet_strings.rb:23
1440
+ #: ../lib/pdk/util/puppet_strings.rb:25
1429
1441
  msgid "Examining module contents"
1430
1442
  msgstr ""
1431
1443
 
1432
- #: ../lib/pdk/util/puppet_strings.rb:45
1444
+ #: ../lib/pdk/util/puppet_strings.rb:47
1433
1445
  msgid "Unable to parse puppet-strings output"
1434
1446
  msgstr ""
1435
1447
 
1436
- #: ../lib/pdk/util/puppet_version.rb:39
1448
+ #: ../lib/pdk/util/puppet_version.rb:41
1437
1449
  msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
1438
1450
  msgstr ""
1439
1451
 
1440
- #: ../lib/pdk/util/puppet_version.rb:63
1452
+ #: ../lib/pdk/util/puppet_version.rb:71
1441
1453
  msgid "Unable to clone git repository from '%{repo}'."
1442
1454
  msgstr ""
1443
1455
 
1444
- #: ../lib/pdk/util/puppet_version.rb:72
1456
+ #: ../lib/pdk/util/puppet_version.rb:80
1445
1457
  msgid "Unable to fetch from git remote at '%{repo}'."
1446
1458
  msgstr ""
1447
1459
 
1448
- #: ../lib/pdk/util/puppet_version.rb:81
1460
+ #: ../lib/pdk/util/puppet_version.rb:91
1449
1461
  msgid "Unable to update git repository at '%{cachedir}'."
1450
1462
  msgstr ""
1451
1463
 
1452
- #: ../lib/pdk/util/puppet_version.rb:102
1464
+ #: ../lib/pdk/util/puppet_version.rb:112
1453
1465
  msgid "Unable to find a Puppet gem matching %{requirement}."
1454
1466
  msgstr ""
1455
1467
 
1456
- #: ../lib/pdk/util/puppet_version.rb:109
1468
+ #: ../lib/pdk/util/puppet_version.rb:119
1457
1469
  msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
1458
1470
  msgstr ""
1459
1471
 
1460
- #: ../lib/pdk/util/puppet_version.rb:126
1472
+ #: ../lib/pdk/util/puppet_version.rb:136
1461
1473
  msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
1462
1474
  msgstr ""
1463
1475
 
1464
- #: ../lib/pdk/util/puppet_version.rb:131
1476
+ #: ../lib/pdk/util/puppet_version.rb:141
1465
1477
  msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
1466
1478
  msgstr ""
1467
1479
 
1468
- #: ../lib/pdk/util/puppet_version.rb:147
1480
+ #: ../lib/pdk/util/puppet_version.rb:157
1469
1481
  msgid "Unable to determine Puppet version for module: no metadata.json present in module."
1470
1482
  msgstr ""
1471
1483
 
1472
- #: ../lib/pdk/util/puppet_version.rb:173
1484
+ #: ../lib/pdk/util/puppet_version.rb:183
1473
1485
  msgid "%{version} is not a valid version number."
1474
1486
  msgstr ""
1475
1487
 
1476
- #: ../lib/pdk/util/puppet_version.rb:209
1488
+ #: ../lib/pdk/util/puppet_version.rb:219
1477
1489
  msgid "Failed to parse Puppet Enterprise version map file."
1478
1490
  msgstr ""
1479
1491
 
1480
- #: ../lib/pdk/util/ruby_version.rb:36
1492
+ #: ../lib/pdk/util/ruby_version.rb:37
1481
1493
  msgid "Unknown Ruby version \"%{ruby_version}\""
1482
1494
  msgstr ""
1483
1495
 
1484
- #: ../lib/pdk/util/template_uri.rb:49
1496
+ #: ../lib/pdk/util/template_uri.rb:51
1485
1497
  msgid "PDK::Util::TemplateURI attempted initialization with a non-uri string: {string}"
1486
1498
  msgstr ""
1487
1499
 
1488
- #: ../lib/pdk/util/template_uri.rb:165
1500
+ #: ../lib/pdk/util/template_uri.rb:167
1489
1501
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1490
1502
  msgstr ""
1491
1503
 
1492
- #: ../lib/pdk/util/template_uri.rb:216
1504
+ #: ../lib/pdk/util/template_uri.rb:218
1493
1505
  msgid "--template-url"
1494
1506
  msgstr ""
1495
1507
 
1496
- #: ../lib/pdk/util/template_uri.rb:217
1508
+ #: ../lib/pdk/util/template_uri.rb:219
1497
1509
  msgid "metadata.json"
1498
1510
  msgstr ""
1499
1511
 
1500
- #: ../lib/pdk/util/template_uri.rb:218
1512
+ #: ../lib/pdk/util/template_uri.rb:220
1501
1513
  msgid "PDK answers"
1502
1514
  msgstr ""
1503
1515
 
1504
- #: ../lib/pdk/util/template_uri.rb:219
1516
+ #: ../lib/pdk/util/template_uri.rb:221
1505
1517
  msgid "default"
1506
1518
  msgstr ""
1507
1519
 
1508
- #: ../lib/pdk/util/template_uri.rb:243
1520
+ #: ../lib/pdk/util/template_uri.rb:245
1509
1521
  msgid "Unable to find a valid module template to use."
1510
1522
  msgstr ""
1511
1523
 
1512
- #: ../lib/pdk/util/template_uri.rb:268
1524
+ #: ../lib/pdk/util/template_uri.rb:270
1513
1525
  msgid "Unable to find a valid template at %{uri}"
1514
1526
  msgstr ""
1515
1527
 
1516
- #: ../lib/pdk/util/vendored_file.rb:48
1528
+ #: ../lib/pdk/util/vendored_file.rb:50
1517
1529
  msgid "%{file_name} was not found in the cache, downloading it from %{url}."
1518
1530
  msgstr ""
1519
1531
 
1520
- #: ../lib/pdk/util/vendored_file.rb:63
1532
+ #: ../lib/pdk/util/vendored_file.rb:65
1521
1533
  msgid "Unable to download %{url}. %{code}: %{message}."
1522
1534
  msgstr ""
1523
1535
 
1524
- #: ../lib/pdk/util/vendored_file.rb:72
1536
+ #: ../lib/pdk/util/vendored_file.rb:74
1525
1537
  msgid "Unable to download %{url}. Check internet connectivity and try again. %{error}"
1526
1538
  msgstr ""
1527
1539
 
1528
- #: ../lib/pdk/util/windows/api_types.rb:24
1540
+ #: ../lib/pdk/util/windows/api_types.rb:31
1529
1541
  msgid "Unable to convert value %{string} to encoding %{encoding} due to %{error}"
1530
1542
  msgstr ""
1531
1543
 
1544
+ #: ../lib/pdk/util/windows/api_types.rb:41
1545
+ msgid "Unable to read wide strings with %{null_terminator} terminal nulls"
1546
+ msgstr ""
1547
+
1532
1548
  #: ../lib/pdk/util/windows/file.rb:15
1533
1549
  msgid "Failed to call GetLongPathName"
1534
1550
  msgstr ""
1535
1551
 
1536
- #: ../lib/pdk/validate/base_validator.rb:103
1552
+ #: ../lib/pdk/util/windows/process.rb:14
1553
+ msgid "Discarding environment variable %{string} which contains invalid bytes"
1554
+ msgstr ""
1555
+
1556
+ #: ../lib/pdk/util/windows/process.rb:32
1557
+ msgid "FreeEnvironmentStringsW memory leak"
1558
+ msgstr ""
1559
+
1560
+ #: ../lib/pdk/util/windows/process.rb:39
1561
+ msgid "Environment variable name must not be nil or empty"
1562
+ msgstr ""
1563
+
1564
+ #: ../lib/pdk/util/windows/process.rb:44
1565
+ msgid "Failed to remove environment variable: %{name}"
1566
+ msgstr ""
1567
+
1568
+ #: ../lib/pdk/util/windows/process.rb:49
1569
+ msgid "Failed to set environment variaible: %{name}"
1570
+ msgstr ""
1571
+
1572
+ #: ../lib/pdk/validate/base_validator.rb:105
1537
1573
  msgid "Invoking %{cmd}"
1538
1574
  msgstr ""
1539
1575
 
1540
- #: ../lib/pdk/validate/base_validator.rb:108
1576
+ #: ../lib/pdk/validate/base_validator.rb:110
1541
1577
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1542
1578
  msgstr ""
1543
1579
 
1544
- #: ../lib/pdk/validate/base_validator.rb:112
1580
+ #: ../lib/pdk/validate/base_validator.rb:114
1545
1581
  msgid "Target does not contain any files to validate (%{pattern})."
1546
1582
  msgstr ""
1547
1583
 
1548
- #: ../lib/pdk/validate/base_validator.rb:121
1584
+ #: ../lib/pdk/validate/base_validator.rb:123
1549
1585
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1550
1586
  msgstr ""
1551
1587
 
1552
- #: ../lib/pdk/validate/base_validator.rb:125
1588
+ #: ../lib/pdk/validate/base_validator.rb:127
1553
1589
  msgid "File does not exist."
1554
1590
  msgstr ""
1555
1591