pdk 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +270 -0
- data/exe/pdk +5 -0
- data/lib/pdk.rb +8 -0
- data/lib/pdk/cli.rb +80 -0
- data/lib/pdk/cli/errors.rb +12 -0
- data/lib/pdk/cli/exec.rb +51 -0
- data/lib/pdk/cli/input.rb +28 -0
- data/lib/pdk/cli/new.rb +30 -0
- data/lib/pdk/cli/new/class.rb +45 -0
- data/lib/pdk/cli/new/module.rb +55 -0
- data/lib/pdk/cli/test.rb +23 -0
- data/lib/pdk/cli/tests/unit.rb +52 -0
- data/lib/pdk/cli/util/option_normalizer.rb +44 -0
- data/lib/pdk/cli/util/option_validator.rb +74 -0
- data/lib/pdk/cli/validate.rb +81 -0
- data/lib/pdk/generate.rb +3 -0
- data/lib/pdk/generators/module.rb +139 -0
- data/lib/pdk/generators/puppet_class.rb +51 -0
- data/lib/pdk/generators/puppet_object.rb +213 -0
- data/lib/pdk/i18n.rb +4 -0
- data/lib/pdk/logger.rb +25 -0
- data/lib/pdk/module/metadata.rb +88 -0
- data/lib/pdk/module/templatedir.rb +231 -0
- data/lib/pdk/report.rb +38 -0
- data/lib/pdk/template_file.rb +87 -0
- data/lib/pdk/tests/unit.rb +21 -0
- data/lib/pdk/util.rb +16 -0
- data/lib/pdk/validate.rb +12 -0
- data/lib/pdk/validators/base_validator.rb +14 -0
- data/lib/pdk/validators/metadata.rb +17 -0
- data/lib/pdk/validators/puppet_lint.rb +17 -0
- data/lib/pdk/validators/puppet_parser.rb +17 -0
- data/lib/pdk/validators/ruby_lint.rb +17 -0
- data/lib/pdk/version.rb +3 -0
- data/locales/config.yaml +21 -0
- data/locales/de/pdk.po +250 -0
- data/locales/pdk.pot +215 -0
- metadata +92 -12
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
|
4
|
+
module PDK
|
5
|
+
module Test
|
6
|
+
class Unit
|
7
|
+
def self.cmd(tests)
|
8
|
+
# TODO: actually run the tests
|
9
|
+
#cmd = 'rake spec'
|
10
|
+
#cmd += " #{tests}" if tests
|
11
|
+
cmd = 'pwd'
|
12
|
+
cmd
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.invoke(tests, report = nil)
|
16
|
+
output = PDK::CLI::Exec.execute(cmd(tests))
|
17
|
+
report.write(output) if report
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/pdk/util.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'tmpdir'
|
2
|
+
require 'tempfile'
|
3
|
+
|
4
|
+
module PDK
|
5
|
+
module Util
|
6
|
+
# Generate a name for a temporary directory.
|
7
|
+
#
|
8
|
+
# @param base [String] A string to base the name generation off.
|
9
|
+
#
|
10
|
+
# @return [String] The temporary directory path.
|
11
|
+
def make_tmpdir_name(base)
|
12
|
+
Dir::Tmpname.make_tmpname(File.join(Dir.tmpdir, base), nil)
|
13
|
+
end
|
14
|
+
module_function :make_tmpdir_name
|
15
|
+
end
|
16
|
+
end
|
data/lib/pdk/validate.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'pdk/validators/metadata'
|
2
|
+
require 'pdk/validators/puppet_lint'
|
3
|
+
require 'pdk/validators/puppet_parser'
|
4
|
+
require 'pdk/validators/ruby_lint'
|
5
|
+
|
6
|
+
module PDK
|
7
|
+
module Validate
|
8
|
+
def self.validators
|
9
|
+
@validators ||= [Metadata, PuppetLint, PuppetParser, RubyLint].freeze
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
|
4
|
+
module PDK
|
5
|
+
module Validate
|
6
|
+
class BaseValidator
|
7
|
+
def self.invoke(options = {})
|
8
|
+
PDK.logger.info(_("Running %{cmd} with options: %{options}") % {cmd: cmd, options: options})
|
9
|
+
result = PDK::CLI::Exec.execute(cmd, options)
|
10
|
+
result
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
require 'pdk/validators/base_validator'
|
4
|
+
|
5
|
+
module PDK
|
6
|
+
module Validate
|
7
|
+
class Metadata < BaseValidator
|
8
|
+
def self.name
|
9
|
+
'metadata'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.cmd
|
13
|
+
'metadata-json-lint'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
require 'pdk/validators/base_validator'
|
4
|
+
|
5
|
+
module PDK
|
6
|
+
module Validate
|
7
|
+
class PuppetLint < BaseValidator
|
8
|
+
def self.name
|
9
|
+
'puppet-lint'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.cmd
|
13
|
+
'puppet-lint'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'pdk'
|
2
|
+
require 'pdk/cli/exec'
|
3
|
+
require 'pdk/validators/base_validator'
|
4
|
+
|
5
|
+
module PDK
|
6
|
+
module Validate
|
7
|
+
class PuppetParser < BaseValidator
|
8
|
+
def self.name
|
9
|
+
'puppet-parser'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.cmd
|
13
|
+
'puppet-parser-validate'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/pdk/version.rb
ADDED
data/locales/config.yaml
ADDED
@@ -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/de/pdk.po
ADDED
@@ -0,0 +1,250 @@
|
|
1
|
+
# German translations for puppet development kit package.
|
2
|
+
# Copyright (C) 2017 Puppet, Inc.
|
3
|
+
# This file is distributed under the same license as the puppet development kit package.
|
4
|
+
# David Schmitt <david.schmitt@puppet.com>, 2017.
|
5
|
+
#
|
6
|
+
msgid ""
|
7
|
+
msgstr ""
|
8
|
+
"Project-Id-Version: puppet development kit \n"
|
9
|
+
"Report-Msgid-Bugs-To: docs@puppet.com\n"
|
10
|
+
"POT-Creation-Date: 2017-04-21 12:09-0700\n"
|
11
|
+
"PO-Revision-Date: 2017-04-24 15:47+0100\n"
|
12
|
+
"Last-Translator: David Schmitt <david.schmitt@puppet.com>\n"
|
13
|
+
"Language-Team: German <>\n"
|
14
|
+
"Language: de\n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19
|
+
"X-Generator: Gtranslator 2.91.7\n"
|
20
|
+
|
21
|
+
#: ../lib/pdk/cli.rb:17
|
22
|
+
msgid "pdk command [options]"
|
23
|
+
msgstr "pdk befehl [optionen]"
|
24
|
+
|
25
|
+
#: ../lib/pdk/cli.rb:18
|
26
|
+
msgid "Puppet Development Kit"
|
27
|
+
msgstr "Puppet Development Kit"
|
28
|
+
|
29
|
+
#: ../lib/pdk/cli.rb:19
|
30
|
+
msgid "The shortest path to better modules."
|
31
|
+
msgstr "Der kürzeste Pfad zu besseren Modulen.\n"
|
32
|
+
|
33
|
+
#: ../lib/pdk/cli.rb:21
|
34
|
+
msgid "show help for this command"
|
35
|
+
msgstr "Hilfetext für diesen Befehl anzeigen"
|
36
|
+
|
37
|
+
#: ../lib/pdk/cli.rb:26
|
38
|
+
msgid ""
|
39
|
+
"Specify desired output format. Valid formats are '%{available_formats}'. You "
|
40
|
+
"may also specify a file to which the formatted output will be directed, for "
|
41
|
+
"example: '--format=junit:report.xml'. This option may be specified multiple "
|
42
|
+
"times as long as each option specifies a distinct target file."
|
43
|
+
msgstr ""
|
44
|
+
"Das gewünschte Ausgabeformat. Gültige Werte sind '%{available_formats}'. "
|
45
|
+
"Zusätzlich kann hier ein Dateiname angegeben werden um die formatierte "
|
46
|
+
"Ausgabe zu speichern. Zum Beispiel: '--format=junit:report.xml'. Solange "
|
47
|
+
"jeder Wert ein eigene Ausgabedatei angibt kann diese Option mehrmals "
|
48
|
+
"angeführt werden.\n"
|
49
|
+
|
50
|
+
#: ../lib/pdk/cli/new.rb:11
|
51
|
+
msgid "new <type> [options]"
|
52
|
+
msgstr "new <objekt> [optionen]"
|
53
|
+
|
54
|
+
#: ../lib/pdk/cli/new.rb:12
|
55
|
+
msgid "create a new module, etc."
|
56
|
+
msgstr "erzeuge ein neues Modul, etc."
|
57
|
+
|
58
|
+
#: ../lib/pdk/cli/new.rb:13
|
59
|
+
msgid ""
|
60
|
+
"Creates a new instance of <type> using the options relevant to that type of "
|
61
|
+
"thing"
|
62
|
+
msgstr ""
|
63
|
+
"Legt ein neues <object> an. Dabei werden Optionen speziell für diese Ding "
|
64
|
+
"ausgewertet"
|
65
|
+
|
66
|
+
#: ../lib/pdk/cli/new/module.rb:15
|
67
|
+
msgid "module [options] <module_name> [target_dir]"
|
68
|
+
msgstr "module [optionen] <modulname> [zielverzeichnis]"
|
69
|
+
|
70
|
+
#: ../lib/pdk/cli/new/module.rb:16
|
71
|
+
msgid "Create a new module named <module_name> using given options"
|
72
|
+
msgstr ""
|
73
|
+
"Erzeugt ein neues Modul mit dem Name <modulename>, und den angegebenen "
|
74
|
+
"Optionen"
|
75
|
+
|
76
|
+
#: ../lib/pdk/cli/new/module.rb:18
|
77
|
+
msgid "Overrides the template to use for this module."
|
78
|
+
msgstr "Verwende ein eigenes Vorlagerepository für dieses Modul."
|
79
|
+
|
80
|
+
#: ../lib/pdk/cli/new/module.rb:20
|
81
|
+
msgid ""
|
82
|
+
"Specifies the license this module is written under. This should be a "
|
83
|
+
"identifier from https://spdx.org/licenses/. Common values are 'Apache-2.0', "
|
84
|
+
"'MIT', or 'proprietary'."
|
85
|
+
msgstr ""
|
86
|
+
"Verwende die angegebene Lizenz für dieses Modul. Erlaubte Werte sind "
|
87
|
+
"'identifier' von https://spdx.org/licenses/. Übliche Lizenzen sind "
|
88
|
+
"'Apache-2.0', 'MIT', oder 'proprietary'."
|
89
|
+
|
90
|
+
#: ../lib/pdk/cli/new/module.rb:22
|
91
|
+
msgid ""
|
92
|
+
"Specifies the version control driver. Valid values: 'git', 'none'. Default: "
|
93
|
+
"'git'."
|
94
|
+
msgstr ""
|
95
|
+
"Verwende diesen Adapter zur Versionskontrolle. Gültige Werte: 'git', 'none'. "
|
96
|
+
"Standardwert: 'git'."
|
97
|
+
|
98
|
+
#: ../lib/pdk/cli/new/module.rb:24
|
99
|
+
msgid "When specified, skips interactive querying of metadata."
|
100
|
+
msgstr "Überspringe interaktive Abfrage von Metadaten."
|
101
|
+
|
102
|
+
#: ../lib/pdk/cli/new/module.rb:27
|
103
|
+
msgid "Creating new module: %{modname}"
|
104
|
+
msgstr "Neues Modul: %{modname}"
|
105
|
+
|
106
|
+
#: ../lib/pdk/cli/test.rb:14
|
107
|
+
msgid "test [type] [options]"
|
108
|
+
msgstr "test [art] [optionen]"
|
109
|
+
|
110
|
+
#: ../lib/pdk/cli/test.rb:15
|
111
|
+
msgid "Run tests."
|
112
|
+
msgstr "Führe Tests aus."
|
113
|
+
|
114
|
+
#: ../lib/pdk/cli/tests/unit.rb:16
|
115
|
+
msgid "unit [options]"
|
116
|
+
msgstr "unit [optionen]"
|
117
|
+
|
118
|
+
#: ../lib/pdk/cli/tests/unit.rb:17
|
119
|
+
msgid "Run unit tests."
|
120
|
+
msgstr "Führe Unit-Tests aus."
|
121
|
+
|
122
|
+
#: ../lib/pdk/cli/tests/unit.rb:19
|
123
|
+
msgid "list all available unit tests and their descriptions"
|
124
|
+
msgstr "Gibt die Namen aller verfügbaren Unit-Tests aus."
|
125
|
+
|
126
|
+
#: ../lib/pdk/cli/tests/unit.rb:21
|
127
|
+
msgid "a comma-separated list of tests to run"
|
128
|
+
msgstr "eine Komma-getrennte Liste alle Tests, die ausgeführt werden sollen"
|
129
|
+
|
130
|
+
#: ../lib/pdk/cli/tests/unit.rb:25
|
131
|
+
msgid "options to pass through to the actual test-runner"
|
132
|
+
msgstr ""
|
133
|
+
"diese Optionen werden an das zugrundeliegende Testwerkzeug weitergereicht"
|
134
|
+
|
135
|
+
#: ../lib/pdk/cli/tests/unit.rb:31
|
136
|
+
msgid "List of all available unit tests: (TODO)"
|
137
|
+
msgstr "Verfügbare Unit-Tests: (TODO)"
|
138
|
+
|
139
|
+
#: ../lib/pdk/cli/tests/unit.rb:44
|
140
|
+
msgid "Running unit tests: %{tests}"
|
141
|
+
msgstr "Führe aus: Unit test '%{tests}'"
|
142
|
+
|
143
|
+
#: ../lib/pdk/cli/util/option_normalizer.rb:6
|
144
|
+
msgid "Error: expected comma separated list"
|
145
|
+
msgstr "Fehler: Komma-getrennte Liste erwartet"
|
146
|
+
|
147
|
+
#: ../lib/pdk/cli/util/option_validator.rb:14
|
148
|
+
msgid "Error: the following values are invalid: %{invalid_entries}"
|
149
|
+
msgstr "Fehler: die folgenden Einträge sind ungültig: %{invalid_entries}"
|
150
|
+
|
151
|
+
#: ../lib/pdk/cli/validate.rb:15
|
152
|
+
msgid "validate [options]"
|
153
|
+
msgstr "validate [optionen]"
|
154
|
+
|
155
|
+
#: ../lib/pdk/cli/validate.rb:16
|
156
|
+
msgid "Run static analysis tests."
|
157
|
+
msgstr "Statische Analysen ausführen."
|
158
|
+
|
159
|
+
#: ../lib/pdk/cli/validate.rb:17
|
160
|
+
msgid ""
|
161
|
+
"Run metadata-json-lint, puppet parser validate, puppet-lint, or rubocop."
|
162
|
+
msgstr ""
|
163
|
+
"metadata-json-lint, puppet parser validate, puppet-lint, oder rubocop "
|
164
|
+
"ausführen."
|
165
|
+
|
166
|
+
#: ../lib/pdk/cli/validate.rb:19
|
167
|
+
msgid "list all available validators"
|
168
|
+
msgstr "Gibt die Namen aller verfügbaren Prüfer aus."
|
169
|
+
|
170
|
+
#: ../lib/pdk/cli/validate.rb:28
|
171
|
+
msgid "Available validators: %{validator_names}"
|
172
|
+
msgstr "Verfügbare Prüfer: %{validator_names}"
|
173
|
+
|
174
|
+
#: ../lib/pdk/cli/validate.rb:42
|
175
|
+
msgid "Unknown validator '%{v}'. Available validators: %{validators}"
|
176
|
+
msgstr "Prüfer '%{v}' nicht erkannt. Verfügbare Prüfer: %{validators}"
|
177
|
+
|
178
|
+
#: ../lib/pdk/cli/validate.rb:52 ../lib/pdk/cli/validate.rb:56
|
179
|
+
msgid "Running all available validators..."
|
180
|
+
msgstr "Führe alle verfügbaren Prüfer aus..."
|
181
|
+
|
182
|
+
#: ../lib/pdk/generators/module.rb:36
|
183
|
+
msgid ""
|
184
|
+
"We need to create a metadata.json file for this module. Please answer the "
|
185
|
+
"following questions; if the question is not applicable to this module, feel "
|
186
|
+
"free to leave it blank."
|
187
|
+
msgstr ""
|
188
|
+
"Um die metadata.json Datei für dieses Modul zu ereugen, werden einige Werte "
|
189
|
+
"benötigt. Bitte beantworten Sie die folgenden Fragen. Sollte eine der Fragen "
|
190
|
+
"nicht relevant sein, kann der Standardwert verwendet werden."
|
191
|
+
|
192
|
+
#: ../lib/pdk/generators/module.rb:44
|
193
|
+
msgid "What is the name of your module?"
|
194
|
+
msgstr "Wie lautet der Name dieses Moduls?"
|
195
|
+
|
196
|
+
#: ../lib/pdk/generators/module.rb:48
|
197
|
+
msgid "We're sorry, we could not parse that as a module name: %{message}"
|
198
|
+
msgstr "Der Wert konnte nicht als Modulname interpretiert werden: %{message}"
|
199
|
+
|
200
|
+
#: ../lib/pdk/generators/module.rb:53
|
201
|
+
msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
|
202
|
+
msgstr "Puppet verwendet Semantic Versioning (http://semver.org) für Module."
|
203
|
+
|
204
|
+
#: ../lib/pdk/generators/module.rb:54
|
205
|
+
msgid "What version is this module? [%{default_version}]"
|
206
|
+
msgstr "Was ist die aktuelle Version dieses Moduls? [%{default_version}]"
|
207
|
+
|
208
|
+
#: ../lib/pdk/generators/module.rb:57
|
209
|
+
msgid "We're sorry, we could not parse that as a Semantic Version: %{message}"
|
210
|
+
msgstr "Der Wert konnte nicht als Modulname interpretiert werden: %{message}"
|
211
|
+
|
212
|
+
#: ../lib/pdk/generators/module.rb:61
|
213
|
+
msgid "Who wrote this module? [%{default_author}]"
|
214
|
+
msgstr "Wer ist der Autor dieses Moduls? [%{default_author}]"
|
215
|
+
|
216
|
+
#: ../lib/pdk/generators/module.rb:65
|
217
|
+
msgid "What license does this module code fall under? [%{default_license}]"
|
218
|
+
msgstr "Unter welcher Lizenz ist das Modul erhältlich? [%{default_license}]"
|
219
|
+
|
220
|
+
#: ../lib/pdk/generators/module.rb:69
|
221
|
+
msgid "How would you describe this module in a single sentence?"
|
222
|
+
msgstr "Beschreibe das Modul in einem Satz:"
|
223
|
+
|
224
|
+
#: ../lib/pdk/generators/module.rb:72
|
225
|
+
msgid "Where is this module's source code repository?"
|
226
|
+
msgstr "Wo ist das Repository für dieses Modul?"
|
227
|
+
|
228
|
+
#: ../lib/pdk/generators/module.rb:75
|
229
|
+
msgid ""
|
230
|
+
"Where can others go to learn more about this module? "
|
231
|
+
"[%{default_project_page}]"
|
232
|
+
msgstr "Wo kann man mehr über dieses Modul erfahren? [%{default_project_page}]"
|
233
|
+
|
234
|
+
#: ../lib/pdk/generators/module.rb:78
|
235
|
+
msgid ""
|
236
|
+
"Where can others go to file issues about this module? [%{default_issues_url}]"
|
237
|
+
msgstr ""
|
238
|
+
"Wo kann man Fehler über dieses Modul berichten? [%{default_issues_url}]"
|
239
|
+
|
240
|
+
#: ../lib/pdk/generators/module.rb:86
|
241
|
+
msgid "About to generate this metadata; continue? [n/Y]"
|
242
|
+
msgstr "Bereit metadata.json zu generieren; weitermachen? [n/Y]"
|
243
|
+
|
244
|
+
#: ../lib/pdk/generators/module.rb:89
|
245
|
+
msgid "Aborting..."
|
246
|
+
msgstr "Abbruch..."
|
247
|
+
|
248
|
+
#: ../lib/pdk/validators/base_validator.rb:8
|
249
|
+
msgid "Running %{cmd} with options: %{options}"
|
250
|
+
msgstr "'%{cmd}' wird mit Optionen '%{options}' ausgeführt."
|
data/locales/pdk.pot
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
2
|
+
# Copyright (C) 2017 Puppet, Inc.
|
3
|
+
# This file is distributed under the same license as the puppet development kit package.
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
|
5
|
+
#
|
6
|
+
#, fuzzy
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: puppet development kit \n"
|
10
|
+
"Report-Msgid-Bugs-To: docs@puppet.com\n"
|
11
|
+
"POT-Creation-Date: 2017-05-02 14:07+1000\n"
|
12
|
+
"PO-Revision-Date: 2017-05-02 14:07+1000\n"
|
13
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
|
+
"Language: \n"
|
16
|
+
"MIME-Version: 1.0\n"
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
19
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20
|
+
|
21
|
+
#: ../lib/pdk/cli.rb:17
|
22
|
+
msgid "pdk command [options]"
|
23
|
+
msgstr ""
|
24
|
+
|
25
|
+
#: ../lib/pdk/cli.rb:18
|
26
|
+
msgid "Puppet Development Kit"
|
27
|
+
msgstr ""
|
28
|
+
|
29
|
+
#: ../lib/pdk/cli.rb:19
|
30
|
+
msgid "The shortest path to better modules."
|
31
|
+
msgstr ""
|
32
|
+
|
33
|
+
#: ../lib/pdk/cli.rb:21
|
34
|
+
msgid "show help for this command"
|
35
|
+
msgstr ""
|
36
|
+
|
37
|
+
#: ../lib/pdk/cli.rb:26
|
38
|
+
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."
|
39
|
+
msgstr ""
|
40
|
+
|
41
|
+
#: ../lib/pdk/cli.rb:45
|
42
|
+
msgid "Enable debug output."
|
43
|
+
msgstr ""
|
44
|
+
|
45
|
+
#: ../lib/pdk/cli/new.rb:11
|
46
|
+
msgid "new <type> [options]"
|
47
|
+
msgstr ""
|
48
|
+
|
49
|
+
#: ../lib/pdk/cli/new.rb:12
|
50
|
+
msgid "create a new module, etc."
|
51
|
+
msgstr ""
|
52
|
+
|
53
|
+
#: ../lib/pdk/cli/new.rb:13
|
54
|
+
msgid "Creates a new instance of <type> using the options relevant to that type of thing"
|
55
|
+
msgstr ""
|
56
|
+
|
57
|
+
#: ../lib/pdk/cli/new/module.rb:15
|
58
|
+
msgid "module [options] <module_name> [target_dir]"
|
59
|
+
msgstr ""
|
60
|
+
|
61
|
+
#: ../lib/pdk/cli/new/module.rb:16
|
62
|
+
msgid "Create a new module named <module_name> using given options"
|
63
|
+
msgstr ""
|
64
|
+
|
65
|
+
#: ../lib/pdk/cli/new/module.rb:18
|
66
|
+
msgid "Overrides the template to use for this module."
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#: ../lib/pdk/cli/new/module.rb:20
|
70
|
+
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'."
|
71
|
+
msgstr ""
|
72
|
+
|
73
|
+
#: ../lib/pdk/cli/new/module.rb:22
|
74
|
+
msgid "Specifies the version control driver. Valid values: 'git', 'none'. Default: 'git'."
|
75
|
+
msgstr ""
|
76
|
+
|
77
|
+
#: ../lib/pdk/cli/new/module.rb:24
|
78
|
+
msgid "When specified, skips interactive querying of metadata."
|
79
|
+
msgstr ""
|
80
|
+
|
81
|
+
#: ../lib/pdk/cli/new/module.rb:27
|
82
|
+
msgid "Creating new module: %{modname}"
|
83
|
+
msgstr ""
|
84
|
+
|
85
|
+
#: ../lib/pdk/cli/test.rb:14
|
86
|
+
msgid "test [type] [options]"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#: ../lib/pdk/cli/test.rb:15
|
90
|
+
msgid "Run tests."
|
91
|
+
msgstr ""
|
92
|
+
|
93
|
+
#: ../lib/pdk/cli/tests/unit.rb:16
|
94
|
+
msgid "unit [options]"
|
95
|
+
msgstr ""
|
96
|
+
|
97
|
+
#: ../lib/pdk/cli/tests/unit.rb:17
|
98
|
+
msgid "Run unit tests."
|
99
|
+
msgstr ""
|
100
|
+
|
101
|
+
#: ../lib/pdk/cli/tests/unit.rb:19
|
102
|
+
msgid "list all available unit tests and their descriptions"
|
103
|
+
msgstr ""
|
104
|
+
|
105
|
+
#: ../lib/pdk/cli/tests/unit.rb:21
|
106
|
+
msgid "a comma-separated list of tests to run"
|
107
|
+
msgstr ""
|
108
|
+
|
109
|
+
#: ../lib/pdk/cli/tests/unit.rb:25
|
110
|
+
msgid "options to pass through to the actual test-runner"
|
111
|
+
msgstr ""
|
112
|
+
|
113
|
+
#: ../lib/pdk/cli/tests/unit.rb:31
|
114
|
+
msgid "List of all available unit tests: (TODO)"
|
115
|
+
msgstr ""
|
116
|
+
|
117
|
+
#: ../lib/pdk/cli/tests/unit.rb:44
|
118
|
+
msgid "Running unit tests: %{tests}"
|
119
|
+
msgstr ""
|
120
|
+
|
121
|
+
#: ../lib/pdk/cli/util/option_normalizer.rb:6
|
122
|
+
msgid "Error: expected comma separated list"
|
123
|
+
msgstr ""
|
124
|
+
|
125
|
+
#: ../lib/pdk/cli/util/option_validator.rb:14
|
126
|
+
msgid "Error: the following values are invalid: %{invalid_entries}"
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#: ../lib/pdk/cli/validate.rb:15
|
130
|
+
msgid "validate [options]"
|
131
|
+
msgstr ""
|
132
|
+
|
133
|
+
#: ../lib/pdk/cli/validate.rb:16
|
134
|
+
msgid "Run static analysis tests."
|
135
|
+
msgstr ""
|
136
|
+
|
137
|
+
#: ../lib/pdk/cli/validate.rb:17
|
138
|
+
msgid "Run metadata-json-lint, puppet parser validate, puppet-lint, or rubocop."
|
139
|
+
msgstr ""
|
140
|
+
|
141
|
+
#: ../lib/pdk/cli/validate.rb:19
|
142
|
+
msgid "list all available validators"
|
143
|
+
msgstr ""
|
144
|
+
|
145
|
+
#: ../lib/pdk/cli/validate.rb:28
|
146
|
+
msgid "Available validators: %{validator_names}"
|
147
|
+
msgstr ""
|
148
|
+
|
149
|
+
#: ../lib/pdk/cli/validate.rb:42
|
150
|
+
msgid "Unknown validator '%{v}'. Available validators: %{validators}"
|
151
|
+
msgstr ""
|
152
|
+
|
153
|
+
#: ../lib/pdk/cli/validate.rb:52 ../lib/pdk/cli/validate.rb:56
|
154
|
+
msgid "Running all available validators..."
|
155
|
+
msgstr ""
|
156
|
+
|
157
|
+
#: ../lib/pdk/generators/module.rb:36
|
158
|
+
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."
|
159
|
+
msgstr ""
|
160
|
+
|
161
|
+
#: ../lib/pdk/generators/module.rb:44
|
162
|
+
msgid "What is the name of your module?"
|
163
|
+
msgstr ""
|
164
|
+
|
165
|
+
#: ../lib/pdk/generators/module.rb:48
|
166
|
+
msgid "We're sorry, we could not parse that as a module name: %{message}"
|
167
|
+
msgstr ""
|
168
|
+
|
169
|
+
#: ../lib/pdk/generators/module.rb:53
|
170
|
+
msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
|
171
|
+
msgstr ""
|
172
|
+
|
173
|
+
#: ../lib/pdk/generators/module.rb:54
|
174
|
+
msgid "What version is this module? [%{default_version}]"
|
175
|
+
msgstr ""
|
176
|
+
|
177
|
+
#: ../lib/pdk/generators/module.rb:57
|
178
|
+
msgid "We're sorry, we could not parse that as a Semantic Version: %{message}"
|
179
|
+
msgstr ""
|
180
|
+
|
181
|
+
#: ../lib/pdk/generators/module.rb:61
|
182
|
+
msgid "Who wrote this module? [%{default_author}]"
|
183
|
+
msgstr ""
|
184
|
+
|
185
|
+
#: ../lib/pdk/generators/module.rb:65
|
186
|
+
msgid "What license does this module code fall under? [%{default_license}]"
|
187
|
+
msgstr ""
|
188
|
+
|
189
|
+
#: ../lib/pdk/generators/module.rb:69
|
190
|
+
msgid "How would you describe this module in a single sentence?"
|
191
|
+
msgstr ""
|
192
|
+
|
193
|
+
#: ../lib/pdk/generators/module.rb:72
|
194
|
+
msgid "Where is this module's source code repository?"
|
195
|
+
msgstr ""
|
196
|
+
|
197
|
+
#: ../lib/pdk/generators/module.rb:75
|
198
|
+
msgid "Where can others go to learn more about this module? [%{default_project_page}]"
|
199
|
+
msgstr ""
|
200
|
+
|
201
|
+
#: ../lib/pdk/generators/module.rb:78
|
202
|
+
msgid "Where can others go to file issues about this module? [%{default_issues_url}]"
|
203
|
+
msgstr ""
|
204
|
+
|
205
|
+
#: ../lib/pdk/generators/module.rb:86
|
206
|
+
msgid "About to generate this metadata; continue? [n/Y]"
|
207
|
+
msgstr ""
|
208
|
+
|
209
|
+
#: ../lib/pdk/generators/module.rb:89
|
210
|
+
msgid "Aborting..."
|
211
|
+
msgstr ""
|
212
|
+
|
213
|
+
#: ../lib/pdk/validators/base_validator.rb:8
|
214
|
+
msgid "Running %{cmd} with options: %{options}"
|
215
|
+
msgstr ""
|