pdk 1.7.1 → 1.8.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 +37 -0
- data/lib/pdk/answer_file.rb +4 -3
- data/lib/pdk/cli.rb +3 -1
- data/lib/pdk/cli/new/module.rb +1 -0
- data/lib/pdk/cli/test/unit.rb +3 -0
- data/lib/pdk/cli/validate.rb +4 -1
- data/lib/pdk/generate/module.rb +6 -2
- data/lib/pdk/generate/puppet_object.rb +2 -1
- data/lib/pdk/module.rb +21 -0
- data/lib/pdk/module/build.rb +2 -11
- data/lib/pdk/module/convert.rb +12 -9
- data/lib/pdk/module/metadata.rb +5 -4
- data/lib/pdk/module/update_manager.rb +3 -2
- data/lib/pdk/tests/unit.rb +9 -7
- data/lib/pdk/util.rb +4 -3
- data/lib/pdk/util/bundler.rb +3 -8
- data/lib/pdk/util/filesystem.rb +12 -0
- data/lib/pdk/util/puppet_version.rb +22 -5
- data/lib/pdk/util/vendored_file.rb +4 -3
- data/lib/pdk/validate.rb +2 -1
- data/lib/pdk/validate/base_validator.rb +36 -8
- data/lib/pdk/validate/metadata_validator.rb +1 -2
- data/lib/pdk/validate/puppet/puppet_syntax.rb +4 -0
- data/lib/pdk/validate/ruby/rubocop.rb +2 -0
- data/lib/pdk/validate/tasks/metadata_lint.rb +126 -0
- data/lib/pdk/validate/tasks/name.rb +88 -0
- data/lib/pdk/validate/tasks_validator.rb +33 -0
- data/lib/pdk/version.rb +1 -1
- data/locales/pdk.pot +155 -139
- metadata +7 -3
- data/lib/pdk/validate/metadata/task_metadata_lint.rb +0 -124
@@ -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
|
data/lib/pdk/version.rb
CHANGED
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 v1.7.
|
9
|
+
"Project-Id-Version: puppet development kit v1.7.1-49-g6159e02fac\n"
|
10
10
|
"\n"
|
11
11
|
"Report-Msgid-Bugs-To: docs@puppet.com\n"
|
12
|
-
"POT-Creation-Date: 2018-
|
13
|
-
"PO-Revision-Date: 2018-
|
12
|
+
"POT-Creation-Date: 2018-11-27 17:00-0700\n"
|
13
|
+
"PO-Revision-Date: 2018-11-27 17:00-0700\n"
|
14
14
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
15
15
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16
16
|
"Language: \n"
|
@@ -19,79 +19,79 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
21
21
|
|
22
|
-
#: ../lib/pdk/answer_file.rb:
|
22
|
+
#: ../lib/pdk/answer_file.rb:59
|
23
23
|
msgid "Answer file can be updated only with a Hash"
|
24
24
|
msgstr ""
|
25
25
|
|
26
|
-
#: ../lib/pdk/answer_file.rb:
|
26
|
+
#: ../lib/pdk/answer_file.rb:86
|
27
27
|
msgid "Unable to open '%{file}' for reading"
|
28
28
|
msgstr ""
|
29
29
|
|
30
|
-
#: ../lib/pdk/answer_file.rb:
|
30
|
+
#: ../lib/pdk/answer_file.rb:95
|
31
31
|
msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
|
32
32
|
msgstr ""
|
33
33
|
|
34
|
-
#: ../lib/pdk/answer_file.rb:
|
34
|
+
#: ../lib/pdk/answer_file.rb:101
|
35
35
|
msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
|
36
36
|
msgstr ""
|
37
37
|
|
38
|
-
#: ../lib/pdk/answer_file.rb:
|
38
|
+
#: ../lib/pdk/answer_file.rb:115
|
39
39
|
msgid "Unable to write '%{file}': %{msg}"
|
40
40
|
msgstr ""
|
41
41
|
|
42
42
|
#: ../lib/pdk/cli.rb:42
|
43
|
-
msgid "Specifies the URL to the template to use when creating new modules or classes."
|
43
|
+
msgid "Specifies the URL to the template to use when creating new modules or classes. (default: %{default_url})"
|
44
44
|
msgstr ""
|
45
45
|
|
46
|
-
#: ../lib/pdk/cli.rb:
|
46
|
+
#: ../lib/pdk/cli.rb:48
|
47
47
|
msgid "When specified, skips interactive querying of metadata."
|
48
48
|
msgstr ""
|
49
49
|
|
50
|
-
#: ../lib/pdk/cli.rb:
|
50
|
+
#: ../lib/pdk/cli.rb:52
|
51
51
|
msgid "When specified, interactive querying of metadata will include all optional questions."
|
52
52
|
msgstr ""
|
53
53
|
|
54
|
-
#: ../lib/pdk/cli.rb:
|
54
|
+
#: ../lib/pdk/cli.rb:56
|
55
55
|
msgid "Puppet version to run tests or validations against."
|
56
56
|
msgstr ""
|
57
57
|
|
58
|
-
#: ../lib/pdk/cli.rb:
|
58
|
+
#: ../lib/pdk/cli.rb:57
|
59
59
|
msgid "Puppet Enterprise version to run tests or validations against."
|
60
60
|
msgstr ""
|
61
61
|
|
62
|
-
#: ../lib/pdk/cli.rb:
|
62
|
+
#: ../lib/pdk/cli.rb:63
|
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
64
|
msgstr ""
|
65
65
|
|
66
|
-
#: ../lib/pdk/cli.rb:
|
66
|
+
#: ../lib/pdk/cli.rb:68
|
67
67
|
msgid "pdk command [options]"
|
68
68
|
msgstr ""
|
69
69
|
|
70
|
-
#: ../lib/pdk/cli.rb:
|
70
|
+
#: ../lib/pdk/cli.rb:69
|
71
71
|
msgid "Puppet Development Kit"
|
72
72
|
msgstr ""
|
73
73
|
|
74
|
-
#: ../lib/pdk/cli.rb:
|
74
|
+
#: ../lib/pdk/cli.rb:70
|
75
75
|
msgid "The shortest path to better modules."
|
76
76
|
msgstr ""
|
77
77
|
|
78
|
-
#: ../lib/pdk/cli.rb:
|
78
|
+
#: ../lib/pdk/cli.rb:73
|
79
79
|
msgid "Show version of pdk."
|
80
80
|
msgstr ""
|
81
81
|
|
82
|
-
#: ../lib/pdk/cli.rb:
|
82
|
+
#: ../lib/pdk/cli.rb:78
|
83
83
|
msgid "Show help for this command."
|
84
84
|
msgstr ""
|
85
85
|
|
86
|
-
#: ../lib/pdk/cli.rb:
|
86
|
+
#: ../lib/pdk/cli.rb:83
|
87
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
88
|
msgstr ""
|
89
89
|
|
90
|
-
#: ../lib/pdk/cli.rb:
|
90
|
+
#: ../lib/pdk/cli.rb:94
|
91
91
|
msgid "Enable debug output."
|
92
92
|
msgstr ""
|
93
93
|
|
94
|
-
#: ../lib/pdk/cli.rb:
|
94
|
+
#: ../lib/pdk/cli.rb:98
|
95
95
|
msgid "Path to an answer file."
|
96
96
|
msgstr ""
|
97
97
|
|
@@ -191,7 +191,7 @@ msgstr ""
|
|
191
191
|
msgid "You can not specify --noop and --force when converting a module"
|
192
192
|
msgstr ""
|
193
193
|
|
194
|
-
#: ../lib/pdk/cli/convert.rb:29 ../lib/pdk/cli/new/module.rb:
|
194
|
+
#: ../lib/pdk/cli/convert.rb:29 ../lib/pdk/cli/new/module.rb:22
|
195
195
|
msgid "Ignoring --full-interview and continuing with --skip-interview."
|
196
196
|
msgstr ""
|
197
197
|
|
@@ -279,7 +279,7 @@ msgstr ""
|
|
279
279
|
msgid "New modules are created using the ‘pdk new module’ command."
|
280
280
|
msgstr ""
|
281
281
|
|
282
|
-
#: ../lib/pdk/cli/module/generate.rb:38 ../lib/pdk/cli/new/module.rb:
|
282
|
+
#: ../lib/pdk/cli/module/generate.rb:38 ../lib/pdk/cli/new/module.rb:37
|
283
283
|
msgid "Creating new module: %{modname}"
|
284
284
|
msgstr ""
|
285
285
|
|
@@ -339,6 +339,10 @@ msgstr ""
|
|
339
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
340
|
msgstr ""
|
341
341
|
|
342
|
+
#: ../lib/pdk/cli/new/module.rb:13
|
343
|
+
msgid "Do not automatically run `bundle install` after creating the module."
|
344
|
+
msgstr ""
|
345
|
+
|
342
346
|
#: ../lib/pdk/cli/new/provider.rb:4
|
343
347
|
msgid "provider [options] <name>"
|
344
348
|
msgstr ""
|
@@ -529,7 +533,7 @@ msgstr ""
|
|
529
533
|
|
530
534
|
#: ../lib/pdk/cli/validate.rb:8
|
531
535
|
msgid ""
|
532
|
-
"Run metadata, Puppet, or
|
536
|
+
"Run metadata, Puppet, Ruby, or Tasks validation.\n"
|
533
537
|
"\n"
|
534
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"
|
535
539
|
"\n"
|
@@ -564,141 +568,141 @@ msgstr ""
|
|
564
568
|
msgid "Running all available validators..."
|
565
569
|
msgstr ""
|
566
570
|
|
567
|
-
#: ../lib/pdk/cli/validate.rb:
|
571
|
+
#: ../lib/pdk/cli/validate.rb:101
|
568
572
|
msgid "Validating module using %{num_of_threads} threads"
|
569
573
|
msgstr ""
|
570
574
|
|
571
|
-
#: ../lib/pdk/generate/module.rb:
|
575
|
+
#: ../lib/pdk/generate/module.rb:24
|
572
576
|
msgid ""
|
573
577
|
"'%{module_name}' is not a valid module name.\n"
|
574
578
|
"Module names must begin with a lowercase letter and can only include lowercase letters, digits, and underscores."
|
575
579
|
msgstr ""
|
576
580
|
|
577
|
-
#: ../lib/pdk/generate/module.rb:
|
581
|
+
#: ../lib/pdk/generate/module.rb:32
|
578
582
|
msgid "The destination directory '%{dir}' already exists"
|
579
583
|
msgstr ""
|
580
584
|
|
581
|
-
#: ../lib/pdk/generate/module.rb:
|
585
|
+
#: ../lib/pdk/generate/module.rb:48
|
582
586
|
msgid "You do not have permission to write to '%{parent_dir}'"
|
583
587
|
msgstr ""
|
584
588
|
|
585
|
-
#: ../lib/pdk/generate/module.rb:
|
589
|
+
#: ../lib/pdk/generate/module.rb:91
|
586
590
|
msgid "Module '%{name}' generated at path '%{path}', from template '%{template_url}'."
|
587
591
|
msgstr ""
|
588
592
|
|
589
|
-
#: ../lib/pdk/generate/module.rb:
|
593
|
+
#: ../lib/pdk/generate/module.rb:92
|
590
594
|
msgid "In your module directory, add classes with the 'pdk new class' command."
|
591
595
|
msgstr ""
|
592
596
|
|
593
|
-
#: ../lib/pdk/generate/module.rb:
|
597
|
+
#: ../lib/pdk/generate/module.rb:95
|
594
598
|
msgid "Failed to move '%{source}' to '%{target}': %{message}"
|
595
599
|
msgstr ""
|
596
600
|
|
597
|
-
#: ../lib/pdk/generate/module.rb:
|
601
|
+
#: ../lib/pdk/generate/module.rb:109
|
598
602
|
msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
|
599
603
|
msgstr ""
|
600
604
|
|
601
|
-
#: ../lib/pdk/generate/module.rb:
|
605
|
+
#: ../lib/pdk/generate/module.rb:144
|
602
606
|
msgid "Unable to create directory '%{dir}': %{message}"
|
603
607
|
msgstr ""
|
604
608
|
|
605
|
-
#: ../lib/pdk/generate/module.rb:
|
609
|
+
#: ../lib/pdk/generate/module.rb:156
|
606
610
|
msgid "If you have a name for your module, add it here."
|
607
611
|
msgstr ""
|
608
612
|
|
609
|
-
#: ../lib/pdk/generate/module.rb:
|
613
|
+
#: ../lib/pdk/generate/module.rb:157
|
610
614
|
msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
|
611
615
|
msgstr ""
|
612
616
|
|
613
|
-
#: ../lib/pdk/generate/module.rb:
|
617
|
+
#: ../lib/pdk/generate/module.rb:160
|
614
618
|
msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
|
615
619
|
msgstr ""
|
616
620
|
|
617
|
-
#: ../lib/pdk/generate/module.rb:
|
621
|
+
#: ../lib/pdk/generate/module.rb:164
|
618
622
|
msgid "If you have a Puppet Forge username, add it here."
|
619
623
|
msgstr ""
|
620
624
|
|
621
|
-
#: ../lib/pdk/generate/module.rb:
|
625
|
+
#: ../lib/pdk/generate/module.rb:165
|
622
626
|
msgid "We can use this to upload your module to the Forge when it's complete."
|
623
627
|
msgstr ""
|
624
628
|
|
625
|
-
#: ../lib/pdk/generate/module.rb:
|
629
|
+
#: ../lib/pdk/generate/module.rb:168
|
626
630
|
msgid "Forge usernames can only contain lowercase letters and numbers"
|
627
631
|
msgstr ""
|
628
632
|
|
629
|
-
#: ../lib/pdk/generate/module.rb:
|
633
|
+
#: ../lib/pdk/generate/module.rb:173
|
630
634
|
msgid "What version is this module?"
|
631
635
|
msgstr ""
|
632
636
|
|
633
|
-
#: ../lib/pdk/generate/module.rb:
|
637
|
+
#: ../lib/pdk/generate/module.rb:174
|
634
638
|
msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
|
635
639
|
msgstr ""
|
636
640
|
|
637
|
-
#: ../lib/pdk/generate/module.rb:
|
641
|
+
#: ../lib/pdk/generate/module.rb:177
|
638
642
|
msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
|
639
643
|
msgstr ""
|
640
644
|
|
641
|
-
#: ../lib/pdk/generate/module.rb:
|
645
|
+
#: ../lib/pdk/generate/module.rb:183
|
642
646
|
msgid "Who wrote this module?"
|
643
647
|
msgstr ""
|
644
648
|
|
645
|
-
#: ../lib/pdk/generate/module.rb:
|
649
|
+
#: ../lib/pdk/generate/module.rb:184
|
646
650
|
msgid "This is used to credit the module's author."
|
647
651
|
msgstr ""
|
648
652
|
|
649
|
-
#: ../lib/pdk/generate/module.rb:
|
653
|
+
#: ../lib/pdk/generate/module.rb:190
|
650
654
|
msgid "What license does this module code fall under?"
|
651
655
|
msgstr ""
|
652
656
|
|
653
|
-
#: ../lib/pdk/generate/module.rb:
|
657
|
+
#: ../lib/pdk/generate/module.rb:191
|
654
658
|
msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
|
655
659
|
msgstr ""
|
656
660
|
|
657
|
-
#: ../lib/pdk/generate/module.rb:
|
661
|
+
#: ../lib/pdk/generate/module.rb:197
|
658
662
|
msgid "What operating systems does this module support?"
|
659
663
|
msgstr ""
|
660
664
|
|
661
|
-
#: ../lib/pdk/generate/module.rb:
|
665
|
+
#: ../lib/pdk/generate/module.rb:198
|
662
666
|
msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
|
663
667
|
msgstr ""
|
664
668
|
|
665
|
-
#: ../lib/pdk/generate/module.rb:
|
669
|
+
#: ../lib/pdk/generate/module.rb:208
|
666
670
|
msgid "Summarize the purpose of this module in a single sentence."
|
667
671
|
msgstr ""
|
668
672
|
|
669
|
-
#: ../lib/pdk/generate/module.rb:
|
673
|
+
#: ../lib/pdk/generate/module.rb:209
|
670
674
|
msgid "This helps other Puppet users understand what the module does."
|
671
675
|
msgstr ""
|
672
676
|
|
673
|
-
#: ../lib/pdk/generate/module.rb:
|
677
|
+
#: ../lib/pdk/generate/module.rb:216
|
674
678
|
msgid "If there is a source code repository for this module, enter the URL here."
|
675
679
|
msgstr ""
|
676
680
|
|
677
|
-
#: ../lib/pdk/generate/module.rb:
|
681
|
+
#: ../lib/pdk/generate/module.rb:217
|
678
682
|
msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
|
679
683
|
msgstr ""
|
680
684
|
|
681
|
-
#: ../lib/pdk/generate/module.rb:
|
685
|
+
#: ../lib/pdk/generate/module.rb:224
|
682
686
|
msgid "If there is a URL where others can learn more about this module, enter it here."
|
683
687
|
msgstr ""
|
684
688
|
|
685
|
-
#: ../lib/pdk/generate/module.rb:
|
689
|
+
#: ../lib/pdk/generate/module.rb:225 ../lib/pdk/generate/module.rb:232
|
686
690
|
msgid "Optional. You can update this later in the metadata.json."
|
687
691
|
msgstr ""
|
688
692
|
|
689
|
-
#: ../lib/pdk/generate/module.rb:
|
693
|
+
#: ../lib/pdk/generate/module.rb:231
|
690
694
|
msgid "If there is a public issue tracker for this module, enter its URL here."
|
691
695
|
msgstr ""
|
692
696
|
|
693
|
-
#: ../lib/pdk/generate/module.rb:
|
697
|
+
#: ../lib/pdk/generate/module.rb:258
|
694
698
|
msgid "create"
|
695
699
|
msgstr ""
|
696
700
|
|
697
|
-
#: ../lib/pdk/generate/module.rb:
|
701
|
+
#: ../lib/pdk/generate/module.rb:258
|
698
702
|
msgid "update"
|
699
703
|
msgstr ""
|
700
704
|
|
701
|
-
#: ../lib/pdk/generate/module.rb:
|
705
|
+
#: ../lib/pdk/generate/module.rb:259
|
702
706
|
msgid ""
|
703
707
|
"\n"
|
704
708
|
"We need to %{action} the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
|
@@ -706,19 +710,19 @@ msgid ""
|
|
706
710
|
"\n"
|
707
711
|
msgstr ""
|
708
712
|
|
709
|
-
#: ../lib/pdk/generate/module.rb:
|
713
|
+
#: ../lib/pdk/generate/module.rb:273
|
710
714
|
msgid "No answers given, interview cancelled."
|
711
715
|
msgstr ""
|
712
716
|
|
713
|
-
#: ../lib/pdk/generate/module.rb:
|
717
|
+
#: ../lib/pdk/generate/module.rb:297
|
714
718
|
msgid "Metadata will be generated based on this information, continue?"
|
715
719
|
msgstr ""
|
716
720
|
|
717
|
-
#: ../lib/pdk/generate/module.rb:
|
721
|
+
#: ../lib/pdk/generate/module.rb:299
|
718
722
|
msgid "Interview cancelled; exiting."
|
719
723
|
msgstr ""
|
720
724
|
|
721
|
-
#: ../lib/pdk/generate/module.rb:
|
725
|
+
#: ../lib/pdk/generate/module.rb:303
|
722
726
|
msgid "Process cancelled; exiting."
|
723
727
|
msgstr ""
|
724
728
|
|
@@ -762,35 +766,35 @@ msgstr ""
|
|
762
766
|
msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
|
763
767
|
msgstr ""
|
764
768
|
|
765
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
769
|
+
#: ../lib/pdk/generate/puppet_object.rb:105
|
766
770
|
msgid "Unable to generate %{object_type}; '%{file}' already exists."
|
767
771
|
msgstr ""
|
768
772
|
|
769
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
773
|
+
#: ../lib/pdk/generate/puppet_object.rb:171
|
770
774
|
msgid "Creating '%{file}' from template."
|
771
775
|
msgstr ""
|
772
776
|
|
773
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
777
|
+
#: ../lib/pdk/generate/puppet_object.rb:178
|
774
778
|
msgid "Unable to create directory '%{path}': %{message}"
|
775
779
|
msgstr ""
|
776
780
|
|
777
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
781
|
+
#: ../lib/pdk/generate/puppet_object.rb:186
|
778
782
|
msgid "Unable to write to file '%{path}': %{message}"
|
779
783
|
msgstr ""
|
780
784
|
|
781
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
785
|
+
#: ../lib/pdk/generate/puppet_object.rb:209
|
782
786
|
msgid "No %{dir_type} template specified; trying next template directory."
|
783
787
|
msgstr ""
|
784
788
|
|
785
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
789
|
+
#: ../lib/pdk/generate/puppet_object.rb:222
|
786
790
|
msgid "Unable to find a %{type} template in %{url}; trying next template directory."
|
787
791
|
msgstr ""
|
788
792
|
|
789
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
793
|
+
#: ../lib/pdk/generate/puppet_object.rb:224
|
790
794
|
msgid "Unable to find the %{type} template in %{url}."
|
791
795
|
msgstr ""
|
792
796
|
|
793
|
-
#: ../lib/pdk/generate/puppet_object.rb:
|
797
|
+
#: ../lib/pdk/generate/puppet_object.rb:283
|
794
798
|
msgid "'%{dir}' does not contain valid Puppet module metadata: %{msg}"
|
795
799
|
msgstr ""
|
796
800
|
|
@@ -798,7 +802,7 @@ msgstr ""
|
|
798
802
|
msgid "A task named '%{name}' already exists in this module; defined in %{file}"
|
799
803
|
msgstr ""
|
800
804
|
|
801
|
-
#: ../lib/pdk/module/build.rb:
|
805
|
+
#: ../lib/pdk/module/build.rb:149
|
802
806
|
msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
|
803
807
|
msgstr ""
|
804
808
|
|
@@ -818,79 +822,79 @@ msgstr ""
|
|
818
822
|
msgid "skipping '%{path}'"
|
819
823
|
msgstr ""
|
820
824
|
|
821
|
-
#: ../lib/pdk/module/convert.rb:
|
825
|
+
#: ../lib/pdk/module/convert.rb:112
|
822
826
|
msgid "Unable to update module metadata; %{path} exists but it is not readable."
|
823
827
|
msgstr ""
|
824
828
|
|
825
|
-
#: ../lib/pdk/module/convert.rb:
|
829
|
+
#: ../lib/pdk/module/convert.rb:128
|
826
830
|
msgid "Unable to update module metadata; %{path} exists but it is not a file."
|
827
831
|
msgstr ""
|
828
832
|
|
829
|
-
#: ../lib/pdk/module/convert.rb:
|
833
|
+
#: ../lib/pdk/module/convert.rb:171 ../lib/pdk/module/convert.rb:176 ../lib/pdk/module/convert.rb:180
|
830
834
|
msgid ""
|
831
835
|
"\n"
|
832
836
|
"%{banner}"
|
833
837
|
msgstr ""
|
834
838
|
|
835
|
-
#: ../lib/pdk/module/convert.rb:
|
839
|
+
#: ../lib/pdk/module/convert.rb:182
|
836
840
|
msgid ""
|
837
841
|
"\n"
|
838
842
|
"%{summary}\n"
|
839
843
|
"\n"
|
840
844
|
msgstr ""
|
841
845
|
|
842
|
-
#: ../lib/pdk/module/convert.rb:
|
846
|
+
#: ../lib/pdk/module/convert.rb:193
|
843
847
|
msgid ""
|
844
848
|
"\n"
|
845
849
|
"You can find a report of differences in %{path}.\n"
|
846
850
|
"\n"
|
847
851
|
msgstr ""
|
848
852
|
|
849
|
-
#: ../lib/pdk/module/metadata.rb:
|
853
|
+
#: ../lib/pdk/module/metadata.rb:94
|
850
854
|
msgid "Cannot read metadata from file: no path to file was given."
|
851
855
|
msgstr ""
|
852
856
|
|
853
|
-
#: ../lib/pdk/module/metadata.rb:
|
857
|
+
#: ../lib/pdk/module/metadata.rb:98
|
854
858
|
msgid "'%{file}' does not exist or is not a file."
|
855
859
|
msgstr ""
|
856
860
|
|
857
|
-
#: ../lib/pdk/module/metadata.rb:
|
861
|
+
#: ../lib/pdk/module/metadata.rb:102
|
858
862
|
msgid "Unable to open '%{file}' for reading."
|
859
863
|
msgstr ""
|
860
864
|
|
861
|
-
#: ../lib/pdk/module/metadata.rb:
|
865
|
+
#: ../lib/pdk/module/metadata.rb:108
|
862
866
|
msgid "Invalid JSON in metadata.json: %{msg}"
|
863
867
|
msgstr ""
|
864
868
|
|
865
|
-
#: ../lib/pdk/module/metadata.rb:
|
869
|
+
#: ../lib/pdk/module/metadata.rb:139
|
866
870
|
msgid "Module metadata does not contain any requirements."
|
867
871
|
msgstr ""
|
868
872
|
|
869
|
-
#: ../lib/pdk/module/metadata.rb:
|
873
|
+
#: ../lib/pdk/module/metadata.rb:140
|
870
874
|
msgid "Module metadata does not contain a \"puppet\" requirement."
|
871
875
|
msgstr ""
|
872
876
|
|
873
|
-
#: ../lib/pdk/module/metadata.rb:
|
877
|
+
#: ../lib/pdk/module/metadata.rb:141
|
874
878
|
msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
|
875
879
|
msgstr ""
|
876
880
|
|
877
|
-
#: ../lib/pdk/module/metadata.rb:
|
881
|
+
#: ../lib/pdk/module/metadata.rb:180
|
878
882
|
msgid "Field must be a dash-separated user name and module name."
|
879
883
|
msgstr ""
|
880
884
|
|
881
|
-
#: ../lib/pdk/module/metadata.rb:
|
885
|
+
#: ../lib/pdk/module/metadata.rb:182
|
882
886
|
msgid "Module name must contain only alphanumeric or underscore characters."
|
883
887
|
msgstr ""
|
884
888
|
|
885
|
-
#: ../lib/pdk/module/metadata.rb:
|
889
|
+
#: ../lib/pdk/module/metadata.rb:184
|
886
890
|
msgid "Module name must begin with a letter."
|
887
891
|
msgstr ""
|
888
892
|
|
889
|
-
#: ../lib/pdk/module/metadata.rb:
|
893
|
+
#: ../lib/pdk/module/metadata.rb:186
|
890
894
|
msgid "Namespace must contain only alphanumeric characters."
|
891
895
|
msgstr ""
|
892
896
|
|
893
|
-
#: ../lib/pdk/module/metadata.rb:
|
897
|
+
#: ../lib/pdk/module/metadata.rb:189
|
894
898
|
msgid "Invalid 'name' field in metadata.json: %{err}"
|
895
899
|
msgstr ""
|
896
900
|
|
@@ -952,27 +956,27 @@ msgstr ""
|
|
952
956
|
msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
|
953
957
|
msgstr ""
|
954
958
|
|
955
|
-
#: ../lib/pdk/module/update_manager.rb:
|
959
|
+
#: ../lib/pdk/module/update_manager.rb:110
|
956
960
|
msgid "unlinking '%{path}'"
|
957
961
|
msgstr ""
|
958
962
|
|
959
|
-
#: ../lib/pdk/module/update_manager.rb:
|
963
|
+
#: ../lib/pdk/module/update_manager.rb:113
|
960
964
|
msgid "'%{path}': already gone"
|
961
965
|
msgstr ""
|
962
966
|
|
963
|
-
#: ../lib/pdk/module/update_manager.rb:
|
967
|
+
#: ../lib/pdk/module/update_manager.rb:116
|
964
968
|
msgid "Unable to remove '%{path}': %{message}"
|
965
969
|
msgstr ""
|
966
970
|
|
967
|
-
#: ../lib/pdk/module/update_manager.rb:
|
971
|
+
#: ../lib/pdk/module/update_manager.rb:134
|
968
972
|
msgid "Unable to open '%{path}' for reading"
|
969
973
|
msgstr ""
|
970
974
|
|
971
|
-
#: ../lib/pdk/module/update_manager.rb:
|
975
|
+
#: ../lib/pdk/module/update_manager.rb:151
|
972
976
|
msgid "writing '%{path}'"
|
973
977
|
msgstr ""
|
974
978
|
|
975
|
-
#: ../lib/pdk/module/update_manager.rb:
|
979
|
+
#: ../lib/pdk/module/update_manager.rb:154
|
976
980
|
msgid "You do not have permission to write to '%{path}'"
|
977
981
|
msgstr ""
|
978
982
|
|
@@ -1048,39 +1052,39 @@ msgstr ""
|
|
1048
1052
|
msgid "Failed to prepare to run the unit tests."
|
1049
1053
|
msgstr ""
|
1050
1054
|
|
1051
|
-
#: ../lib/pdk/tests/unit.rb:
|
1055
|
+
#: ../lib/pdk/tests/unit.rb:75
|
1052
1056
|
msgid "Running unit tests."
|
1053
1057
|
msgstr ""
|
1054
1058
|
|
1055
|
-
#: ../lib/pdk/tests/unit.rb:
|
1059
|
+
#: ../lib/pdk/tests/unit.rb:75
|
1056
1060
|
msgid "Running unit tests in parallel."
|
1057
1061
|
msgstr ""
|
1058
1062
|
|
1059
|
-
#: ../lib/pdk/tests/unit.rb:
|
1063
|
+
#: ../lib/pdk/tests/unit.rb:89
|
1060
1064
|
msgid "Unit test output did not contain a valid JSON result: %{output}"
|
1061
1065
|
msgstr ""
|
1062
1066
|
|
1063
|
-
#: ../lib/pdk/tests/unit.rb:
|
1067
|
+
#: ../lib/pdk/tests/unit.rb:141
|
1064
1068
|
msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
|
1065
1069
|
msgstr ""
|
1066
1070
|
|
1067
|
-
#: ../lib/pdk/tests/unit.rb:
|
1071
|
+
#: ../lib/pdk/tests/unit.rb:197
|
1068
1072
|
msgid "Failed to find valid JSON in output from rspec: %{output}"
|
1069
1073
|
msgstr ""
|
1070
1074
|
|
1071
|
-
#: ../lib/pdk/tests/unit.rb:
|
1075
|
+
#: ../lib/pdk/tests/unit.rb:202
|
1072
1076
|
msgid "Unable to enumerate examples. rspec reported: %{message}"
|
1073
1077
|
msgstr ""
|
1074
1078
|
|
1075
|
-
#: ../lib/pdk/util.rb:
|
1079
|
+
#: ../lib/pdk/util.rb:60
|
1076
1080
|
msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
|
1077
1081
|
msgstr ""
|
1078
1082
|
|
1079
|
-
#: ../lib/pdk/util.rb:
|
1083
|
+
#: ../lib/pdk/util.rb:85
|
1080
1084
|
msgid "Package basedir requested for non-package install."
|
1081
1085
|
msgstr ""
|
1082
1086
|
|
1083
|
-
#: ../lib/pdk/util.rb:
|
1087
|
+
#: ../lib/pdk/util.rb:210
|
1084
1088
|
msgid "Unable to access the previously used template '%{template}', using the default template instead."
|
1085
1089
|
msgstr ""
|
1086
1090
|
|
@@ -1092,7 +1096,7 @@ msgstr ""
|
|
1092
1096
|
msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
|
1093
1097
|
msgstr ""
|
1094
1098
|
|
1095
|
-
#: ../lib/pdk/util/bundler.rb:
|
1099
|
+
#: ../lib/pdk/util/bundler.rb:97
|
1096
1100
|
msgid "Checking for missing Gemfile dependencies."
|
1097
1101
|
msgstr ""
|
1098
1102
|
|
@@ -1120,21 +1124,21 @@ msgstr ""
|
|
1120
1124
|
msgid "Unable to resolve Gemfile dependencies."
|
1121
1125
|
msgstr ""
|
1122
1126
|
|
1123
|
-
#: ../lib/pdk/util/bundler.rb:
|
1127
|
+
#: ../lib/pdk/util/bundler.rb:196
|
1124
1128
|
msgid "Installing missing Gemfile dependencies."
|
1125
1129
|
msgstr ""
|
1126
1130
|
|
1127
|
-
#: ../lib/pdk/util/bundler.rb:
|
1131
|
+
#: ../lib/pdk/util/bundler.rb:204
|
1128
1132
|
msgid "Unable to install missing Gemfile dependencies."
|
1129
1133
|
msgstr ""
|
1130
1134
|
|
1131
|
-
#: ../lib/pdk/util/bundler.rb:
|
1135
|
+
#: ../lib/pdk/util/bundler.rb:218
|
1132
1136
|
msgid ""
|
1133
1137
|
"Failed to generate binstubs for '%{gems}':\n"
|
1134
1138
|
"%{output}"
|
1135
1139
|
msgstr ""
|
1136
1140
|
|
1137
|
-
#: ../lib/pdk/util/bundler.rb:
|
1141
|
+
#: ../lib/pdk/util/bundler.rb:219
|
1138
1142
|
msgid "Unable to install requested binstubs."
|
1139
1143
|
msgstr ""
|
1140
1144
|
|
@@ -1146,39 +1150,43 @@ msgstr ""
|
|
1146
1150
|
msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
|
1147
1151
|
msgstr ""
|
1148
1152
|
|
1149
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1153
|
+
#: ../lib/pdk/util/puppet_version.rb:59
|
1150
1154
|
msgid "Unable to clone git repository at '%{repo}'."
|
1151
1155
|
msgstr ""
|
1152
1156
|
|
1153
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1154
|
-
msgid "Unable to
|
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}'."
|
1155
1163
|
msgstr ""
|
1156
1164
|
|
1157
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1165
|
+
#: ../lib/pdk/util/puppet_version.rb:98
|
1158
1166
|
msgid "Unable to find a Puppet gem matching %{requirement}."
|
1159
1167
|
msgstr ""
|
1160
1168
|
|
1161
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1169
|
+
#: ../lib/pdk/util/puppet_version.rb:105
|
1162
1170
|
msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
|
1163
1171
|
msgstr ""
|
1164
1172
|
|
1165
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1173
|
+
#: ../lib/pdk/util/puppet_version.rb:122
|
1166
1174
|
msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
|
1167
1175
|
msgstr ""
|
1168
1176
|
|
1169
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1177
|
+
#: ../lib/pdk/util/puppet_version.rb:127
|
1170
1178
|
msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
|
1171
1179
|
msgstr ""
|
1172
1180
|
|
1173
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1181
|
+
#: ../lib/pdk/util/puppet_version.rb:140
|
1174
1182
|
msgid "Unable to determine Puppet version for module: no metadata.json present in module."
|
1175
1183
|
msgstr ""
|
1176
1184
|
|
1177
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1185
|
+
#: ../lib/pdk/util/puppet_version.rb:166
|
1178
1186
|
msgid "%{version} is not a valid version number."
|
1179
1187
|
msgstr ""
|
1180
1188
|
|
1181
|
-
#: ../lib/pdk/util/puppet_version.rb:
|
1189
|
+
#: ../lib/pdk/util/puppet_version.rb:200
|
1182
1190
|
msgid "Failed to parse Puppet Enterprise version map file."
|
1183
1191
|
msgstr ""
|
1184
1192
|
|
@@ -1186,15 +1194,15 @@ msgstr ""
|
|
1186
1194
|
msgid "Unknown Ruby version \"%{ruby_version}\""
|
1187
1195
|
msgstr ""
|
1188
1196
|
|
1189
|
-
#: ../lib/pdk/util/vendored_file.rb:
|
1197
|
+
#: ../lib/pdk/util/vendored_file.rb:49
|
1190
1198
|
msgid "%{file_name} was not found in the cache, downloading it from %{url}."
|
1191
1199
|
msgstr ""
|
1192
1200
|
|
1193
|
-
#: ../lib/pdk/util/vendored_file.rb:
|
1201
|
+
#: ../lib/pdk/util/vendored_file.rb:64
|
1194
1202
|
msgid "Unable to download %{url}. %{code}: %{message}."
|
1195
1203
|
msgstr ""
|
1196
1204
|
|
1197
|
-
#: ../lib/pdk/util/vendored_file.rb:
|
1205
|
+
#: ../lib/pdk/util/vendored_file.rb:73
|
1198
1206
|
msgid "Unable to download %{url}. Check internet connectivity and try again. %{error}"
|
1199
1207
|
msgstr ""
|
1200
1208
|
|
@@ -1206,23 +1214,23 @@ msgstr ""
|
|
1206
1214
|
msgid "Failed to call GetLongPathName"
|
1207
1215
|
msgstr ""
|
1208
1216
|
|
1209
|
-
#: ../lib/pdk/validate/base_validator.rb:
|
1217
|
+
#: ../lib/pdk/validate/base_validator.rb:102
|
1210
1218
|
msgid "Invoking %{cmd}"
|
1211
1219
|
msgstr ""
|
1212
1220
|
|
1213
|
-
#: ../lib/pdk/validate/base_validator.rb:
|
1221
|
+
#: ../lib/pdk/validate/base_validator.rb:107
|
1214
1222
|
msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
|
1215
1223
|
msgstr ""
|
1216
1224
|
|
1217
|
-
#: ../lib/pdk/validate/base_validator.rb:
|
1225
|
+
#: ../lib/pdk/validate/base_validator.rb:111
|
1218
1226
|
msgid "Target does not contain any files to validate (%{pattern})."
|
1219
1227
|
msgstr ""
|
1220
1228
|
|
1221
|
-
#: ../lib/pdk/validate/base_validator.rb:
|
1229
|
+
#: ../lib/pdk/validate/base_validator.rb:120
|
1222
1230
|
msgid "%{validator}: Skipped '%{target}'. Target file not found."
|
1223
1231
|
msgstr ""
|
1224
1232
|
|
1225
|
-
#: ../lib/pdk/validate/base_validator.rb:
|
1233
|
+
#: ../lib/pdk/validate/base_validator.rb:124
|
1226
1234
|
msgid "File does not exist."
|
1227
1235
|
msgstr ""
|
1228
1236
|
|
@@ -1238,30 +1246,38 @@ msgstr ""
|
|
1238
1246
|
msgid "Checking metadata syntax (%{targets})."
|
1239
1247
|
msgstr ""
|
1240
1248
|
|
1241
|
-
#: ../lib/pdk/validate/metadata/metadata_syntax.rb:69 ../lib/pdk/validate/
|
1249
|
+
#: ../lib/pdk/validate/metadata/metadata_syntax.rb:69 ../lib/pdk/validate/tasks/metadata_lint.rb:77
|
1242
1250
|
msgid "Could not be read."
|
1243
1251
|
msgstr ""
|
1244
1252
|
|
1245
|
-
#: ../lib/pdk/validate/
|
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
|
1246
1266
|
msgid "Checking task metadata style (%{targets})."
|
1247
1267
|
msgstr ""
|
1248
1268
|
|
1249
|
-
#: ../lib/pdk/validate/
|
1269
|
+
#: ../lib/pdk/validate/tasks/metadata_lint.rb:56
|
1250
1270
|
msgid "Failed to parse Task Metadata Schema file."
|
1251
1271
|
msgstr ""
|
1252
1272
|
|
1253
|
-
#: ../lib/pdk/validate/
|
1273
|
+
#: ../lib/pdk/validate/tasks/metadata_lint.rb:92
|
1254
1274
|
msgid "Unable to validate Task Metadata. %{error}."
|
1255
1275
|
msgstr ""
|
1256
1276
|
|
1257
|
-
#: ../lib/pdk/validate/
|
1258
|
-
msgid "
|
1259
|
-
msgstr ""
|
1260
|
-
|
1261
|
-
#: ../lib/pdk/validate/puppet/puppet_syntax.rb:41
|
1262
|
-
msgid "Checking Puppet manifest syntax (%{pattern})."
|
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."
|
1263
1279
|
msgstr ""
|
1264
1280
|
|
1265
|
-
#: ../lib/pdk/validate/
|
1266
|
-
msgid "Checking
|
1281
|
+
#: ../lib/pdk/validate/tasks/name.rb:23
|
1282
|
+
msgid "Checking task names (%{targets})."
|
1267
1283
|
msgstr ""
|