pdk 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/locales/pdk.pot CHANGED
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v0.1.0-79-gdfb32a1\n"
9
+ "Project-Id-Version: puppet development kit v0.2.0-1-g4a44097\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2017-06-16 16:10+0100\n"
13
- "PO-Revision-Date: 2017-06-16 16:10+0100\n"
12
+ "POT-Creation-Date: 2017-06-26 14:48+0100\n"
13
+ "PO-Revision-Date: 2017-06-26 14:48+0100\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -19,31 +19,35 @@ msgstr ""
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
21
21
 
22
- #: ../lib/pdk/cli.rb:33
22
+ #: ../lib/pdk/cli.rb:34
23
23
  msgid "Specifies the URL to the template to use when creating new modules, and other parts."
24
24
  msgstr ""
25
25
 
26
- #: ../lib/pdk/cli.rb:38
26
+ #: ../lib/pdk/cli.rb:39
27
27
  msgid "pdk command [options]"
28
28
  msgstr ""
29
29
 
30
- #: ../lib/pdk/cli.rb:39
30
+ #: ../lib/pdk/cli.rb:40
31
31
  msgid "Puppet Development Kit"
32
32
  msgstr ""
33
33
 
34
- #: ../lib/pdk/cli.rb:40
34
+ #: ../lib/pdk/cli.rb:41
35
35
  msgid "The shortest path to better modules."
36
36
  msgstr ""
37
37
 
38
- #: ../lib/pdk/cli.rb:43
38
+ #: ../lib/pdk/cli.rb:44
39
+ msgid "show version of pdk"
40
+ msgstr ""
41
+
42
+ #: ../lib/pdk/cli.rb:49
39
43
  msgid "show help for this command"
40
44
  msgstr ""
41
45
 
42
- #: ../lib/pdk/cli.rb:48
46
+ #: ../lib/pdk/cli.rb:54
43
47
  msgid "Specify desired output format. Valid formats are '%{available_formats}'. You may also specify a file to which the formatted output will be directed, for example: '--format=junit:report.xml'. This option may be specified multiple times as long as each option specifies a distinct target file."
44
48
  msgstr ""
45
49
 
46
- #: ../lib/pdk/cli.rb:67
50
+ #: ../lib/pdk/cli.rb:73
47
51
  msgid "Enable debug output."
48
52
  msgstr ""
49
53
 
@@ -51,22 +55,26 @@ msgstr ""
51
55
  msgid "An unexpected error has occurred, try running the command again with --debug"
52
56
  msgstr ""
53
57
 
54
- #: ../lib/pdk/cli/exec.rb:37
58
+ #: ../lib/pdk/cli/exec.rb:44
55
59
  msgid "Using '%{vendored_bin_path}'"
56
60
  msgstr ""
57
61
 
58
- #: ../lib/pdk/cli/exec.rb:40
62
+ #: ../lib/pdk/cli/exec.rb:47
59
63
  msgid "Trying '%{fallback}' from the system PATH, instead of '%{vendored_bin_path}'"
60
64
  msgstr ""
61
65
 
62
- #: ../lib/pdk/cli/exec.rb:70
66
+ #: ../lib/pdk/cli/exec.rb:77
63
67
  msgid "Expected execution context to be :system or :module but got '%{context}'"
64
68
  msgstr ""
65
69
 
66
- #: ../lib/pdk/cli/exec.rb:129
70
+ #: ../lib/pdk/cli/exec.rb:139
67
71
  msgid "Failed to execute '%{command}': %{message}"
68
72
  msgstr ""
69
73
 
74
+ #: ../lib/pdk/cli/exec.rb:141
75
+ msgid "Failed to execute process: %{message}"
76
+ msgstr ""
77
+
70
78
  #: ../lib/pdk/cli/new.rb:5
71
79
  msgid "new <type> [options]"
72
80
  msgstr ""
@@ -153,15 +161,27 @@ msgstr ""
153
161
  msgid "List of all available unit tests: (TODO)"
154
162
  msgstr ""
155
163
 
164
+ #: ../lib/pdk/cli/util/interview.rb:30
165
+ msgid "[Q %{current_number}/%{questions_total}]"
166
+ msgstr ""
167
+
168
+ #: ../lib/pdk/cli/util/interview.rb:33
169
+ msgid "-->"
170
+ msgstr ""
171
+
156
172
  #: ../lib/pdk/cli/util/option_normalizer.rb:6
157
173
  msgid "Error: expected comma separated list"
158
174
  msgstr ""
159
175
 
160
- #: ../lib/pdk/cli/util/option_normalizer.rb:33
176
+ #: ../lib/pdk/cli/util/option_normalizer.rb:32
177
+ msgid "'%{name}' is not a valid report format (%{valid})"
178
+ msgstr ""
179
+
180
+ #: ../lib/pdk/cli/util/option_normalizer.rb:54
161
181
  msgid "'%{name}' is not a valid parameter name"
162
182
  msgstr ""
163
183
 
164
- #: ../lib/pdk/cli/util/option_normalizer.rb:37
184
+ #: ../lib/pdk/cli/util/option_normalizer.rb:60
165
185
  msgid "'%{type}' is not a valid data type"
166
186
  msgstr ""
167
187
 
@@ -173,95 +193,135 @@ msgstr ""
173
193
  msgid "Non-standard data type '%{type}', make sure the type is available in your code, or dependencies"
174
194
  msgstr ""
175
195
 
176
- #: ../lib/pdk/cli/validate.rb:4
196
+ #: ../lib/pdk/cli/validate.rb:6
177
197
  msgid "validate [options]"
178
198
  msgstr ""
179
199
 
180
- #: ../lib/pdk/cli/validate.rb:5
200
+ #: ../lib/pdk/cli/validate.rb:7
181
201
  msgid "Run static analysis tests."
182
202
  msgstr ""
183
203
 
184
- #: ../lib/pdk/cli/validate.rb:6
204
+ #: ../lib/pdk/cli/validate.rb:8
185
205
  msgid "Run metadata, puppet, or ruby validation."
186
206
  msgstr ""
187
207
 
188
- #: ../lib/pdk/cli/validate.rb:8
208
+ #: ../lib/pdk/cli/validate.rb:10
189
209
  msgid "list all available validators"
190
210
  msgstr ""
191
211
 
192
- #: ../lib/pdk/cli/validate.rb:19
212
+ #: ../lib/pdk/cli/validate.rb:18
193
213
  msgid "Available validators: %{validator_names}"
194
214
  msgstr ""
195
215
 
196
- #: ../lib/pdk/cli/validate.rb:33
216
+ #: ../lib/pdk/cli/validate.rb:32
197
217
  msgid "Unknown validator '%{v}'. Available validators: %{validators}"
198
218
  msgstr ""
199
219
 
200
- #: ../lib/pdk/cli/validate.rb:43 ../lib/pdk/cli/validate.rb:47
220
+ #: ../lib/pdk/cli/validate.rb:42 ../lib/pdk/cli/validate.rb:46
201
221
  msgid "Running all available validators..."
202
222
  msgstr ""
203
223
 
204
- #: ../lib/pdk/generators/module.rb:31
224
+ #: ../lib/pdk/generators/module.rb:33
205
225
  msgid "The destination directory '%{dir}' already exists"
206
226
  msgstr ""
207
227
 
208
- #: ../lib/pdk/generators/module.rb:71
228
+ #: ../lib/pdk/generators/module.rb:75
209
229
  msgid "Unable to create directory '%{dir}'"
210
230
  msgstr ""
211
231
 
212
- #: ../lib/pdk/generators/module.rb:77
213
- msgid "We need to create a metadata.json file for this module. Please answer the following questions; if the question is not applicable to this module, feel free to leave it blank."
232
+ #: ../lib/pdk/generators/module.rb:84
233
+ msgid "What is your Puppet Forge username?"
214
234
  msgstr ""
215
235
 
216
236
  #: ../lib/pdk/generators/module.rb:85
217
- msgid "What is your Puppet Forge username?"
237
+ msgid "This will be used when uploading your module to the Forge. You can opt out of this at any time."
218
238
  msgstr ""
219
239
 
220
240
  #: ../lib/pdk/generators/module.rb:88
221
- msgid "We're sorry, we could not parse your module name: %{message}"
241
+ msgid "Forge usernames can only contain letters and numbers"
222
242
  msgstr ""
223
243
 
224
244
  #: ../lib/pdk/generators/module.rb:93
225
- msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
245
+ msgid "What version is this module?"
226
246
  msgstr ""
227
247
 
228
248
  #: ../lib/pdk/generators/module.rb:94
229
- msgid "What version is this module?"
249
+ msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
230
250
  msgstr ""
231
251
 
232
252
  #: ../lib/pdk/generators/module.rb:97
233
- msgid "We're sorry, we could not parse that as a Semantic Version: %{message}"
253
+ msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
234
254
  msgstr ""
235
255
 
236
256
  #: ../lib/pdk/generators/module.rb:102
237
257
  msgid "Who wrote this module?"
238
258
  msgstr ""
239
259
 
240
- #: ../lib/pdk/generators/module.rb:107
260
+ #: ../lib/pdk/generators/module.rb:103
261
+ msgid "The person who gets credit for creating the module. "
262
+ msgstr ""
263
+
264
+ #: ../lib/pdk/generators/module.rb:109
241
265
  msgid "What license does this module code fall under?"
242
266
  msgstr ""
243
267
 
244
- #: ../lib/pdk/generators/module.rb:112
245
- msgid "How would you describe this module in a single sentence?"
268
+ #: ../lib/pdk/generators/module.rb:110
269
+ msgid "This should be an identifier from https://spdk.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
246
270
  msgstr ""
247
271
 
248
272
  #: ../lib/pdk/generators/module.rb:116
249
- msgid "Where is this module's source code repository?"
273
+ msgid "How would you describe this module in a single sentence?"
250
274
  msgstr ""
251
275
 
252
- #: ../lib/pdk/generators/module.rb:120
253
- msgid "Where can others go to learn more about this module?"
276
+ #: ../lib/pdk/generators/module.rb:117
277
+ msgid "To help other Puppet users understand what the module does."
278
+ msgstr ""
279
+
280
+ #: ../lib/pdk/generators/module.rb:123
281
+ msgid "Where is this modules's source code repository?"
254
282
  msgstr ""
255
283
 
256
284
  #: ../lib/pdk/generators/module.rb:124
285
+ msgid "Usually a GitHub URL"
286
+ msgstr ""
287
+
288
+ #: ../lib/pdk/generators/module.rb:130
289
+ msgid "Where can others go to learn more about this module?"
290
+ msgstr ""
291
+
292
+ #: ../lib/pdk/generators/module.rb:131
293
+ msgid "A web site that offers full information about your module."
294
+ msgstr ""
295
+
296
+ #: ../lib/pdk/generators/module.rb:136
257
297
  msgid "Where can others go to file issues about this module?"
258
298
  msgstr ""
259
299
 
260
- #: ../lib/pdk/generators/module.rb:133
300
+ #: ../lib/pdk/generators/module.rb:137
301
+ msgid "A web site with a public bug tracker for your module."
302
+ msgstr ""
303
+
304
+ #: ../lib/pdk/generators/module.rb:150
305
+ msgid ""
306
+ "\n"
307
+ "We need to create a metadata.json file for this module, so we're going to ask you %{count} quick questions.\n"
308
+ "If the question is not applicable to this module, just leave the answer blank.\n"
309
+ "\n"
310
+ msgstr ""
311
+
312
+ #: ../lib/pdk/generators/module.rb:158
313
+ msgid "Interview cancelled, aborting..."
314
+ msgstr ""
315
+
316
+ #: ../lib/pdk/generators/module.rb:166
317
+ msgid "SUMMARY"
318
+ msgstr ""
319
+
320
+ #: ../lib/pdk/generators/module.rb:172
261
321
  msgid "About to generate this module; continue?"
262
322
  msgstr ""
263
323
 
264
- #: ../lib/pdk/generators/module.rb:134
324
+ #: ../lib/pdk/generators/module.rb:173
265
325
  msgid "Aborting..."
266
326
  msgstr ""
267
327
 
@@ -305,28 +365,68 @@ msgstr ""
305
365
  msgid "Unable to clone git repository '%{repo}' to '%{dest}'"
306
366
  msgstr ""
307
367
 
308
- #: ../lib/pdk/module/templatedir.rb:106
368
+ #: ../lib/pdk/module/templatedir.rb:107
309
369
  msgid "Rendering '%{template}'..."
310
370
  msgstr ""
311
371
 
312
- #: ../lib/pdk/module/templatedir.rb:112
372
+ #: ../lib/pdk/module/templatedir.rb:113
313
373
  msgid ""
314
374
  "Failed to render template '%{template}'\n"
315
375
  "%{exception}: %{message}"
316
376
  msgstr ""
317
377
 
318
- #: ../lib/pdk/module/templatedir.rb:176
378
+ #: ../lib/pdk/module/templatedir.rb:177
319
379
  msgid "The specified template '%{path}' is not a directory"
320
380
  msgstr ""
321
381
 
322
- #: ../lib/pdk/module/templatedir.rb:180
382
+ #: ../lib/pdk/module/templatedir.rb:181
323
383
  msgid "The template at '%{path}' does not contain a moduleroot directory"
324
384
  msgstr ""
325
385
 
326
- #: ../lib/pdk/module/templatedir.rb:224
386
+ #: ../lib/pdk/module/templatedir.rb:225
327
387
  msgid "'%{file}' is not a valid YAML file: %{message}"
328
388
  msgstr ""
329
389
 
390
+ #: ../lib/pdk/report/event.rb:155
391
+ msgid "file not specified"
392
+ msgstr ""
393
+
394
+ #: ../lib/pdk/report/event.rb:159
395
+ msgid "file must be a String"
396
+ msgstr ""
397
+
398
+ #: ../lib/pdk/report/event.rb:190
399
+ msgid "state not specified"
400
+ msgstr ""
401
+
402
+ #: ../lib/pdk/report/event.rb:195
403
+ msgid "state must be a Symbol, not %{type}"
404
+ msgstr ""
405
+
406
+ #: ../lib/pdk/report/event.rb:200
407
+ msgid "Invalid state %{state}, valid states are: %{valid}"
408
+ msgstr ""
409
+
410
+ #: ../lib/pdk/report/event.rb:219
411
+ msgid "source not specified"
412
+ msgstr ""
413
+
414
+ #: ../lib/pdk/report/event.rb:240
415
+ msgid "line must be an Integer or a String representation of an Integer"
416
+ msgstr ""
417
+
418
+ #: ../lib/pdk/report/event.rb:244
419
+ msgid "the line number can only contain the digits 0-9"
420
+ msgstr ""
421
+
422
+ #: ../lib/pdk/report/event.rb:265
423
+ msgid "column must be an Integer or a String representation of an Integer"
424
+ msgstr ""
425
+
426
+ #: ../lib/pdk/report/event.rb:269
427
+ msgid "the column number can only contain the digits 0-9"
428
+ msgstr ""
429
+
330
430
  #: ../lib/pdk/template_file.rb:62
331
431
  msgid "'%{template}' is not a readable file"
332
432
  msgstr ""
@@ -335,40 +435,88 @@ msgstr ""
335
435
  msgid "Running unit tests: %{tests}"
336
436
  msgstr ""
337
437
 
438
+ #: ../lib/pdk/util.rb:44
439
+ msgid "Cannot resolve a full path to '%{path}' as it does not currently exist"
440
+ msgstr ""
441
+
338
442
  #: ../lib/pdk/util/bundler.rb:15
443
+ msgid "Bundle has already been installed, skipping run"
444
+ msgstr ""
445
+
446
+ #: ../lib/pdk/util/bundler.rb:20
339
447
  msgid "No Gemfile found in '%{cwd}', skipping bundler management"
340
448
  msgstr ""
341
449
 
342
- #: ../lib/pdk/util/bundler.rb:21
450
+ #: ../lib/pdk/util/bundler.rb:26
343
451
  msgid "Unable to resolve Gemfile dependencies."
344
452
  msgstr ""
345
453
 
346
- #: ../lib/pdk/util/bundler.rb:27
454
+ #: ../lib/pdk/util/bundler.rb:32
347
455
  msgid "Unable to install missing Gemfile dependencies."
348
456
  msgstr ""
349
457
 
350
- #: ../lib/pdk/util/bundler.rb:42
458
+ #: ../lib/pdk/util/bundler.rb:51
459
+ msgid "Unable to install requested binstubs."
460
+ msgstr ""
461
+
462
+ #: ../lib/pdk/util/bundler.rb:65
351
463
  msgid "Checking for missing Gemfile dependencies"
352
464
  msgstr ""
353
465
 
354
- #: ../lib/pdk/util/bundler.rb:52
466
+ #: ../lib/pdk/util/bundler.rb:75
355
467
  msgid "Resolving Gemfile dependencies"
356
468
  msgstr ""
357
469
 
358
- #: ../lib/pdk/util/bundler.rb:68
470
+ #: ../lib/pdk/util/bundler.rb:91
359
471
  msgid "Installing missing Gemfile dependencies"
360
472
  msgstr ""
361
473
 
362
- #: ../lib/pdk/util/bundler.rb:115
474
+ #: ../lib/pdk/util/bundler.rb:153
363
475
  msgid ""
364
476
  "done.\n"
365
477
  msgstr ""
366
478
 
367
- #: ../lib/pdk/util/bundler.rb:115
479
+ #: ../lib/pdk/util/bundler.rb:153
368
480
  msgid ""
369
481
  "FAILURE!\n"
370
482
  msgstr ""
371
483
 
372
- #: ../lib/pdk/validators/base_validator.rb:25
373
- msgid "Running %{cmd} with options: %{options}"
484
+ #: ../lib/pdk/validators/base_validator.rb:39
485
+ msgid "Invoking %{cmd}"
486
+ msgstr ""
487
+
488
+ #: ../lib/pdk/validators/base_validator.rb:49
489
+ msgid "Running %{cmd}"
490
+ msgstr ""
491
+
492
+ #: ../lib/pdk/validators/puppet/puppet_lint.rb:22
493
+ msgid "Checking Puppet manifest style"
494
+ msgstr ""
495
+
496
+ #: ../lib/pdk/validators/puppet/puppet_parser.rb:21
497
+ msgid "Checking Puppet manifest syntax"
498
+ msgstr ""
499
+
500
+ #: ../lib/pdk/validators/ruby/rubocop.rb:20
501
+ msgid "Checking Ruby code style"
502
+ msgstr ""
503
+
504
+ #: ../lib/puppet/util/windows/api_types.rb:68
505
+ msgid "Unable to read wide strings with %{null_terminator} terminal nulls"
506
+ msgstr ""
507
+
508
+ #: ../lib/puppet/util/windows/api_types.rb:199
509
+ msgid "Bad GUID format."
510
+ msgstr ""
511
+
512
+ #: ../lib/puppet/util/windows/file.rb:158
513
+ msgid "Failed to set file attributes"
514
+ msgstr ""
515
+
516
+ #: ../lib/puppet/util/windows/file.rb:193
517
+ msgid "out_buffer is required"
518
+ msgstr ""
519
+
520
+ #: ../lib/puppet/util/windows/file.rb:274
521
+ msgid "Failed to call GetLongPathName"
374
522
  msgstr ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - David Schmitt
7
+ - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: tty-prompt
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.12'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.12'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: deep_merge
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -96,7 +110,7 @@ dependencies:
96
110
  version: '1.1'
97
111
  description: A CLI to facilitate easy, unified development workflows for Puppet modules.
98
112
  email:
99
- - david.schmitt@puppet.com
113
+ - pdk-maintainers@puppet.com
100
114
  executables:
101
115
  - pdk
102
116
  extensions: []
@@ -110,12 +124,13 @@ files:
110
124
  - lib/pdk/cli.rb
111
125
  - lib/pdk/cli/errors.rb
112
126
  - lib/pdk/cli/exec.rb
113
- - lib/pdk/cli/input.rb
114
127
  - lib/pdk/cli/new.rb
115
128
  - lib/pdk/cli/new/class.rb
116
129
  - lib/pdk/cli/new/module.rb
117
130
  - lib/pdk/cli/test.rb
118
131
  - lib/pdk/cli/test/unit.rb
132
+ - lib/pdk/cli/util.rb
133
+ - lib/pdk/cli/util/interview.rb
119
134
  - lib/pdk/cli/util/option_normalizer.rb
120
135
  - lib/pdk/cli/util/option_validator.rb
121
136
  - lib/pdk/cli/validate.rb
@@ -138,7 +153,7 @@ files:
138
153
  - lib/pdk/validators/base_validator.rb
139
154
  - lib/pdk/validators/metadata.rb
140
155
  - lib/pdk/validators/puppet/puppet_lint.rb
141
- - lib/pdk/validators/puppet/puppet_parser.rb
156
+ - lib/pdk/validators/puppet/puppet_syntax.rb
142
157
  - lib/pdk/validators/puppet_validator.rb
143
158
  - lib/pdk/validators/ruby/rubocop.rb
144
159
  - lib/pdk/validators/ruby_validator.rb
@@ -169,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
184
  version: '0'
170
185
  requirements: []
171
186
  rubyforge_project:
172
- rubygems_version: 2.5.2
187
+ rubygems_version: 2.4.8
173
188
  signing_key:
174
189
  specification_version: 4
175
190
  summary: A key part of the Puppet Development Kit, the shortest path to better modules