pdk-akerl 1.8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +826 -0
  3. data/LICENSE +201 -0
  4. data/README.md +133 -0
  5. data/exe/pdk +10 -0
  6. data/lib/pdk.rb +10 -0
  7. data/lib/pdk/answer_file.rb +121 -0
  8. data/lib/pdk/cli.rb +113 -0
  9. data/lib/pdk/cli/build.rb +76 -0
  10. data/lib/pdk/cli/bundle.rb +42 -0
  11. data/lib/pdk/cli/convert.rb +41 -0
  12. data/lib/pdk/cli/errors.rb +23 -0
  13. data/lib/pdk/cli/exec.rb +246 -0
  14. data/lib/pdk/cli/exec_group.rb +67 -0
  15. data/lib/pdk/cli/module.rb +14 -0
  16. data/lib/pdk/cli/module/build.rb +14 -0
  17. data/lib/pdk/cli/module/generate.rb +45 -0
  18. data/lib/pdk/cli/new.rb +17 -0
  19. data/lib/pdk/cli/new/class.rb +32 -0
  20. data/lib/pdk/cli/new/defined_type.rb +30 -0
  21. data/lib/pdk/cli/new/module.rb +41 -0
  22. data/lib/pdk/cli/new/provider.rb +27 -0
  23. data/lib/pdk/cli/new/task.rb +31 -0
  24. data/lib/pdk/cli/test.rb +12 -0
  25. data/lib/pdk/cli/test/unit.rb +88 -0
  26. data/lib/pdk/cli/update.rb +32 -0
  27. data/lib/pdk/cli/util.rb +193 -0
  28. data/lib/pdk/cli/util/command_redirector.rb +26 -0
  29. data/lib/pdk/cli/util/interview.rb +63 -0
  30. data/lib/pdk/cli/util/option_normalizer.rb +53 -0
  31. data/lib/pdk/cli/util/option_validator.rb +56 -0
  32. data/lib/pdk/cli/validate.rb +124 -0
  33. data/lib/pdk/generate.rb +11 -0
  34. data/lib/pdk/generate/defined_type.rb +49 -0
  35. data/lib/pdk/generate/module.rb +318 -0
  36. data/lib/pdk/generate/provider.rb +82 -0
  37. data/lib/pdk/generate/puppet_class.rb +48 -0
  38. data/lib/pdk/generate/puppet_object.rb +288 -0
  39. data/lib/pdk/generate/task.rb +86 -0
  40. data/lib/pdk/i18n.rb +4 -0
  41. data/lib/pdk/logger.rb +28 -0
  42. data/lib/pdk/module.rb +21 -0
  43. data/lib/pdk/module/build.rb +214 -0
  44. data/lib/pdk/module/convert.rb +209 -0
  45. data/lib/pdk/module/metadata.rb +193 -0
  46. data/lib/pdk/module/templatedir.rb +313 -0
  47. data/lib/pdk/module/update.rb +111 -0
  48. data/lib/pdk/module/update_manager.rb +210 -0
  49. data/lib/pdk/report.rb +112 -0
  50. data/lib/pdk/report/event.rb +357 -0
  51. data/lib/pdk/template_file.rb +89 -0
  52. data/lib/pdk/tests/unit.rb +213 -0
  53. data/lib/pdk/util.rb +271 -0
  54. data/lib/pdk/util/bundler.rb +253 -0
  55. data/lib/pdk/util/filesystem.rb +12 -0
  56. data/lib/pdk/util/git.rb +74 -0
  57. data/lib/pdk/util/puppet_version.rb +242 -0
  58. data/lib/pdk/util/ruby_version.rb +147 -0
  59. data/lib/pdk/util/vendored_file.rb +88 -0
  60. data/lib/pdk/util/version.rb +42 -0
  61. data/lib/pdk/util/windows.rb +13 -0
  62. data/lib/pdk/util/windows/api_types.rb +57 -0
  63. data/lib/pdk/util/windows/file.rb +36 -0
  64. data/lib/pdk/util/windows/string.rb +16 -0
  65. data/lib/pdk/validate.rb +14 -0
  66. data/lib/pdk/validate/base_validator.rb +209 -0
  67. data/lib/pdk/validate/metadata/metadata_json_lint.rb +86 -0
  68. data/lib/pdk/validate/metadata/metadata_syntax.rb +109 -0
  69. data/lib/pdk/validate/metadata_validator.rb +30 -0
  70. data/lib/pdk/validate/puppet/puppet_lint.rb +67 -0
  71. data/lib/pdk/validate/puppet/puppet_syntax.rb +112 -0
  72. data/lib/pdk/validate/puppet_validator.rb +30 -0
  73. data/lib/pdk/validate/ruby/rubocop.rb +77 -0
  74. data/lib/pdk/validate/ruby_validator.rb +29 -0
  75. data/lib/pdk/validate/tasks/metadata_lint.rb +126 -0
  76. data/lib/pdk/validate/tasks/name.rb +88 -0
  77. data/lib/pdk/validate/tasks_validator.rb +33 -0
  78. data/lib/pdk/version.rb +4 -0
  79. data/locales/config.yaml +21 -0
  80. data/locales/pdk.pot +1283 -0
  81. metadata +304 -0
@@ -0,0 +1,29 @@
1
+ require 'pdk'
2
+ require 'pdk/cli/exec'
3
+ require 'pdk/validate/base_validator'
4
+ require 'pdk/validate/ruby/rubocop'
5
+
6
+ module PDK
7
+ module Validate
8
+ class RubyValidator < BaseValidator
9
+ def self.name
10
+ 'ruby'
11
+ end
12
+
13
+ def self.ruby_validators
14
+ [Rubocop]
15
+ end
16
+
17
+ def self.invoke(report, options = {})
18
+ exit_code = 0
19
+
20
+ ruby_validators.each do |validator|
21
+ exit_code = validator.invoke(report, options)
22
+ break if exit_code != 0
23
+ end
24
+
25
+ exit_code
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,126 @@
1
+ require 'pdk'
2
+ require 'pdk/cli/exec'
3
+ require 'pdk/validate/base_validator'
4
+ require 'pdk/util'
5
+ require 'pathname'
6
+ require 'json-schema'
7
+
8
+ module PDK
9
+ module Validate
10
+ class Tasks
11
+ class MetadataLint < BaseValidator
12
+ FORGE_SCHEMA_URL = 'https://forgeapi.puppet.com/schemas/task.json'.freeze
13
+
14
+ def self.name
15
+ 'task-metadata-lint'
16
+ end
17
+
18
+ def self.pattern
19
+ 'tasks/*.json'
20
+ end
21
+
22
+ def self.spinner_text(_targets = [])
23
+ _('Checking task metadata style (%{targets}).') % {
24
+ targets: pattern,
25
+ }
26
+ end
27
+
28
+ def self.create_spinner(targets = [], options = {})
29
+ return unless PDK::CLI::Util.interactive?
30
+ options = options.merge(PDK::CLI::Util.spinner_opts_for_platform)
31
+
32
+ exec_group = options[:exec_group]
33
+ @spinner = if exec_group
34
+ exec_group.add_spinner(spinner_text(targets), options)
35
+ else
36
+ TTY::Spinner.new("[:spinner] #{spinner_text(targets)}", options)
37
+ end
38
+ @spinner.auto_spin
39
+ end
40
+
41
+ def self.stop_spinner(exit_code)
42
+ if exit_code.zero? && @spinner
43
+ @spinner.success
44
+ elsif @spinner
45
+ @spinner.error
46
+ end
47
+ end
48
+
49
+ def self.schema_file
50
+ schema = PDK::Util::VendoredFile.new('task.json', FORGE_SCHEMA_URL).read
51
+
52
+ JSON.parse(schema)
53
+ rescue PDK::Util::VendoredFile::DownloadError => e
54
+ raise PDK::CLI::FatalError, e.message
55
+ rescue JSON::ParserError
56
+ raise PDK::CLI::FatalError, _('Failed to parse Task Metadata Schema file.')
57
+ end
58
+
59
+ def self.invoke(report, options = {})
60
+ targets, skipped, invalid = parse_targets(options)
61
+
62
+ process_skipped(report, skipped)
63
+ process_invalid(report, invalid)
64
+
65
+ return 0 if targets.empty?
66
+
67
+ return_val = 0
68
+ create_spinner(targets, options)
69
+
70
+ targets.each do |target|
71
+ unless File.readable?(target)
72
+ report.add_event(
73
+ file: target,
74
+ source: name,
75
+ state: :failure,
76
+ severity: 'error',
77
+ message: _('Could not be read.'),
78
+ )
79
+ return_val = 1
80
+ next
81
+ end
82
+
83
+ begin
84
+ # Need to set the JSON Parser and State Generator to the Native one to be
85
+ # compatible with the multi_json adapter.
86
+ JSON.parser = JSON::Ext::Parser if defined?(JSON::Ext::Parser)
87
+ JSON.generator = JSON::Ext::Generator
88
+
89
+ begin
90
+ errors = JSON::Validator.fully_validate(schema_file, File.read(target)) || []
91
+ rescue JSON::Schema::SchemaError => e
92
+ raise PDK::CLI::FatalError, _('Unable to validate Task Metadata. %{error}.') % { error: e.message }
93
+ end
94
+
95
+ if errors.empty?
96
+ report.add_event(
97
+ file: target,
98
+ source: name,
99
+ state: :passed,
100
+ severity: 'ok',
101
+ )
102
+ else
103
+ errors.each do |error|
104
+ # strip off the trailing parts that aren't relevant
105
+ error = error.split('in schema').first if error.include? 'in schema'
106
+
107
+ report.add_event(
108
+ file: target,
109
+ source: name,
110
+ state: :failure,
111
+ severity: 'error',
112
+ message: error,
113
+ )
114
+ end
115
+ return_val = 1
116
+ end
117
+ end
118
+ end
119
+
120
+ stop_spinner(return_val)
121
+ return_val
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,88 @@
1
+ require 'pdk'
2
+ require 'pdk/validate/base_validator'
3
+ require 'pdk/util'
4
+
5
+ module PDK
6
+ module Validate
7
+ class Tasks
8
+ class Name < BaseValidator
9
+ INVALID_TASK_MSG = _(
10
+ 'Invalid task name. Task names must start with a lowercase letter' \
11
+ 'and can only contain lowercase letters, numbers, and underscores.',
12
+ )
13
+
14
+ def self.name
15
+ 'task-name'
16
+ end
17
+
18
+ def self.pattern
19
+ 'tasks/**/*'
20
+ end
21
+
22
+ def self.spinner_text(_targets = [])
23
+ _('Checking task names (%{targets}).') % {
24
+ targets: pattern,
25
+ }
26
+ end
27
+
28
+ def self.create_spinner(targets = [], options = {})
29
+ return unless PDK::CLI::Util.interactive?
30
+ options = options.merge(PDK::CLI::Util.spinner_opts_for_platform)
31
+
32
+ exec_group = options[:exec_group]
33
+ @spinner = if exec_group
34
+ exec_group.add_spinner(spinner_text(targets), options)
35
+ else
36
+ TTY::Spinner.new("[:spinner] #{spinner_text(targets)}", options)
37
+ end
38
+ @spinner.auto_spin
39
+ end
40
+
41
+ def self.stop_spinner(exit_code)
42
+ if exit_code.zero? && @spinner
43
+ @spinner.success
44
+ elsif @spinner
45
+ @spinner.error
46
+ end
47
+ end
48
+
49
+ def self.invoke(report, options = {})
50
+ targets, skipped, invalid = parse_targets(options)
51
+
52
+ process_skipped(report, skipped)
53
+ process_invalid(report, invalid)
54
+
55
+ return 0 if targets.empty?
56
+
57
+ return_val = 0
58
+ create_spinner(targets, options)
59
+
60
+ targets.each do |target|
61
+ task_name = File.basename(target, File.extname(target))
62
+ if PDK::CLI::Util::OptionValidator.valid_task_name?(task_name)
63
+ report.add_event(
64
+ file: target,
65
+ source: name,
66
+ state: :passed,
67
+ severity: 'ok',
68
+ )
69
+ else
70
+ report.add_event(
71
+ file: target,
72
+ source: name,
73
+ state: :failure,
74
+ severity: 'error',
75
+ message: INVALID_TASK_MSG,
76
+ )
77
+
78
+ return_val = 1
79
+ end
80
+ end
81
+
82
+ stop_spinner(return_val)
83
+ return_val
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,33 @@
1
+ require 'pdk'
2
+ require 'pdk/cli/exec'
3
+ require 'pdk/validate/base_validator'
4
+ require 'pdk/validate/tasks/metadata_lint'
5
+ require 'pdk/validate/tasks/name'
6
+
7
+ module PDK
8
+ module Validate
9
+ class TasksValidator < BaseValidator
10
+ def self.name
11
+ 'tasks'
12
+ end
13
+
14
+ def self.metadata_validators
15
+ [
16
+ Tasks::Name,
17
+ Tasks::MetadataLint,
18
+ ]
19
+ end
20
+
21
+ def self.invoke(report, options = {})
22
+ exit_code = 0
23
+
24
+ metadata_validators.each do |validator|
25
+ exit_code = validator.invoke(report, options)
26
+ break if exit_code != 0
27
+ end
28
+
29
+ exit_code
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,4 @@
1
+ module PDK
2
+ VERSION = '1.8.0'.freeze
3
+ TEMPLATE_REF = VERSION
4
+ end
@@ -0,0 +1,21 @@
1
+ ---
2
+ # This is the project-specific configuration file for setting up
3
+ # fast_gettext for your project.
4
+ gettext:
5
+ # This is used for the name of the .pot and .po files; they will be
6
+ # called <project_name>.pot?
7
+ project_name: 'pdk'
8
+ # This is used in comments in the .pot and .po files to indicate what
9
+ # project the files belong to and should bea little more desctiptive than
10
+ # <project_name>
11
+ package_name: puppet development kit
12
+ # The locale that the default messages in the .pot file are in
13
+ default_locale: en
14
+ # The email used for sending bug reports.
15
+ bugs_address: docs@puppet.com
16
+ # The holder of the copyright.
17
+ copyright_holder: Puppet, Inc.
18
+ # Patterns for +Dir.glob+ used to find all files that might contain
19
+ # translatable content, relative to the project root directory
20
+ source_files:
21
+ - 'lib/**/*.rb'
data/locales/pdk.pot ADDED
@@ -0,0 +1,1283 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) 2018 Puppet, Inc.
3
+ # This file is distributed under the same license as the puppet development kit package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: puppet development kit v1.7.1-49-g6159e02fac\n"
10
+ "\n"
11
+ "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
+ "POT-Creation-Date: 2018-11-27 17:00-0700\n"
13
+ "PO-Revision-Date: 2018-11-27 17:00-0700\n"
14
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
+ "Language-Team: LANGUAGE <LL@li.org>\n"
16
+ "Language: \n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
21
+
22
+ #: ../lib/pdk/answer_file.rb:59
23
+ msgid "Answer file can be updated only with a Hash"
24
+ msgstr ""
25
+
26
+ #: ../lib/pdk/answer_file.rb:86
27
+ msgid "Unable to open '%{file}' for reading"
28
+ msgstr ""
29
+
30
+ #: ../lib/pdk/answer_file.rb:95
31
+ msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
32
+ msgstr ""
33
+
34
+ #: ../lib/pdk/answer_file.rb:101
35
+ msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
36
+ msgstr ""
37
+
38
+ #: ../lib/pdk/answer_file.rb:115
39
+ msgid "Unable to write '%{file}': %{msg}"
40
+ msgstr ""
41
+
42
+ #: ../lib/pdk/cli.rb:42
43
+ msgid "Specifies the URL to the template to use when creating new modules or classes. (default: %{default_url})"
44
+ msgstr ""
45
+
46
+ #: ../lib/pdk/cli.rb:48
47
+ msgid "When specified, skips interactive querying of metadata."
48
+ msgstr ""
49
+
50
+ #: ../lib/pdk/cli.rb:52
51
+ msgid "When specified, interactive querying of metadata will include all optional questions."
52
+ msgstr ""
53
+
54
+ #: ../lib/pdk/cli.rb:56
55
+ msgid "Puppet version to run tests or validations against."
56
+ msgstr ""
57
+
58
+ #: ../lib/pdk/cli.rb:57
59
+ msgid "Puppet Enterprise version to run tests or validations against."
60
+ msgstr ""
61
+
62
+ #: ../lib/pdk/cli.rb:63
63
+ 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."
64
+ msgstr ""
65
+
66
+ #: ../lib/pdk/cli.rb:68
67
+ msgid "pdk command [options]"
68
+ msgstr ""
69
+
70
+ #: ../lib/pdk/cli.rb:69
71
+ msgid "Puppet Development Kit"
72
+ msgstr ""
73
+
74
+ #: ../lib/pdk/cli.rb:70
75
+ msgid "The shortest path to better modules."
76
+ msgstr ""
77
+
78
+ #: ../lib/pdk/cli.rb:73
79
+ msgid "Show version of pdk."
80
+ msgstr ""
81
+
82
+ #: ../lib/pdk/cli.rb:78
83
+ msgid "Show help for this command."
84
+ msgstr ""
85
+
86
+ #: ../lib/pdk/cli.rb:83
87
+ 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."
88
+ msgstr ""
89
+
90
+ #: ../lib/pdk/cli.rb:94
91
+ msgid "Enable debug output."
92
+ msgstr ""
93
+
94
+ #: ../lib/pdk/cli.rb:98
95
+ msgid "Path to an answer file."
96
+ msgstr ""
97
+
98
+ #: ../lib/pdk/cli/build.rb:6
99
+ msgid "build [options]"
100
+ msgstr ""
101
+
102
+ #: ../lib/pdk/cli/build.rb:7
103
+ msgid "Builds a package from the module that can be published to the Puppet Forge."
104
+ msgstr ""
105
+
106
+ #: ../lib/pdk/cli/build.rb:10
107
+ msgid "The target directory where you want PDK to write the package."
108
+ msgstr ""
109
+
110
+ #: ../lib/pdk/cli/build.rb:13
111
+ msgid "Skips the prompts and builds the module package."
112
+ msgstr ""
113
+
114
+ #: ../lib/pdk/cli/build.rb:20
115
+ msgid "`pdk build` can only be run from inside a valid module with a metadata.json."
116
+ msgstr ""
117
+
118
+ #: ../lib/pdk/cli/build.rb:31
119
+ msgid "This module is missing required fields in the metadata.json. Re-run the build command without --force to add this information."
120
+ msgstr ""
121
+
122
+ #: ../lib/pdk/cli/build.rb:43
123
+ msgid "The file '%{package}' already exists."
124
+ msgstr ""
125
+
126
+ #: ../lib/pdk/cli/build.rb:45
127
+ msgid "Overwrite?"
128
+ msgstr ""
129
+
130
+ #: ../lib/pdk/cli/build.rb:46 ../lib/pdk/cli/build.rb:57
131
+ msgid "Build cancelled; exiting."
132
+ msgstr ""
133
+
134
+ #: ../lib/pdk/cli/build.rb:52
135
+ msgid "This module is not compatible with PDK, so PDK can not validate or test this build. Unvalidated modules may have errors when uploading to the Forge. To make this module PDK compatible and use validate features, cancel the build and run `pdk convert`."
136
+ msgstr ""
137
+
138
+ #: ../lib/pdk/cli/build.rb:56
139
+ msgid "Continue build without converting?"
140
+ msgstr ""
141
+
142
+ #: ../lib/pdk/cli/build.rb:63
143
+ msgid "Building %{module_name} version %{module_version}"
144
+ msgstr ""
145
+
146
+ #: ../lib/pdk/cli/build.rb:70
147
+ msgid "Build of %{package_name} has completed successfully. Built package can be found here: %{package_path}"
148
+ msgstr ""
149
+
150
+ #: ../lib/pdk/cli/bundle.rb:5
151
+ msgid "bundle [bundler_options]"
152
+ msgstr ""
153
+
154
+ #: ../lib/pdk/cli/bundle.rb:6
155
+ msgid "(Experimental) Command pass-through to bundler"
156
+ msgstr ""
157
+
158
+ #: ../lib/pdk/cli/bundle.rb:7
159
+ msgid ""
160
+ "[experimental] For advanced users, pdk bundle runs arbitrary commands in the bundler environment that pdk manages.\n"
161
+ "Careless use of this command can lead to errors that pdk can't help recover from.\n"
162
+ "\n"
163
+ "Note that for PowerShell the '--' needs to be escaped using a backtick: '`--' to avoid it being parsed by the shell.\n"
164
+ msgstr ""
165
+
166
+ #: ../lib/pdk/cli/bundle.rb:18
167
+ msgid "`pdk bundle` can only be run from inside a valid module directory."
168
+ msgstr ""
169
+
170
+ #: ../lib/pdk/cli/convert.rb:6
171
+ msgid "convert [options]"
172
+ msgstr ""
173
+
174
+ #: ../lib/pdk/cli/convert.rb:7
175
+ msgid "Convert an existing module to be compatible with the PDK."
176
+ msgstr ""
177
+
178
+ #: ../lib/pdk/cli/convert.rb:12
179
+ msgid "Do not convert the module, just output what would be done."
180
+ msgstr ""
181
+
182
+ #: ../lib/pdk/cli/convert.rb:13
183
+ msgid "Convert the module automatically, with no prompts."
184
+ msgstr ""
185
+
186
+ #: ../lib/pdk/cli/convert.rb:20
187
+ msgid "`pdk convert` can only be run from inside a valid module directory."
188
+ msgstr ""
189
+
190
+ #: ../lib/pdk/cli/convert.rb:25
191
+ msgid "You can not specify --noop and --force when converting a module"
192
+ msgstr ""
193
+
194
+ #: ../lib/pdk/cli/convert.rb:29 ../lib/pdk/cli/new/module.rb:22
195
+ msgid "Ignoring --full-interview and continuing with --skip-interview."
196
+ msgstr ""
197
+
198
+ #: ../lib/pdk/cli/convert.rb:34
199
+ msgid "Ignoring --full-interview and continuing with --force."
200
+ msgstr ""
201
+
202
+ #: ../lib/pdk/cli/errors.rb:6
203
+ msgid "An unexpected error has occurred. Try running the command again with --debug"
204
+ msgstr ""
205
+
206
+ #: ../lib/pdk/cli/exec.rb:23
207
+ msgid "Unable to find `%{name}`. Check that it is installed and try again."
208
+ msgstr ""
209
+
210
+ #: ../lib/pdk/cli/exec.rb:45
211
+ msgid "PDK package installation not found. Trying '%{fallback}' from the system PATH instead."
212
+ msgstr ""
213
+
214
+ #: ../lib/pdk/cli/exec.rb:54
215
+ msgid "Could not find '%{vendored_bin}' in PDK package. Trying '%{fallback}' from the system PATH instead."
216
+ msgstr ""
217
+
218
+ #: ../lib/pdk/cli/exec.rb:61
219
+ msgid "Using '%{vendored_bin}' from PDK package."
220
+ msgstr ""
221
+
222
+ #: ../lib/pdk/cli/exec.rb:98
223
+ msgid "Expected execution context to be :system or :module but got '%{context}'."
224
+ msgstr ""
225
+
226
+ #: ../lib/pdk/cli/exec.rb:155
227
+ msgid "Current working directory is not part of a module. (No metadata.json was found.)"
228
+ msgstr ""
229
+
230
+ #: ../lib/pdk/cli/exec.rb:210
231
+ msgid "Executing '%{command}'"
232
+ msgstr ""
233
+
234
+ #: ../lib/pdk/cli/exec.rb:213
235
+ msgid "Command environment:"
236
+ msgstr ""
237
+
238
+ #: ../lib/pdk/cli/exec.rb:224
239
+ msgid "Failed to execute '%{command}': %{message}"
240
+ msgstr ""
241
+
242
+ #: ../lib/pdk/cli/exec.rb:240
243
+ msgid "Execution of '%{command}' complete (duration: %{duration_in_seconds}s; exit code: %{exit_code})"
244
+ msgstr ""
245
+
246
+ #: ../lib/pdk/cli/module.rb:4
247
+ msgid "module [options]"
248
+ msgstr ""
249
+
250
+ #: ../lib/pdk/cli/module.rb:5
251
+ msgid "Provide CLI-backwards compatibility to the puppet module tool."
252
+ msgstr ""
253
+
254
+ #: ../lib/pdk/cli/module.rb:6
255
+ 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."
256
+ msgstr ""
257
+
258
+ #: ../lib/pdk/cli/module/build.rb:6
259
+ msgid "build"
260
+ msgstr ""
261
+
262
+ #: ../lib/pdk/cli/module/build.rb:7
263
+ msgid "This command is now 'pdk build'."
264
+ msgstr ""
265
+
266
+ #: ../lib/pdk/cli/module/build.rb:10
267
+ msgid "Modules are built using the ‘pdk build’ command."
268
+ msgstr ""
269
+
270
+ #: ../lib/pdk/cli/module/generate.rb:6
271
+ msgid "generate [options] <module_name>"
272
+ msgstr ""
273
+
274
+ #: ../lib/pdk/cli/module/generate.rb:7
275
+ msgid "This command is now 'pdk new module'."
276
+ msgstr ""
277
+
278
+ #: ../lib/pdk/cli/module/generate.rb:22
279
+ msgid "New modules are created using the ‘pdk new module’ command."
280
+ msgstr ""
281
+
282
+ #: ../lib/pdk/cli/module/generate.rb:38 ../lib/pdk/cli/new/module.rb:37
283
+ msgid "Creating new module: %{modname}"
284
+ msgstr ""
285
+
286
+ #: ../lib/pdk/cli/new.rb:4
287
+ msgid "new <thing> [options]"
288
+ msgstr ""
289
+
290
+ #: ../lib/pdk/cli/new.rb:5
291
+ msgid "create a new module, etc."
292
+ msgstr ""
293
+
294
+ #: ../lib/pdk/cli/new.rb:6
295
+ msgid "Creates a new <thing> using relevant options."
296
+ msgstr ""
297
+
298
+ #: ../lib/pdk/cli/new/class.rb:4
299
+ msgid "class [options] <class_name>"
300
+ msgstr ""
301
+
302
+ #: ../lib/pdk/cli/new/class.rb:5
303
+ msgid "Create a new class named <class_name> using given options"
304
+ msgstr ""
305
+
306
+ #: ../lib/pdk/cli/new/class.rb:13
307
+ msgid "Classes can only be created from inside a valid module directory."
308
+ msgstr ""
309
+
310
+ #: ../lib/pdk/cli/new/class.rb:26
311
+ msgid "'%{name}' is not a valid class name"
312
+ msgstr ""
313
+
314
+ #: ../lib/pdk/cli/new/defined_type.rb:4
315
+ msgid "defined_type [options] <name>"
316
+ msgstr ""
317
+
318
+ #: ../lib/pdk/cli/new/defined_type.rb:5
319
+ msgid "Create a new defined type named <name> using given options"
320
+ msgstr ""
321
+
322
+ #: ../lib/pdk/cli/new/defined_type.rb:11
323
+ msgid "Defined types can only be created from inside a valid module directory."
324
+ msgstr ""
325
+
326
+ #: ../lib/pdk/cli/new/defined_type.rb:24
327
+ msgid "'%{name}' is not a valid defined type name"
328
+ msgstr ""
329
+
330
+ #: ../lib/pdk/cli/new/module.rb:4
331
+ msgid "module [options] [module_name] [target_dir]"
332
+ msgstr ""
333
+
334
+ #: ../lib/pdk/cli/new/module.rb:5
335
+ msgid "Create a new module named [module_name] using given options"
336
+ msgstr ""
337
+
338
+ #: ../lib/pdk/cli/new/module.rb:11
339
+ msgid "Specifies the license this module is written under. This should be a identifier from https://spdx.org/licenses/. Common values are 'Apache-2.0', 'MIT', or 'proprietary'."
340
+ msgstr ""
341
+
342
+ #: ../lib/pdk/cli/new/module.rb:13
343
+ msgid "Do not automatically run `bundle install` after creating the module."
344
+ msgstr ""
345
+
346
+ #: ../lib/pdk/cli/new/provider.rb:4
347
+ msgid "provider [options] <name>"
348
+ msgstr ""
349
+
350
+ #: ../lib/pdk/cli/new/provider.rb:5
351
+ msgid "[experimental] Create a new ruby provider named <name> using given options"
352
+ msgstr ""
353
+
354
+ #: ../lib/pdk/cli/new/provider.rb:21
355
+ msgid "'%{name}' is not a valid provider name"
356
+ msgstr ""
357
+
358
+ #: ../lib/pdk/cli/new/task.rb:4
359
+ msgid "task [options] <name>"
360
+ msgstr ""
361
+
362
+ #: ../lib/pdk/cli/new/task.rb:5
363
+ msgid "Create a new task named <name> using given options"
364
+ msgstr ""
365
+
366
+ #: ../lib/pdk/cli/new/task.rb:8
367
+ msgid "A short description of the purpose of the task"
368
+ msgstr ""
369
+
370
+ #: ../lib/pdk/cli/new/task.rb:12
371
+ msgid "Tasks can only be created from inside a valid module directory."
372
+ msgstr ""
373
+
374
+ #: ../lib/pdk/cli/new/task.rb:25
375
+ msgid "'%{name}' is not a valid task name"
376
+ msgstr ""
377
+
378
+ #: ../lib/pdk/cli/test.rb:5
379
+ msgid "test [subcommand] [options]"
380
+ msgstr ""
381
+
382
+ #: ../lib/pdk/cli/test.rb:6
383
+ msgid "Run tests."
384
+ msgstr ""
385
+
386
+ #: ../lib/pdk/cli/test/unit.rb:7
387
+ msgid "unit [options]"
388
+ msgstr ""
389
+
390
+ #: ../lib/pdk/cli/test/unit.rb:8
391
+ msgid "Run unit tests."
392
+ msgstr ""
393
+
394
+ #: ../lib/pdk/cli/test/unit.rb:12
395
+ msgid "List all available unit test files."
396
+ msgstr ""
397
+
398
+ #: ../lib/pdk/cli/test/unit.rb:13
399
+ msgid "Run unit tests in parallel."
400
+ msgstr ""
401
+
402
+ #: ../lib/pdk/cli/test/unit.rb:14
403
+ msgid "More verbose --list output. Displays a list of examples in each unit test file."
404
+ msgstr ""
405
+
406
+ #: ../lib/pdk/cli/test/unit.rb:15
407
+ msgid "Clean up downloaded fixtures after the test run."
408
+ msgstr ""
409
+
410
+ #: ../lib/pdk/cli/test/unit.rb:17
411
+ msgid "Specify a comma-separated list of unit test files to run."
412
+ msgstr ""
413
+
414
+ #: ../lib/pdk/cli/test/unit.rb:30
415
+ msgid "Unit tests can only be run from inside a valid module directory."
416
+ msgstr ""
417
+
418
+ #: ../lib/pdk/cli/test/unit.rb:41
419
+ msgid "No unit test files with examples were found."
420
+ msgstr ""
421
+
422
+ #: ../lib/pdk/cli/test/unit.rb:43
423
+ msgid "Unit Test Files:"
424
+ msgstr ""
425
+
426
+ #: ../lib/pdk/cli/test/unit.rb:52
427
+ msgid "\t%{id}\t%{description}"
428
+ msgstr ""
429
+
430
+ #: ../lib/pdk/cli/test/unit.rb:57
431
+ msgid "--verbose has no effect when not used with --list"
432
+ msgstr ""
433
+
434
+ #: ../lib/pdk/cli/update.rb:7
435
+ msgid "update [options]"
436
+ msgstr ""
437
+
438
+ #: ../lib/pdk/cli/update.rb:8
439
+ msgid "Update a module that has been created by or converted for use by PDK."
440
+ msgstr ""
441
+
442
+ #: ../lib/pdk/cli/update.rb:10
443
+ msgid "Do not update the module, just output what would be done."
444
+ msgstr ""
445
+
446
+ #: ../lib/pdk/cli/update.rb:11
447
+ msgid "Update the module automatically, with no prompts."
448
+ msgstr ""
449
+
450
+ #: ../lib/pdk/cli/update.rb:17
451
+ msgid "`pdk update` can only be run from inside a valid module directory."
452
+ msgstr ""
453
+
454
+ #: ../lib/pdk/cli/update.rb:21
455
+ msgid "This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`."
456
+ msgstr ""
457
+
458
+ #: ../lib/pdk/cli/update.rb:24
459
+ msgid "You can not specify --noop and --force when updating a module"
460
+ msgstr ""
461
+
462
+ #: ../lib/pdk/cli/util.rb:17
463
+ msgid "This command must be run from inside a valid module (no metadata.json found)."
464
+ msgstr ""
465
+
466
+ #: ../lib/pdk/cli/util.rb:41
467
+ msgid "Answer \"Y\" to continue or \"n\" to cancel."
468
+ msgstr ""
469
+
470
+ #: ../lib/pdk/cli/util.rb:65
471
+ msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
472
+ msgstr ""
473
+
474
+ #: ../lib/pdk/cli/util.rb:71
475
+ msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
476
+ msgstr ""
477
+
478
+ #: ../lib/pdk/cli/util.rb:76
479
+ msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
480
+ msgstr ""
481
+
482
+ #: ../lib/pdk/cli/util.rb:80
483
+ msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
484
+ msgstr ""
485
+
486
+ #: ../lib/pdk/cli/util.rb:106
487
+ msgid "Using Ruby %{version}"
488
+ msgstr ""
489
+
490
+ #: ../lib/pdk/cli/util.rb:116
491
+ msgid "Using %{gem} %{version}"
492
+ msgstr ""
493
+
494
+ #: ../lib/pdk/cli/util.rb:146
495
+ msgid "You cannot specify a %{first} and %{second} at the same time"
496
+ msgstr ""
497
+
498
+ #: ../lib/pdk/cli/util.rb:158
499
+ msgid "You cannot specify a %{first} and %{second} at the same time."
500
+ msgstr ""
501
+
502
+ #: ../lib/pdk/cli/util/command_redirector.rb:18
503
+ msgid "Did you mean '%{command}'?"
504
+ msgstr ""
505
+
506
+ #: ../lib/pdk/cli/util/interview.rb:30
507
+ msgid "[Q %{current_number}/%{questions_total}]"
508
+ msgstr ""
509
+
510
+ #: ../lib/pdk/cli/util/interview.rb:34 ../lib/pdk/cli/util/interview.rb:43
511
+ msgid "-->"
512
+ msgstr ""
513
+
514
+ #: ../lib/pdk/cli/util/option_normalizer.rb:6
515
+ msgid "Error: expected comma separated list"
516
+ msgstr ""
517
+
518
+ #: ../lib/pdk/cli/util/option_normalizer.rb:32
519
+ msgid "'%{name}' is not a valid report format (%{valid})"
520
+ msgstr ""
521
+
522
+ #: ../lib/pdk/cli/util/option_validator.rb:14
523
+ msgid "Error: the following values are invalid: %{invalid_entries}"
524
+ msgstr ""
525
+
526
+ #: ../lib/pdk/cli/validate.rb:6
527
+ msgid "validate [validators] [options] [targets]"
528
+ msgstr ""
529
+
530
+ #: ../lib/pdk/cli/validate.rb:7
531
+ msgid "Run static analysis tests."
532
+ msgstr ""
533
+
534
+ #: ../lib/pdk/cli/validate.rb:8
535
+ msgid ""
536
+ "Run metadata, Puppet, Ruby, or Tasks validation.\n"
537
+ "\n"
538
+ "[validators] is an optional comma-separated list of validators to use. If not specified, all validators are used. Note that when using PowerShell, the list of validators must be enclosed in single quotes.\n"
539
+ "\n"
540
+ "[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."
541
+ msgstr ""
542
+
543
+ #: ../lib/pdk/cli/validate.rb:19
544
+ msgid "List all available validators."
545
+ msgstr ""
546
+
547
+ #: ../lib/pdk/cli/validate.rb:20
548
+ msgid "Automatically correct problems where possible."
549
+ msgstr ""
550
+
551
+ #: ../lib/pdk/cli/validate.rb:21
552
+ msgid "Run validations in parallel."
553
+ msgstr ""
554
+
555
+ #: ../lib/pdk/cli/validate.rb:34
556
+ msgid "Available validators: %{validator_names}"
557
+ msgstr ""
558
+
559
+ #: ../lib/pdk/cli/validate.rb:41
560
+ msgid "Code validation can only be run from inside a valid module directory"
561
+ msgstr ""
562
+
563
+ #: ../lib/pdk/cli/validate.rb:57
564
+ msgid "Unknown validator '%{v}'. Available validators: %{validators}."
565
+ msgstr ""
566
+
567
+ #: ../lib/pdk/cli/validate.rb:67 ../lib/pdk/cli/validate.rb:71
568
+ msgid "Running all available validators..."
569
+ msgstr ""
570
+
571
+ #: ../lib/pdk/cli/validate.rb:101
572
+ msgid "Validating module using %{num_of_threads} threads"
573
+ msgstr ""
574
+
575
+ #: ../lib/pdk/generate/module.rb:24
576
+ msgid ""
577
+ "'%{module_name}' is not a valid module name.\n"
578
+ "Module names must begin with a lowercase letter and can only include lowercase letters, digits, and underscores."
579
+ msgstr ""
580
+
581
+ #: ../lib/pdk/generate/module.rb:32
582
+ msgid "The destination directory '%{dir}' already exists"
583
+ msgstr ""
584
+
585
+ #: ../lib/pdk/generate/module.rb:48
586
+ msgid "You do not have permission to write to '%{parent_dir}'"
587
+ msgstr ""
588
+
589
+ #: ../lib/pdk/generate/module.rb:91
590
+ msgid "Module '%{name}' generated at path '%{path}', from template '%{template_url}'."
591
+ msgstr ""
592
+
593
+ #: ../lib/pdk/generate/module.rb:92
594
+ msgid "In your module directory, add classes with the 'pdk new class' command."
595
+ msgstr ""
596
+
597
+ #: ../lib/pdk/generate/module.rb:95
598
+ msgid "Failed to move '%{source}' to '%{target}': %{message}"
599
+ msgstr ""
600
+
601
+ #: ../lib/pdk/generate/module.rb:109
602
+ msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
603
+ msgstr ""
604
+
605
+ #: ../lib/pdk/generate/module.rb:144
606
+ msgid "Unable to create directory '%{dir}': %{message}"
607
+ msgstr ""
608
+
609
+ #: ../lib/pdk/generate/module.rb:156
610
+ msgid "If you have a name for your module, add it here."
611
+ msgstr ""
612
+
613
+ #: ../lib/pdk/generate/module.rb:157
614
+ msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
615
+ msgstr ""
616
+
617
+ #: ../lib/pdk/generate/module.rb:160
618
+ msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
619
+ msgstr ""
620
+
621
+ #: ../lib/pdk/generate/module.rb:164
622
+ msgid "If you have a Puppet Forge username, add it here."
623
+ msgstr ""
624
+
625
+ #: ../lib/pdk/generate/module.rb:165
626
+ msgid "We can use this to upload your module to the Forge when it's complete."
627
+ msgstr ""
628
+
629
+ #: ../lib/pdk/generate/module.rb:168
630
+ msgid "Forge usernames can only contain lowercase letters and numbers"
631
+ msgstr ""
632
+
633
+ #: ../lib/pdk/generate/module.rb:173
634
+ msgid "What version is this module?"
635
+ msgstr ""
636
+
637
+ #: ../lib/pdk/generate/module.rb:174
638
+ msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
639
+ msgstr ""
640
+
641
+ #: ../lib/pdk/generate/module.rb:177
642
+ msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
643
+ msgstr ""
644
+
645
+ #: ../lib/pdk/generate/module.rb:183
646
+ msgid "Who wrote this module?"
647
+ msgstr ""
648
+
649
+ #: ../lib/pdk/generate/module.rb:184
650
+ msgid "This is used to credit the module's author."
651
+ msgstr ""
652
+
653
+ #: ../lib/pdk/generate/module.rb:190
654
+ msgid "What license does this module code fall under?"
655
+ msgstr ""
656
+
657
+ #: ../lib/pdk/generate/module.rb:191
658
+ msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
659
+ msgstr ""
660
+
661
+ #: ../lib/pdk/generate/module.rb:197
662
+ msgid "What operating systems does this module support?"
663
+ msgstr ""
664
+
665
+ #: ../lib/pdk/generate/module.rb:198
666
+ msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
667
+ msgstr ""
668
+
669
+ #: ../lib/pdk/generate/module.rb:208
670
+ msgid "Summarize the purpose of this module in a single sentence."
671
+ msgstr ""
672
+
673
+ #: ../lib/pdk/generate/module.rb:209
674
+ msgid "This helps other Puppet users understand what the module does."
675
+ msgstr ""
676
+
677
+ #: ../lib/pdk/generate/module.rb:216
678
+ msgid "If there is a source code repository for this module, enter the URL here."
679
+ msgstr ""
680
+
681
+ #: ../lib/pdk/generate/module.rb:217
682
+ msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
683
+ msgstr ""
684
+
685
+ #: ../lib/pdk/generate/module.rb:224
686
+ msgid "If there is a URL where others can learn more about this module, enter it here."
687
+ msgstr ""
688
+
689
+ #: ../lib/pdk/generate/module.rb:225 ../lib/pdk/generate/module.rb:232
690
+ msgid "Optional. You can update this later in the metadata.json."
691
+ msgstr ""
692
+
693
+ #: ../lib/pdk/generate/module.rb:231
694
+ msgid "If there is a public issue tracker for this module, enter its URL here."
695
+ msgstr ""
696
+
697
+ #: ../lib/pdk/generate/module.rb:258
698
+ msgid "create"
699
+ msgstr ""
700
+
701
+ #: ../lib/pdk/generate/module.rb:258
702
+ msgid "update"
703
+ msgstr ""
704
+
705
+ #: ../lib/pdk/generate/module.rb:259
706
+ msgid ""
707
+ "\n"
708
+ "We need to %{action} the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
709
+ "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"
710
+ "\n"
711
+ msgstr ""
712
+
713
+ #: ../lib/pdk/generate/module.rb:273
714
+ msgid "No answers given, interview cancelled."
715
+ msgstr ""
716
+
717
+ #: ../lib/pdk/generate/module.rb:297
718
+ msgid "Metadata will be generated based on this information, continue?"
719
+ msgstr ""
720
+
721
+ #: ../lib/pdk/generate/module.rb:299
722
+ msgid "Interview cancelled; exiting."
723
+ msgstr ""
724
+
725
+ #: ../lib/pdk/generate/module.rb:303
726
+ msgid "Process cancelled; exiting."
727
+ msgstr ""
728
+
729
+ #: ../lib/pdk/generate/provider.rb:23
730
+ 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."
731
+ msgstr ""
732
+
733
+ #: ../lib/pdk/generate/provider.rb:33
734
+ msgid ".sync.yml not found"
735
+ msgstr ""
736
+
737
+ #: ../lib/pdk/generate/provider.rb:37
738
+ msgid ".sync.yml contents is not a Hash"
739
+ msgstr ""
740
+
741
+ #: ../lib/pdk/generate/provider.rb:39
742
+ msgid "Gemfile configuration not found"
743
+ msgstr ""
744
+
745
+ #: ../lib/pdk/generate/provider.rb:41
746
+ msgid "Gemfile.optional configuration not found"
747
+ msgstr ""
748
+
749
+ #: ../lib/pdk/generate/provider.rb:43
750
+ msgid "Gemfile.optional.:development configuration not found"
751
+ msgstr ""
752
+
753
+ #: ../lib/pdk/generate/provider.rb:45
754
+ msgid "puppet-resource_api not found in the Gemfile config"
755
+ msgstr ""
756
+
757
+ #: ../lib/pdk/generate/provider.rb:47
758
+ msgid "spec/spec_helper.rb configuration not found"
759
+ msgstr ""
760
+
761
+ #: ../lib/pdk/generate/provider.rb:49
762
+ msgid "spec/spec_helper.rb.mock_with configuration not found"
763
+ msgstr ""
764
+
765
+ #: ../lib/pdk/generate/provider.rb:51
766
+ msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
767
+ msgstr ""
768
+
769
+ #: ../lib/pdk/generate/puppet_object.rb:105
770
+ msgid "Unable to generate %{object_type}; '%{file}' already exists."
771
+ msgstr ""
772
+
773
+ #: ../lib/pdk/generate/puppet_object.rb:171
774
+ msgid "Creating '%{file}' from template."
775
+ msgstr ""
776
+
777
+ #: ../lib/pdk/generate/puppet_object.rb:178
778
+ msgid "Unable to create directory '%{path}': %{message}"
779
+ msgstr ""
780
+
781
+ #: ../lib/pdk/generate/puppet_object.rb:186
782
+ msgid "Unable to write to file '%{path}': %{message}"
783
+ msgstr ""
784
+
785
+ #: ../lib/pdk/generate/puppet_object.rb:209
786
+ msgid "No %{dir_type} template specified; trying next template directory."
787
+ msgstr ""
788
+
789
+ #: ../lib/pdk/generate/puppet_object.rb:222
790
+ msgid "Unable to find a %{type} template in %{url}; trying next template directory."
791
+ msgstr ""
792
+
793
+ #: ../lib/pdk/generate/puppet_object.rb:224
794
+ msgid "Unable to find the %{type} template in %{url}."
795
+ msgstr ""
796
+
797
+ #: ../lib/pdk/generate/puppet_object.rb:283
798
+ msgid "'%{dir}' does not contain valid Puppet module metadata: %{msg}"
799
+ msgstr ""
800
+
801
+ #: ../lib/pdk/generate/task.rb:54
802
+ msgid "A task named '%{name}' already exists in this module; defined in %{file}"
803
+ msgstr ""
804
+
805
+ #: ../lib/pdk/module/build.rb:149
806
+ msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
807
+ msgstr ""
808
+
809
+ #: ../lib/pdk/module/convert.rb:23 ../lib/pdk/module/update.rb:18
810
+ msgid "No changes required."
811
+ msgstr ""
812
+
813
+ #: ../lib/pdk/module/convert.rb:34
814
+ 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."
815
+ msgstr ""
816
+
817
+ #: ../lib/pdk/module/convert.rb:39 ../lib/pdk/module/update.rb:30
818
+ msgid "Do you want to continue and make these changes to your module?"
819
+ msgstr ""
820
+
821
+ #: ../lib/pdk/module/convert.rb:85
822
+ msgid "skipping '%{path}'"
823
+ msgstr ""
824
+
825
+ #: ../lib/pdk/module/convert.rb:112
826
+ msgid "Unable to update module metadata; %{path} exists but it is not readable."
827
+ msgstr ""
828
+
829
+ #: ../lib/pdk/module/convert.rb:128
830
+ msgid "Unable to update module metadata; %{path} exists but it is not a file."
831
+ msgstr ""
832
+
833
+ #: ../lib/pdk/module/convert.rb:171 ../lib/pdk/module/convert.rb:176 ../lib/pdk/module/convert.rb:180
834
+ msgid ""
835
+ "\n"
836
+ "%{banner}"
837
+ msgstr ""
838
+
839
+ #: ../lib/pdk/module/convert.rb:182
840
+ msgid ""
841
+ "\n"
842
+ "%{summary}\n"
843
+ "\n"
844
+ msgstr ""
845
+
846
+ #: ../lib/pdk/module/convert.rb:193
847
+ msgid ""
848
+ "\n"
849
+ "You can find a report of differences in %{path}.\n"
850
+ "\n"
851
+ msgstr ""
852
+
853
+ #: ../lib/pdk/module/metadata.rb:94
854
+ msgid "Cannot read metadata from file: no path to file was given."
855
+ msgstr ""
856
+
857
+ #: ../lib/pdk/module/metadata.rb:98
858
+ msgid "'%{file}' does not exist or is not a file."
859
+ msgstr ""
860
+
861
+ #: ../lib/pdk/module/metadata.rb:102
862
+ msgid "Unable to open '%{file}' for reading."
863
+ msgstr ""
864
+
865
+ #: ../lib/pdk/module/metadata.rb:108
866
+ msgid "Invalid JSON in metadata.json: %{msg}"
867
+ msgstr ""
868
+
869
+ #: ../lib/pdk/module/metadata.rb:139
870
+ msgid "Module metadata does not contain any requirements."
871
+ msgstr ""
872
+
873
+ #: ../lib/pdk/module/metadata.rb:140
874
+ msgid "Module metadata does not contain a \"puppet\" requirement."
875
+ msgstr ""
876
+
877
+ #: ../lib/pdk/module/metadata.rb:141
878
+ msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
879
+ msgstr ""
880
+
881
+ #: ../lib/pdk/module/metadata.rb:180
882
+ msgid "Field must be a dash-separated user name and module name."
883
+ msgstr ""
884
+
885
+ #: ../lib/pdk/module/metadata.rb:182
886
+ msgid "Module name must contain only alphanumeric or underscore characters."
887
+ msgstr ""
888
+
889
+ #: ../lib/pdk/module/metadata.rb:184
890
+ msgid "Module name must begin with a letter."
891
+ msgstr ""
892
+
893
+ #: ../lib/pdk/module/metadata.rb:186
894
+ msgid "Namespace must contain only alphanumeric characters."
895
+ msgstr ""
896
+
897
+ #: ../lib/pdk/module/metadata.rb:189
898
+ msgid "Invalid 'name' field in metadata.json: %{err}"
899
+ msgstr ""
900
+
901
+ #: ../lib/pdk/module/templatedir.rb:42
902
+ msgid "%{class_name} must be initialized with a block."
903
+ msgstr ""
904
+
905
+ #: ../lib/pdk/module/templatedir.rb:109
906
+ msgid "Rendering '%{template}'..."
907
+ msgstr ""
908
+
909
+ #: ../lib/pdk/module/templatedir.rb:122
910
+ msgid ""
911
+ "Failed to render template '%{template}'\n"
912
+ "%{exception}: %{message}"
913
+ msgstr ""
914
+
915
+ #: ../lib/pdk/module/templatedir.rb:191
916
+ msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
917
+ msgstr ""
918
+
919
+ #: ../lib/pdk/module/templatedir.rb:193
920
+ msgid "The specified template '%{path}' is not a directory."
921
+ msgstr ""
922
+
923
+ #: ../lib/pdk/module/templatedir.rb:198
924
+ msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
925
+ msgstr ""
926
+
927
+ #: ../lib/pdk/module/templatedir.rb:203
928
+ 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."
929
+ msgstr ""
930
+
931
+ #: ../lib/pdk/module/templatedir.rb:218
932
+ msgid "The directory '%{dir}' doesn't exist"
933
+ msgstr ""
934
+
935
+ #: ../lib/pdk/module/templatedir.rb:273
936
+ msgid "'%{file}' is not a valid YAML file: %{message}"
937
+ msgstr ""
938
+
939
+ #: ../lib/pdk/module/templatedir.rb:301
940
+ msgid "Unable to set HEAD of git repository at '%{repo}' to ref:'%{ref}'."
941
+ msgstr ""
942
+
943
+ #: ../lib/pdk/module/templatedir.rb:306
944
+ msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
945
+ msgstr ""
946
+
947
+ #: ../lib/pdk/module/update.rb:12
948
+ msgid "This module is already up to date with version %{version} of the template."
949
+ msgstr ""
950
+
951
+ #: ../lib/pdk/module/update.rb:97
952
+ msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
953
+ msgstr ""
954
+
955
+ #: ../lib/pdk/module/update.rb:99
956
+ msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
957
+ msgstr ""
958
+
959
+ #: ../lib/pdk/module/update_manager.rb:110
960
+ msgid "unlinking '%{path}'"
961
+ msgstr ""
962
+
963
+ #: ../lib/pdk/module/update_manager.rb:113
964
+ msgid "'%{path}': already gone"
965
+ msgstr ""
966
+
967
+ #: ../lib/pdk/module/update_manager.rb:116
968
+ msgid "Unable to remove '%{path}': %{message}"
969
+ msgstr ""
970
+
971
+ #: ../lib/pdk/module/update_manager.rb:134
972
+ msgid "Unable to open '%{path}' for reading"
973
+ msgstr ""
974
+
975
+ #: ../lib/pdk/module/update_manager.rb:151
976
+ msgid "writing '%{path}'"
977
+ msgstr ""
978
+
979
+ #: ../lib/pdk/module/update_manager.rb:154
980
+ msgid "You do not have permission to write to '%{path}'"
981
+ msgstr ""
982
+
983
+ #: ../lib/pdk/report/event.rb:191
984
+ msgid "File not specified."
985
+ msgstr ""
986
+
987
+ #: ../lib/pdk/report/event.rb:195
988
+ msgid "File must be a String."
989
+ msgstr ""
990
+
991
+ #: ../lib/pdk/report/event.rb:228
992
+ msgid "State not specified."
993
+ msgstr ""
994
+
995
+ #: ../lib/pdk/report/event.rb:233
996
+ msgid "State must be a Symbol, not %{type}"
997
+ msgstr ""
998
+
999
+ #: ../lib/pdk/report/event.rb:238
1000
+ msgid "Invalid state %{state}. Valid states are: %{valid}."
1001
+ msgstr ""
1002
+
1003
+ #: ../lib/pdk/report/event.rb:257
1004
+ msgid "Source not specified."
1005
+ msgstr ""
1006
+
1007
+ #: ../lib/pdk/report/event.rb:278
1008
+ msgid "Line must be an Integer or a String representation of an Integer."
1009
+ msgstr ""
1010
+
1011
+ #: ../lib/pdk/report/event.rb:282
1012
+ msgid "The line number can contain only the digits 0-9."
1013
+ msgstr ""
1014
+
1015
+ #: ../lib/pdk/report/event.rb:303
1016
+ msgid "Column must be an Integer or a String representation of an Integer."
1017
+ msgstr ""
1018
+
1019
+ #: ../lib/pdk/report/event.rb:307
1020
+ msgid "The column number can contain only the digits 0-9."
1021
+ msgstr ""
1022
+
1023
+ #: ../lib/pdk/report/event.rb:325
1024
+ msgid "Trace must be an Array of stack trace lines."
1025
+ msgstr ""
1026
+
1027
+ #: ../lib/pdk/template_file.rb:62
1028
+ msgid "'%{template}' is not a readable file"
1029
+ msgstr ""
1030
+
1031
+ #: ../lib/pdk/tests/unit.rb:47
1032
+ msgid "Cleaning up after running unit tests."
1033
+ msgstr ""
1034
+
1035
+ #: ../lib/pdk/tests/unit.rb:51
1036
+ msgid "The spec_clean rake task failed with the following error(s):"
1037
+ msgstr ""
1038
+
1039
+ #: ../lib/pdk/tests/unit.rb:52
1040
+ msgid "Failed to clean up after running unit tests"
1041
+ msgstr ""
1042
+
1043
+ #: ../lib/pdk/tests/unit.rb:56
1044
+ msgid "Preparing to run the unit tests."
1045
+ msgstr ""
1046
+
1047
+ #: ../lib/pdk/tests/unit.rb:62
1048
+ msgid "The spec_prep rake task failed with the following error(s):"
1049
+ msgstr ""
1050
+
1051
+ #: ../lib/pdk/tests/unit.rb:63
1052
+ msgid "Failed to prepare to run the unit tests."
1053
+ msgstr ""
1054
+
1055
+ #: ../lib/pdk/tests/unit.rb:75
1056
+ msgid "Running unit tests."
1057
+ msgstr ""
1058
+
1059
+ #: ../lib/pdk/tests/unit.rb:75
1060
+ msgid "Running unit tests in parallel."
1061
+ msgstr ""
1062
+
1063
+ #: ../lib/pdk/tests/unit.rb:89
1064
+ msgid "Unit test output did not contain a valid JSON result: %{output}"
1065
+ msgstr ""
1066
+
1067
+ #: ../lib/pdk/tests/unit.rb:141
1068
+ msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1069
+ msgstr ""
1070
+
1071
+ #: ../lib/pdk/tests/unit.rb:197
1072
+ msgid "Failed to find valid JSON in output from rspec: %{output}"
1073
+ msgstr ""
1074
+
1075
+ #: ../lib/pdk/tests/unit.rb:202
1076
+ msgid "Unable to enumerate examples. rspec reported: %{message}"
1077
+ msgstr ""
1078
+
1079
+ #: ../lib/pdk/util.rb:60
1080
+ msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1081
+ msgstr ""
1082
+
1083
+ #: ../lib/pdk/util.rb:85
1084
+ msgid "Package basedir requested for non-package install."
1085
+ msgstr ""
1086
+
1087
+ #: ../lib/pdk/util.rb:210
1088
+ msgid "Unable to access the previously used template '%{template}', using the default template instead."
1089
+ msgstr ""
1090
+
1091
+ #: ../lib/pdk/util/bundler.rb:19
1092
+ msgid "Bundler managed gems already up to date."
1093
+ msgstr ""
1094
+
1095
+ #: ../lib/pdk/util/bundler.rb:24
1096
+ msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
1097
+ msgstr ""
1098
+
1099
+ #: ../lib/pdk/util/bundler.rb:97
1100
+ msgid "Checking for missing Gemfile dependencies."
1101
+ msgstr ""
1102
+
1103
+ #: ../lib/pdk/util/bundler.rb:126
1104
+ msgid "Vendored Gemfile.lock (%{source}) not found."
1105
+ msgstr ""
1106
+
1107
+ #: ../lib/pdk/util/bundler.rb:131
1108
+ msgid "Using vendored Gemfile.lock from %{source}."
1109
+ msgstr ""
1110
+
1111
+ #: ../lib/pdk/util/bundler.rb:137
1112
+ msgid "Resolving default Gemfile dependencies."
1113
+ msgstr ""
1114
+
1115
+ #: ../lib/pdk/util/bundler.rb:144
1116
+ msgid "Unable to resolve default Gemfile dependencies."
1117
+ msgstr ""
1118
+
1119
+ #: ../lib/pdk/util/bundler.rb:157
1120
+ msgid "Updating Gemfile dependencies."
1121
+ msgstr ""
1122
+
1123
+ #: ../lib/pdk/util/bundler.rb:185
1124
+ msgid "Unable to resolve Gemfile dependencies."
1125
+ msgstr ""
1126
+
1127
+ #: ../lib/pdk/util/bundler.rb:196
1128
+ msgid "Installing missing Gemfile dependencies."
1129
+ msgstr ""
1130
+
1131
+ #: ../lib/pdk/util/bundler.rb:204
1132
+ msgid "Unable to install missing Gemfile dependencies."
1133
+ msgstr ""
1134
+
1135
+ #: ../lib/pdk/util/bundler.rb:218
1136
+ msgid ""
1137
+ "Failed to generate binstubs for '%{gems}':\n"
1138
+ "%{output}"
1139
+ msgstr ""
1140
+
1141
+ #: ../lib/pdk/util/bundler.rb:219
1142
+ msgid "Unable to install requested binstubs."
1143
+ msgstr ""
1144
+
1145
+ #: ../lib/pdk/util/git.rb:64
1146
+ msgid "Unable to access the template repository \"%{repository}\""
1147
+ msgstr ""
1148
+
1149
+ #: ../lib/pdk/util/puppet_version.rb:38
1150
+ msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
1151
+ msgstr ""
1152
+
1153
+ #: ../lib/pdk/util/puppet_version.rb:59
1154
+ msgid "Unable to clone git repository at '%{repo}'."
1155
+ msgstr ""
1156
+
1157
+ #: ../lib/pdk/util/puppet_version.rb:68
1158
+ msgid "Unable to fetch from git remote at '%{repo}'."
1159
+ msgstr ""
1160
+
1161
+ #: ../lib/pdk/util/puppet_version.rb:77
1162
+ msgid "Unable to update git repository at '%{cachedir}'."
1163
+ msgstr ""
1164
+
1165
+ #: ../lib/pdk/util/puppet_version.rb:98
1166
+ msgid "Unable to find a Puppet gem matching %{requirement}."
1167
+ msgstr ""
1168
+
1169
+ #: ../lib/pdk/util/puppet_version.rb:105
1170
+ msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
1171
+ msgstr ""
1172
+
1173
+ #: ../lib/pdk/util/puppet_version.rb:122
1174
+ msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
1175
+ msgstr ""
1176
+
1177
+ #: ../lib/pdk/util/puppet_version.rb:127
1178
+ msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
1179
+ msgstr ""
1180
+
1181
+ #: ../lib/pdk/util/puppet_version.rb:140
1182
+ msgid "Unable to determine Puppet version for module: no metadata.json present in module."
1183
+ msgstr ""
1184
+
1185
+ #: ../lib/pdk/util/puppet_version.rb:166
1186
+ msgid "%{version} is not a valid version number."
1187
+ msgstr ""
1188
+
1189
+ #: ../lib/pdk/util/puppet_version.rb:200
1190
+ msgid "Failed to parse Puppet Enterprise version map file."
1191
+ msgstr ""
1192
+
1193
+ #: ../lib/pdk/util/ruby_version.rb:33
1194
+ msgid "Unknown Ruby version \"%{ruby_version}\""
1195
+ msgstr ""
1196
+
1197
+ #: ../lib/pdk/util/vendored_file.rb:49
1198
+ msgid "%{file_name} was not found in the cache, downloading it from %{url}."
1199
+ msgstr ""
1200
+
1201
+ #: ../lib/pdk/util/vendored_file.rb:64
1202
+ msgid "Unable to download %{url}. %{code}: %{message}."
1203
+ msgstr ""
1204
+
1205
+ #: ../lib/pdk/util/vendored_file.rb:73
1206
+ msgid "Unable to download %{url}. Check internet connectivity and try again. %{error}"
1207
+ msgstr ""
1208
+
1209
+ #: ../lib/pdk/util/windows/api_types.rb:31
1210
+ msgid "Unable to convert value %{string} to encoding %{encoding} due to %{error}"
1211
+ msgstr ""
1212
+
1213
+ #: ../lib/pdk/util/windows/file.rb:15
1214
+ msgid "Failed to call GetLongPathName"
1215
+ msgstr ""
1216
+
1217
+ #: ../lib/pdk/validate/base_validator.rb:102
1218
+ msgid "Invoking %{cmd}"
1219
+ msgstr ""
1220
+
1221
+ #: ../lib/pdk/validate/base_validator.rb:107
1222
+ msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1223
+ msgstr ""
1224
+
1225
+ #: ../lib/pdk/validate/base_validator.rb:111
1226
+ msgid "Target does not contain any files to validate (%{pattern})."
1227
+ msgstr ""
1228
+
1229
+ #: ../lib/pdk/validate/base_validator.rb:120
1230
+ msgid "%{validator}: Skipped '%{target}'. Target file not found."
1231
+ msgstr ""
1232
+
1233
+ #: ../lib/pdk/validate/base_validator.rb:124
1234
+ msgid "File does not exist."
1235
+ msgstr ""
1236
+
1237
+ #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:23
1238
+ msgid "Checking module metadata style (%{targets})."
1239
+ msgstr ""
1240
+
1241
+ #: ../lib/pdk/validate/metadata/metadata_json_lint.rb:40
1242
+ msgid "More than 1 target provided to PDK::Validate::MetadataJSONLint."
1243
+ msgstr ""
1244
+
1245
+ #: ../lib/pdk/validate/metadata/metadata_syntax.rb:18
1246
+ msgid "Checking metadata syntax (%{targets})."
1247
+ msgstr ""
1248
+
1249
+ #: ../lib/pdk/validate/metadata/metadata_syntax.rb:69 ../lib/pdk/validate/tasks/metadata_lint.rb:77
1250
+ msgid "Could not be read."
1251
+ msgstr ""
1252
+
1253
+ #: ../lib/pdk/validate/puppet/puppet_lint.rb:22
1254
+ msgid "Checking Puppet manifest style (%{pattern})."
1255
+ msgstr ""
1256
+
1257
+ #: ../lib/pdk/validate/puppet/puppet_syntax.rb:45
1258
+ msgid "Checking Puppet manifest syntax (%{pattern})."
1259
+ msgstr ""
1260
+
1261
+ #: ../lib/pdk/validate/ruby/rubocop.rb:26
1262
+ msgid "Checking Ruby code style (%{pattern})."
1263
+ msgstr ""
1264
+
1265
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:23
1266
+ msgid "Checking task metadata style (%{targets})."
1267
+ msgstr ""
1268
+
1269
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:56
1270
+ msgid "Failed to parse Task Metadata Schema file."
1271
+ msgstr ""
1272
+
1273
+ #: ../lib/pdk/validate/tasks/metadata_lint.rb:92
1274
+ msgid "Unable to validate Task Metadata. %{error}."
1275
+ msgstr ""
1276
+
1277
+ #: ../lib/pdk/validate/tasks/name.rb:9
1278
+ msgid "Invalid task name. Task names must start with a lowercase letterand can only contain lowercase letters, numbers, and underscores."
1279
+ msgstr ""
1280
+
1281
+ #: ../lib/pdk/validate/tasks/name.rb:23
1282
+ msgid "Checking task names (%{targets})."
1283
+ msgstr ""