pdk 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +49 -3
- data/lib/pdk/cli.rb +1 -0
- data/lib/pdk/cli/exec.rb +46 -9
- data/lib/pdk/cli/new/class.rb +2 -1
- data/lib/pdk/cli/test/unit.rb +35 -16
- data/lib/pdk/cli/util.rb +15 -0
- data/lib/pdk/cli/util/interview.rb +52 -0
- data/lib/pdk/cli/util/option_normalizer.rb +1 -1
- data/lib/pdk/cli/validate.rb +12 -2
- data/lib/pdk/generators/module.rb +109 -61
- data/lib/pdk/report.rb +20 -3
- data/lib/pdk/report/event.rb +29 -0
- data/lib/pdk/tests/unit.rb +114 -9
- data/lib/pdk/util/bundler.rb +24 -46
- data/lib/pdk/validators/base_validator.rb +7 -14
- data/lib/pdk/validators/metadata.rb +36 -14
- data/lib/pdk/validators/puppet/puppet_lint.rb +23 -3
- data/lib/pdk/validators/puppet/puppet_syntax.rb +82 -0
- data/lib/pdk/validators/puppet_validator.rb +2 -2
- data/lib/pdk/validators/ruby/rubocop.rb +13 -3
- data/lib/pdk/version.rb +1 -1
- data/locales/de/pdk.po +235 -66
- data/locales/pdk.pot +202 -54
- metadata +22 -7
- data/lib/pdk/cli/input.rb +0 -28
- data/lib/pdk/validators/puppet/puppet_parser.rb +0 -34
@@ -22,13 +22,33 @@ module PDK
|
|
22
22
|
_('Checking Puppet manifest style')
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.parse_options(
|
25
|
+
def self.parse_options(options, targets)
|
26
26
|
cmd_options = ['--json']
|
27
27
|
|
28
|
+
cmd_options << '--fix' if options[:auto_correct]
|
29
|
+
|
28
30
|
cmd_options.concat(targets)
|
29
31
|
end
|
30
32
|
|
31
|
-
def self.parse_output(report,
|
33
|
+
def self.parse_output(report, result, targets)
|
34
|
+
begin
|
35
|
+
json_data = JSON.parse(result[:stdout])
|
36
|
+
rescue JSON::ParserError
|
37
|
+
json_data = []
|
38
|
+
end
|
39
|
+
|
40
|
+
# puppet-lint does not include files without problems in its JSON
|
41
|
+
# output, so we need to go through the list of targets and add passing
|
42
|
+
# events to the report for any target not listed in the JSON output.
|
43
|
+
targets.reject { |target| json_data.any? { |j| j['path'] == target } }.each do |target|
|
44
|
+
report.add_event(
|
45
|
+
file: target,
|
46
|
+
source: 'puppet-lint',
|
47
|
+
severity: 'ok',
|
48
|
+
state: :passed,
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
32
52
|
json_data.each do |offense|
|
33
53
|
report.add_event(
|
34
54
|
file: offense['path'],
|
@@ -37,7 +57,7 @@ module PDK
|
|
37
57
|
column: offense['column'],
|
38
58
|
message: offense['message'],
|
39
59
|
test: offense['check'],
|
40
|
-
severity: offense['kind'],
|
60
|
+
severity: (offense['kind'] == 'fixed') ? 'corrected' : offense['kind'],
|
41
61
|
state: :failure,
|
42
62
|
)
|
43
63
|
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
require 'pdk/validators/base_validator'
|
4
|
+
|
5
|
+
module PDK
|
6
|
+
module Validate
|
7
|
+
class PuppetSyntax < BaseValidator
|
8
|
+
def self.name
|
9
|
+
'puppet-syntax'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.cmd
|
13
|
+
'puppet'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.pattern
|
17
|
+
'**/**.pp'
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.spinner_text
|
21
|
+
_('Checking Puppet manifest syntax')
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.parse_options(_options, targets)
|
25
|
+
%w[parser validate].concat(targets)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.parse_output(report, result, targets)
|
29
|
+
# Due to PUP-7504, we will have to programmatically construct the json
|
30
|
+
# object from the text output for now.
|
31
|
+
output = result[:stderr].split("\n")
|
32
|
+
|
33
|
+
results_data = []
|
34
|
+
output.each do |offense|
|
35
|
+
sanitize_console_output(offense)
|
36
|
+
message, _at, location_raw = offense.partition(' at ')
|
37
|
+
|
38
|
+
# Parse the offense type and msg
|
39
|
+
severity, _colon, message = message.rpartition(': ')
|
40
|
+
|
41
|
+
# Parse the offense location info
|
42
|
+
location = location_raw.strip.match(%r{\A(?<file>.+):(?<line>\d+):(?<column>\d+)\Z}) unless location_raw.nil?
|
43
|
+
|
44
|
+
attributes = {
|
45
|
+
source: name,
|
46
|
+
message: message.strip,
|
47
|
+
state: 'failure',
|
48
|
+
}
|
49
|
+
attributes[:severity] = severity.strip unless severity.nil?
|
50
|
+
|
51
|
+
unless location.nil?
|
52
|
+
attributes[:file] = location[:file]
|
53
|
+
attributes[:line] = location[:line]
|
54
|
+
attributes[:column] = location[:column]
|
55
|
+
end
|
56
|
+
|
57
|
+
results_data << attributes
|
58
|
+
end
|
59
|
+
|
60
|
+
# puppet-lint does not include files without problems in its JSON
|
61
|
+
# output, so we need to go through the list of targets and add passing
|
62
|
+
# events to the report for any target not listed in the JSON output.
|
63
|
+
targets.reject { |target| results_data.any? { |j| j[:file] == target } }.each do |target|
|
64
|
+
report.add_event(
|
65
|
+
file: target,
|
66
|
+
source: 'puppet-syntax',
|
67
|
+
severity: 'ok',
|
68
|
+
state: :passed,
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
results_data.each do |offense|
|
73
|
+
report.add_event(offense)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.sanitize_console_output(line)
|
78
|
+
line.gsub!(%r{\e\[([;\d]+)?m}, '')
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -2,7 +2,7 @@ require 'pdk'
|
|
2
2
|
require 'pdk/cli/exec'
|
3
3
|
require 'pdk/validators/base_validator'
|
4
4
|
require 'pdk/validators/puppet/puppet_lint'
|
5
|
-
require 'pdk/validators/puppet/
|
5
|
+
require 'pdk/validators/puppet/puppet_syntax'
|
6
6
|
|
7
7
|
module PDK
|
8
8
|
module Validate
|
@@ -12,7 +12,7 @@ module PDK
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.puppet_validators
|
15
|
-
[
|
15
|
+
[PuppetSyntax, PuppetLint]
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.invoke(report, options = {})
|
@@ -20,13 +20,23 @@ module PDK
|
|
20
20
|
_('Checking Ruby code style')
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.parse_options(
|
23
|
+
def self.parse_options(options, targets)
|
24
24
|
cmd_options = ['--format', 'json']
|
25
25
|
|
26
|
+
if options[:auto_correct]
|
27
|
+
cmd_options << '--auto-correct'
|
28
|
+
end
|
29
|
+
|
26
30
|
cmd_options.concat(targets)
|
27
31
|
end
|
28
32
|
|
29
|
-
def self.parse_output(report,
|
33
|
+
def self.parse_output(report, result, _targets)
|
34
|
+
begin
|
35
|
+
json_data = JSON.parse(result[:stdout])
|
36
|
+
rescue JSON::ParserError
|
37
|
+
json_data = []
|
38
|
+
end
|
39
|
+
|
30
40
|
return unless json_data.key?('files')
|
31
41
|
|
32
42
|
json_data['files'].each do |file_info|
|
@@ -45,7 +55,7 @@ module PDK
|
|
45
55
|
line: offense['location']['line'],
|
46
56
|
column: offense['location']['column'],
|
47
57
|
message: offense['message'],
|
48
|
-
severity: offense['severity'],
|
58
|
+
severity: (offense['corrected']) ? 'corrected' : offense['severity'],
|
49
59
|
test: offense['cop_name'],
|
50
60
|
state: :failure,
|
51
61
|
),
|
data/lib/pdk/version.rb
CHANGED
data/locales/de/pdk.po
CHANGED
@@ -7,8 +7,8 @@ msgid ""
|
|
7
7
|
msgstr ""
|
8
8
|
"Project-Id-Version: puppet development kit \n"
|
9
9
|
"Report-Msgid-Bugs-To: docs@puppet.com\n"
|
10
|
-
"POT-Creation-Date: 2017-06-
|
11
|
-
"PO-Revision-Date: 2017-06-
|
10
|
+
"POT-Creation-Date: 2017-06-26 14:48+0100\n"
|
11
|
+
"PO-Revision-Date: 2017-06-26 14:50+0100\n"
|
12
12
|
"Last-Translator: David Schmitt <david.schmitt@puppet.com>\n"
|
13
13
|
"Language-Team: German <>\n"
|
14
14
|
"Language: de\n"
|
@@ -18,29 +18,33 @@ msgstr ""
|
|
18
18
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19
19
|
"X-Generator: Gtranslator 2.91.7\n"
|
20
20
|
|
21
|
-
#: ../lib/pdk/cli.rb:
|
21
|
+
#: ../lib/pdk/cli.rb:34
|
22
22
|
msgid ""
|
23
23
|
"Specifies the URL to the template to use when creating new modules, and "
|
24
24
|
"other parts."
|
25
25
|
msgstr "Die URL zum Template das für die Modulerzeugung genutzt werden soll."
|
26
26
|
|
27
|
-
#: ../lib/pdk/cli.rb:
|
27
|
+
#: ../lib/pdk/cli.rb:39
|
28
28
|
msgid "pdk command [options]"
|
29
29
|
msgstr "pdk befehl [optionen]"
|
30
30
|
|
31
|
-
#: ../lib/pdk/cli.rb:
|
31
|
+
#: ../lib/pdk/cli.rb:40
|
32
32
|
msgid "Puppet Development Kit"
|
33
33
|
msgstr "Puppet Development Kit"
|
34
34
|
|
35
|
-
#: ../lib/pdk/cli.rb:
|
35
|
+
#: ../lib/pdk/cli.rb:41
|
36
36
|
msgid "The shortest path to better modules."
|
37
37
|
msgstr "Der kürzeste Weg zu besseren Modulen.\n"
|
38
38
|
|
39
|
-
#: ../lib/pdk/cli.rb:
|
39
|
+
#: ../lib/pdk/cli.rb:44
|
40
|
+
msgid "show version of pdk"
|
41
|
+
msgstr "Version des pdk anzeigen"
|
42
|
+
|
43
|
+
#: ../lib/pdk/cli.rb:49
|
40
44
|
msgid "show help for this command"
|
41
45
|
msgstr "Hilfetext für diesen Befehl anzeigen"
|
42
46
|
|
43
|
-
#: ../lib/pdk/cli.rb:
|
47
|
+
#: ../lib/pdk/cli.rb:54
|
44
48
|
msgid ""
|
45
49
|
"Specify desired output format. Valid formats are '%{available_formats}'. You "
|
46
50
|
"may also specify a file to which the formatted output will be directed, for "
|
@@ -53,7 +57,7 @@ msgstr ""
|
|
53
57
|
"jeder Wert ein eigene Ausgabedatei angibt kann diese Option mehrmals "
|
54
58
|
"angeführt werden.\n"
|
55
59
|
|
56
|
-
#: ../lib/pdk/cli.rb:
|
60
|
+
#: ../lib/pdk/cli.rb:73
|
57
61
|
msgid "Enable debug output."
|
58
62
|
msgstr "Debug Ausgabe aktivieren."
|
59
63
|
|
@@ -64,26 +68,30 @@ msgstr ""
|
|
64
68
|
"Ein unerwarteter Fehler ist aufgetreten. Das gleiche Kommand mit --debug "
|
65
69
|
"kann mehr Information zur Ursache geben."
|
66
70
|
|
67
|
-
#: ../lib/pdk/cli/exec.rb:
|
71
|
+
#: ../lib/pdk/cli/exec.rb:44
|
68
72
|
msgid "Using '%{vendored_bin_path}'"
|
69
73
|
msgstr "Verwende '%{vendored_bin_path}'"
|
70
74
|
|
71
|
-
#: ../lib/pdk/cli/exec.rb:
|
75
|
+
#: ../lib/pdk/cli/exec.rb:47
|
72
76
|
msgid ""
|
73
77
|
"Trying '%{fallback}' from the system PATH, instead of '%{vendored_bin_path}'"
|
74
78
|
msgstr "Verwende '%{fallback}' in PATH, statt '%{vendored_bin_path}'"
|
75
79
|
|
76
|
-
#: ../lib/pdk/cli/exec.rb:
|
80
|
+
#: ../lib/pdk/cli/exec.rb:77
|
77
81
|
msgid ""
|
78
82
|
"Expected execution context to be :system or :module but got '%{context}'"
|
79
83
|
msgstr ""
|
80
84
|
"Ausführumgebung '%{context}' nicht erkannt. Sie muss :system oder :module "
|
81
85
|
"sein."
|
82
86
|
|
83
|
-
#: ../lib/pdk/cli/exec.rb:
|
87
|
+
#: ../lib/pdk/cli/exec.rb:139
|
84
88
|
msgid "Failed to execute '%{command}': %{message}"
|
85
89
|
msgstr "Konnte Befehl '%{command}' night ausführen: %{message}"
|
86
90
|
|
91
|
+
#: ../lib/pdk/cli/exec.rb:141
|
92
|
+
msgid "Failed to execute process: %{message}"
|
93
|
+
msgstr "Konnte einen Prozess nicht starten: %{message}"
|
94
|
+
|
87
95
|
#: ../lib/pdk/cli/new.rb:5
|
88
96
|
msgid "new <type> [options]"
|
89
97
|
msgstr "new <objekt> [optionen]"
|
@@ -193,15 +201,27 @@ msgstr ""
|
|
193
201
|
msgid "List of all available unit tests: (TODO)"
|
194
202
|
msgstr "Verfügbare Unit-Tests: (TODO)"
|
195
203
|
|
204
|
+
#: ../lib/pdk/cli/util/interview.rb:30
|
205
|
+
msgid "[Q %{current_number}/%{questions_total}]"
|
206
|
+
msgstr "[Frage %{current_number}/%{questions_total}]"
|
207
|
+
|
208
|
+
#: ../lib/pdk/cli/util/interview.rb:33
|
209
|
+
msgid "-->"
|
210
|
+
msgstr "-->"
|
211
|
+
|
196
212
|
#: ../lib/pdk/cli/util/option_normalizer.rb:6
|
197
213
|
msgid "Error: expected comma separated list"
|
198
214
|
msgstr "Fehler: Komma-getrennte Liste erwartet"
|
199
215
|
|
200
|
-
#: ../lib/pdk/cli/util/option_normalizer.rb:
|
216
|
+
#: ../lib/pdk/cli/util/option_normalizer.rb:32
|
217
|
+
msgid "'%{name}' is not a valid report format (%{valid})"
|
218
|
+
msgstr "'%{name}' ist kein gültiges Format (%{valid})"
|
219
|
+
|
220
|
+
#: ../lib/pdk/cli/util/option_normalizer.rb:54
|
201
221
|
msgid "'%{name}' is not a valid parameter name"
|
202
222
|
msgstr "'%{name}' ist kein gültiger Parametername"
|
203
223
|
|
204
|
-
#: ../lib/pdk/cli/util/option_normalizer.rb:
|
224
|
+
#: ../lib/pdk/cli/util/option_normalizer.rb:60
|
205
225
|
msgid "'%{type}' is not a valid data type"
|
206
226
|
msgstr "'%{name}' ist kein gültiger Datentyp"
|
207
227
|
|
@@ -217,101 +237,150 @@ msgstr ""
|
|
217
237
|
"Nonstandard Datentyp '%{type}'. Stelle sicher das der Typ im Code oder in "
|
218
238
|
"den Abhängigkeiten verfügbar ist."
|
219
239
|
|
220
|
-
#: ../lib/pdk/cli/validate.rb:
|
240
|
+
#: ../lib/pdk/cli/validate.rb:6
|
221
241
|
msgid "validate [options]"
|
222
242
|
msgstr "validate [optionen]"
|
223
243
|
|
224
|
-
#: ../lib/pdk/cli/validate.rb:
|
244
|
+
#: ../lib/pdk/cli/validate.rb:7
|
225
245
|
msgid "Run static analysis tests."
|
226
246
|
msgstr "Statische Analysen ausführen."
|
227
247
|
|
228
|
-
#: ../lib/pdk/cli/validate.rb:
|
248
|
+
#: ../lib/pdk/cli/validate.rb:8
|
229
249
|
msgid "Run metadata, puppet, or ruby validation."
|
230
250
|
msgstr "Metadaten, Puppet und Ruby prüfen."
|
231
251
|
|
232
|
-
#: ../lib/pdk/cli/validate.rb:
|
252
|
+
#: ../lib/pdk/cli/validate.rb:10
|
233
253
|
msgid "list all available validators"
|
234
254
|
msgstr "Gibt die Namen aller verfügbaren Prüfer aus."
|
235
255
|
|
236
|
-
#: ../lib/pdk/cli/validate.rb:
|
256
|
+
#: ../lib/pdk/cli/validate.rb:18
|
237
257
|
msgid "Available validators: %{validator_names}"
|
238
258
|
msgstr "Verfügbare Prüfer: %{validator_names}"
|
239
259
|
|
240
|
-
#: ../lib/pdk/cli/validate.rb:
|
260
|
+
#: ../lib/pdk/cli/validate.rb:32
|
241
261
|
msgid "Unknown validator '%{v}'. Available validators: %{validators}"
|
242
262
|
msgstr "Prüfer '%{v}' nicht erkannt. Verfügbare Prüfer: %{validators}"
|
243
263
|
|
244
|
-
#: ../lib/pdk/cli/validate.rb:
|
264
|
+
#: ../lib/pdk/cli/validate.rb:42 ../lib/pdk/cli/validate.rb:46
|
245
265
|
msgid "Running all available validators..."
|
246
266
|
msgstr "Führe alle verfügbaren Prüfer aus..."
|
247
267
|
|
248
|
-
#: ../lib/pdk/generators/module.rb:
|
268
|
+
#: ../lib/pdk/generators/module.rb:33
|
249
269
|
msgid "The destination directory '%{dir}' already exists"
|
250
270
|
msgstr "Das Zielverzeichnis '%{dir}' existiert bereits"
|
251
271
|
|
252
|
-
#: ../lib/pdk/generators/module.rb:
|
272
|
+
#: ../lib/pdk/generators/module.rb:75
|
253
273
|
msgid "Unable to create directory '%{dir}'"
|
254
274
|
msgstr "Das Verzeichnis '%{dir}' kann nicht erstellt werden."
|
255
275
|
|
256
|
-
#: ../lib/pdk/generators/module.rb:
|
257
|
-
msgid ""
|
258
|
-
"We need to create a metadata.json file for this module. Please answer the "
|
259
|
-
"following questions; if the question is not applicable to this module, feel "
|
260
|
-
"free to leave it blank."
|
261
|
-
msgstr ""
|
262
|
-
"Um die metadata.json Datei für dieses Modul zu ereugen, werden einige Werte "
|
263
|
-
"benötigt. Bitte beantworten Sie die folgenden Fragen. Sollte eine der Fragen "
|
264
|
-
"nicht relevant sein, kann der Standardwert verwendet werden."
|
265
|
-
|
266
|
-
#: ../lib/pdk/generators/module.rb:85
|
276
|
+
#: ../lib/pdk/generators/module.rb:84
|
267
277
|
msgid "What is your Puppet Forge username?"
|
268
278
|
msgstr "Was ist dein Puppet Forge Benutzername?"
|
269
279
|
|
280
|
+
#: ../lib/pdk/generators/module.rb:85
|
281
|
+
msgid ""
|
282
|
+
"This will be used when uploading your module to the Forge. You can opt out "
|
283
|
+
"of this at any time."
|
284
|
+
msgstr ""
|
285
|
+
|
270
286
|
#: ../lib/pdk/generators/module.rb:88
|
271
|
-
msgid "
|
272
|
-
msgstr "
|
287
|
+
msgid "Forge usernames can only contain letters and numbers"
|
288
|
+
msgstr ""
|
273
289
|
|
274
290
|
#: ../lib/pdk/generators/module.rb:93
|
275
|
-
msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
|
276
|
-
msgstr "Puppet verwendet Semantic Versioning (http://semver.org) für Module."
|
277
|
-
|
278
|
-
#: ../lib/pdk/generators/module.rb:94
|
279
291
|
msgid "What version is this module?"
|
280
292
|
msgstr "Was ist die aktuelle Version dieses Moduls?"
|
281
293
|
|
294
|
+
#: ../lib/pdk/generators/module.rb:94
|
295
|
+
msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
|
296
|
+
msgstr "Puppet verwendet Semantic Versioning (http://semver.org) für Module."
|
297
|
+
|
282
298
|
#: ../lib/pdk/generators/module.rb:97
|
283
|
-
msgid "
|
284
|
-
msgstr "
|
299
|
+
msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
|
300
|
+
msgstr ""
|
285
301
|
|
286
302
|
#: ../lib/pdk/generators/module.rb:102
|
287
303
|
msgid "Who wrote this module?"
|
288
304
|
msgstr "Wer ist der Autor dieses Moduls?"
|
289
305
|
|
290
|
-
#: ../lib/pdk/generators/module.rb:
|
306
|
+
#: ../lib/pdk/generators/module.rb:103
|
307
|
+
msgid "The person who gets credit for creating the module. "
|
308
|
+
msgstr ""
|
309
|
+
|
310
|
+
#: ../lib/pdk/generators/module.rb:109
|
291
311
|
msgid "What license does this module code fall under?"
|
292
312
|
msgstr "Unter welcher Lizenz ist das Modul erhältich?"
|
293
313
|
|
294
|
-
#: ../lib/pdk/generators/module.rb:
|
314
|
+
#: ../lib/pdk/generators/module.rb:110
|
315
|
+
#, fuzzy
|
316
|
+
msgid ""
|
317
|
+
"This should be an identifier from https://spdk.org/licenses/. Common values "
|
318
|
+
"are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
|
319
|
+
msgstr ""
|
320
|
+
"Verwende die angegebene Lizenz für dieses Modul. Erlaubte Werte sind "
|
321
|
+
"'identifier' von https://spdx.org/licenses/. Übliche Lizenzen sind "
|
322
|
+
"'Apache-2.0', 'MIT', oder 'proprietary'."
|
323
|
+
|
324
|
+
#: ../lib/pdk/generators/module.rb:116
|
295
325
|
msgid "How would you describe this module in a single sentence?"
|
296
326
|
msgstr "Beschreibe das Modul in einem Satz:"
|
297
327
|
|
298
|
-
#: ../lib/pdk/generators/module.rb:
|
299
|
-
msgid "
|
328
|
+
#: ../lib/pdk/generators/module.rb:117
|
329
|
+
msgid "To help other Puppet users understand what the module does."
|
330
|
+
msgstr ""
|
331
|
+
|
332
|
+
#: ../lib/pdk/generators/module.rb:123
|
333
|
+
#, fuzzy
|
334
|
+
msgid "Where is this modules's source code repository?"
|
300
335
|
msgstr "Wo ist das Repository für dieses Modul?"
|
301
336
|
|
302
|
-
#: ../lib/pdk/generators/module.rb:
|
337
|
+
#: ../lib/pdk/generators/module.rb:124
|
338
|
+
msgid "Usually a GitHub URL"
|
339
|
+
msgstr ""
|
340
|
+
|
341
|
+
#: ../lib/pdk/generators/module.rb:130
|
303
342
|
msgid "Where can others go to learn more about this module?"
|
304
343
|
msgstr "Wo kann man mehr über dieses Modul erfahren?"
|
305
344
|
|
306
|
-
#: ../lib/pdk/generators/module.rb:
|
345
|
+
#: ../lib/pdk/generators/module.rb:131
|
346
|
+
msgid "A web site that offers full information about your module."
|
347
|
+
msgstr ""
|
348
|
+
|
349
|
+
#: ../lib/pdk/generators/module.rb:136
|
307
350
|
msgid "Where can others go to file issues about this module?"
|
308
351
|
msgstr "Wo kann man Fehler in diesem Modul berichten?"
|
309
352
|
|
310
|
-
#: ../lib/pdk/generators/module.rb:
|
353
|
+
#: ../lib/pdk/generators/module.rb:137
|
354
|
+
msgid "A web site with a public bug tracker for your module."
|
355
|
+
msgstr ""
|
356
|
+
|
357
|
+
#: ../lib/pdk/generators/module.rb:150
|
358
|
+
#, fuzzy
|
359
|
+
msgid ""
|
360
|
+
"\n"
|
361
|
+
"We need to create a metadata.json file for this module, so we're going to "
|
362
|
+
"ask you %{count} quick questions.\n"
|
363
|
+
"If the question is not applicable to this module, just leave the answer "
|
364
|
+
"blank.\n"
|
365
|
+
"\n"
|
366
|
+
msgstr ""
|
367
|
+
"Um die metadata.json Datei für dieses Modul zu ereugen, werden einige Werte "
|
368
|
+
"benötigt. Bitte beantworten Sie die folgenden Fragen. Sollte eine der Fragen "
|
369
|
+
"nicht relevant sein, kann der Standardwert verwendet werden."
|
370
|
+
|
371
|
+
#: ../lib/pdk/generators/module.rb:158
|
372
|
+
msgid "Interview cancelled, aborting..."
|
373
|
+
msgstr ""
|
374
|
+
|
375
|
+
#: ../lib/pdk/generators/module.rb:166
|
376
|
+
msgid "SUMMARY"
|
377
|
+
msgstr ""
|
378
|
+
|
379
|
+
#: ../lib/pdk/generators/module.rb:172
|
311
380
|
msgid "About to generate this module; continue?"
|
312
381
|
msgstr "Bereit metadata.json zu generieren; weitermachen?"
|
313
382
|
|
314
|
-
#: ../lib/pdk/generators/module.rb:
|
383
|
+
#: ../lib/pdk/generators/module.rb:173
|
315
384
|
msgid "Aborting..."
|
316
385
|
msgstr "Abbruch..."
|
317
386
|
|
@@ -360,11 +429,11 @@ msgid "Unable to clone git repository '%{repo}' to '%{dest}'"
|
|
360
429
|
msgstr ""
|
361
430
|
"Das git Repository '%{repo}' konnte nicht nach '%{dest}' geklont werden."
|
362
431
|
|
363
|
-
#: ../lib/pdk/module/templatedir.rb:
|
432
|
+
#: ../lib/pdk/module/templatedir.rb:107
|
364
433
|
msgid "Rendering '%{template}'..."
|
365
434
|
msgstr "Verarbeite '%{template}'..."
|
366
435
|
|
367
|
-
#: ../lib/pdk/module/templatedir.rb:
|
436
|
+
#: ../lib/pdk/module/templatedir.rb:113
|
368
437
|
msgid ""
|
369
438
|
"Failed to render template '%{template}'\n"
|
370
439
|
"%{exception}: %{message}"
|
@@ -372,18 +441,58 @@ msgstr ""
|
|
372
441
|
"Template '%{template}' konnte nicht verarbeitet werden\n"
|
373
442
|
"%{exception}: %{message}"
|
374
443
|
|
375
|
-
#: ../lib/pdk/module/templatedir.rb:
|
444
|
+
#: ../lib/pdk/module/templatedir.rb:177
|
376
445
|
msgid "The specified template '%{path}' is not a directory"
|
377
446
|
msgstr "Das angegebene Template'%{path}' ist kein Verzeichnis"
|
378
447
|
|
379
|
-
#: ../lib/pdk/module/templatedir.rb:
|
448
|
+
#: ../lib/pdk/module/templatedir.rb:181
|
380
449
|
msgid "The template at '%{path}' does not contain a moduleroot directory"
|
381
450
|
msgstr "Das Template '%{path}' enthält kein moduleroot Verzeichnis"
|
382
451
|
|
383
|
-
#: ../lib/pdk/module/templatedir.rb:
|
452
|
+
#: ../lib/pdk/module/templatedir.rb:225
|
384
453
|
msgid "'%{file}' is not a valid YAML file: %{message}"
|
385
454
|
msgstr "'%{file}' ist keine gültige YAML Datei: %{message}"
|
386
455
|
|
456
|
+
#: ../lib/pdk/report/event.rb:155
|
457
|
+
msgid "file not specified"
|
458
|
+
msgstr ""
|
459
|
+
|
460
|
+
#: ../lib/pdk/report/event.rb:159
|
461
|
+
msgid "file must be a String"
|
462
|
+
msgstr ""
|
463
|
+
|
464
|
+
#: ../lib/pdk/report/event.rb:190
|
465
|
+
msgid "state not specified"
|
466
|
+
msgstr ""
|
467
|
+
|
468
|
+
#: ../lib/pdk/report/event.rb:195
|
469
|
+
msgid "state must be a Symbol, not %{type}"
|
470
|
+
msgstr ""
|
471
|
+
|
472
|
+
#: ../lib/pdk/report/event.rb:200
|
473
|
+
msgid "Invalid state %{state}, valid states are: %{valid}"
|
474
|
+
msgstr ""
|
475
|
+
|
476
|
+
#: ../lib/pdk/report/event.rb:219
|
477
|
+
msgid "source not specified"
|
478
|
+
msgstr ""
|
479
|
+
|
480
|
+
#: ../lib/pdk/report/event.rb:240
|
481
|
+
msgid "line must be an Integer or a String representation of an Integer"
|
482
|
+
msgstr ""
|
483
|
+
|
484
|
+
#: ../lib/pdk/report/event.rb:244
|
485
|
+
msgid "the line number can only contain the digits 0-9"
|
486
|
+
msgstr ""
|
487
|
+
|
488
|
+
#: ../lib/pdk/report/event.rb:265
|
489
|
+
msgid "column must be an Integer or a String representation of an Integer"
|
490
|
+
msgstr ""
|
491
|
+
|
492
|
+
#: ../lib/pdk/report/event.rb:269
|
493
|
+
msgid "the column number can only contain the digits 0-9"
|
494
|
+
msgstr ""
|
495
|
+
|
387
496
|
#: ../lib/pdk/template_file.rb:62
|
388
497
|
msgid "'%{template}' is not a readable file"
|
389
498
|
msgstr "'%{template}' ist nicht lesbar"
|
@@ -392,41 +501,101 @@ msgstr "'%{template}' ist nicht lesbar"
|
|
392
501
|
msgid "Running unit tests: %{tests}"
|
393
502
|
msgstr "Führe aus: Unit test '%{tests}'"
|
394
503
|
|
504
|
+
#: ../lib/pdk/util.rb:44
|
505
|
+
msgid "Cannot resolve a full path to '%{path}' as it does not currently exist"
|
506
|
+
msgstr ""
|
507
|
+
|
395
508
|
#: ../lib/pdk/util/bundler.rb:15
|
509
|
+
msgid "Bundle has already been installed, skipping run"
|
510
|
+
msgstr ""
|
511
|
+
|
512
|
+
#: ../lib/pdk/util/bundler.rb:20
|
396
513
|
msgid "No Gemfile found in '%{cwd}', skipping bundler management"
|
397
514
|
msgstr "Kein Gemfile in '%{cwd}', überspringe bundler Verwaltung"
|
398
515
|
|
399
|
-
#: ../lib/pdk/util/bundler.rb:
|
516
|
+
#: ../lib/pdk/util/bundler.rb:26
|
400
517
|
msgid "Unable to resolve Gemfile dependencies."
|
401
518
|
msgstr "Gemfile Abhängigkeiten konnten nicht aufgelöst werden."
|
402
519
|
|
403
|
-
#: ../lib/pdk/util/bundler.rb:
|
520
|
+
#: ../lib/pdk/util/bundler.rb:32
|
404
521
|
msgid "Unable to install missing Gemfile dependencies."
|
405
522
|
msgstr "Fehlende Gemfile Abhängigkeiten konnten nicht installiert werden."
|
406
523
|
|
407
|
-
#: ../lib/pdk/util/bundler.rb:
|
524
|
+
#: ../lib/pdk/util/bundler.rb:51
|
525
|
+
msgid "Unable to install requested binstubs."
|
526
|
+
msgstr ""
|
527
|
+
|
528
|
+
#: ../lib/pdk/util/bundler.rb:65
|
408
529
|
msgid "Checking for missing Gemfile dependencies"
|
409
530
|
msgstr "Gemfile Abhängigkeiten werden überprüft."
|
410
531
|
|
411
|
-
#: ../lib/pdk/util/bundler.rb:
|
532
|
+
#: ../lib/pdk/util/bundler.rb:75
|
412
533
|
msgid "Resolving Gemfile dependencies"
|
413
534
|
msgstr "Gemfile Abhängigkeiten werden aufgelöst"
|
414
535
|
|
415
|
-
#: ../lib/pdk/util/bundler.rb:
|
536
|
+
#: ../lib/pdk/util/bundler.rb:91
|
416
537
|
msgid "Installing missing Gemfile dependencies"
|
417
538
|
msgstr "Fehlende Gemfile Abhängigkeiten weren installiert"
|
418
539
|
|
419
|
-
#: ../lib/pdk/util/bundler.rb:
|
540
|
+
#: ../lib/pdk/util/bundler.rb:153
|
420
541
|
msgid "done.\n"
|
421
542
|
msgstr "Fertig.\n"
|
422
543
|
|
423
|
-
#: ../lib/pdk/util/bundler.rb:
|
544
|
+
#: ../lib/pdk/util/bundler.rb:153
|
424
545
|
msgid "FAILURE!\n"
|
425
546
|
msgstr "FEHLER!\n"
|
426
547
|
|
427
|
-
#: ../lib/pdk/validators/base_validator.rb:
|
428
|
-
msgid "
|
429
|
-
msgstr "
|
548
|
+
#: ../lib/pdk/validators/base_validator.rb:39
|
549
|
+
msgid "Invoking %{cmd}"
|
550
|
+
msgstr ""
|
551
|
+
|
552
|
+
#: ../lib/pdk/validators/base_validator.rb:49
|
553
|
+
msgid "Running %{cmd}"
|
554
|
+
msgstr ""
|
555
|
+
|
556
|
+
#: ../lib/pdk/validators/puppet/puppet_lint.rb:22
|
557
|
+
msgid "Checking Puppet manifest style"
|
558
|
+
msgstr ""
|
559
|
+
|
560
|
+
#: ../lib/pdk/validators/puppet/puppet_parser.rb:21
|
561
|
+
msgid "Checking Puppet manifest syntax"
|
562
|
+
msgstr ""
|
563
|
+
|
564
|
+
#: ../lib/pdk/validators/ruby/rubocop.rb:20
|
565
|
+
msgid "Checking Ruby code style"
|
566
|
+
msgstr ""
|
567
|
+
|
568
|
+
#: ../lib/puppet/util/windows/api_types.rb:68
|
569
|
+
msgid "Unable to read wide strings with %{null_terminator} terminal nulls"
|
570
|
+
msgstr ""
|
571
|
+
|
572
|
+
#: ../lib/puppet/util/windows/api_types.rb:199
|
573
|
+
msgid "Bad GUID format."
|
574
|
+
msgstr ""
|
575
|
+
|
576
|
+
#: ../lib/puppet/util/windows/file.rb:158
|
577
|
+
msgid "Failed to set file attributes"
|
578
|
+
msgstr ""
|
579
|
+
|
580
|
+
#: ../lib/puppet/util/windows/file.rb:193
|
581
|
+
msgid "out_buffer is required"
|
582
|
+
msgstr ""
|
583
|
+
|
584
|
+
#: ../lib/puppet/util/windows/file.rb:274
|
585
|
+
msgid "Failed to call GetLongPathName"
|
586
|
+
msgstr ""
|
587
|
+
|
588
|
+
#~ msgid "We're sorry, we could not parse your module name: %{message}"
|
589
|
+
#~ msgstr ""
|
590
|
+
#~ "Der Wert konnte nicht als Modulname interpretiert werden: %{message}"
|
591
|
+
|
592
|
+
#~ msgid ""
|
593
|
+
#~ "We're sorry, we could not parse that as a Semantic Version: %{message}"
|
594
|
+
#~ msgstr ""
|
595
|
+
#~ "Der Wert konnte nicht als Modulname interpretiert werden: %{message}"
|
596
|
+
|
597
|
+
#~ msgid "Running %{cmd} with options: %{options}"
|
598
|
+
#~ msgstr "'%{cmd}' wird mit Optionen '%{options}' ausgeführt."
|
430
599
|
|
431
600
|
#~ msgid "Overrides the template to use for this module."
|
432
601
|
#~ msgstr "Verwende ein eigenes Vorlagerepository für dieses Modul."
|