pdk 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +71 -2
  3. data/lib/pdk/cli/convert.rb +7 -9
  4. data/lib/pdk/cli/new/class.rb +2 -1
  5. data/lib/pdk/cli/new/defined_type.rb +2 -1
  6. data/lib/pdk/cli/new/provider.rb +2 -1
  7. data/lib/pdk/cli/new/task.rb +2 -1
  8. data/lib/pdk/cli/new/test.rb +2 -1
  9. data/lib/pdk/cli/new/transport.rb +2 -1
  10. data/lib/pdk/cli/remove/config.rb +80 -0
  11. data/lib/pdk/cli/remove.rb +20 -0
  12. data/lib/pdk/cli/set/config.rb +119 -0
  13. data/lib/pdk/cli/set.rb +20 -0
  14. data/lib/pdk/cli/update.rb +6 -8
  15. data/lib/pdk/cli/util/update_manager_printer.rb +82 -0
  16. data/lib/pdk/cli/util.rb +1 -0
  17. data/lib/pdk/cli.rb +2 -0
  18. data/lib/pdk/config.rb +96 -13
  19. data/lib/pdk/context.rb +8 -5
  20. data/lib/pdk/generate/defined_type.rb +25 -32
  21. data/lib/pdk/generate/module.rb +11 -10
  22. data/lib/pdk/generate/provider.rb +16 -65
  23. data/lib/pdk/generate/puppet_class.rb +25 -31
  24. data/lib/pdk/generate/puppet_object.rb +83 -187
  25. data/lib/pdk/generate/resource_api_object.rb +55 -0
  26. data/lib/pdk/generate/task.rb +28 -46
  27. data/lib/pdk/generate/transport.rb +21 -75
  28. data/lib/pdk/generate.rb +1 -0
  29. data/lib/pdk/module/convert.rb +41 -23
  30. data/lib/pdk/module/release.rb +1 -1
  31. data/lib/pdk/module/update.rb +6 -10
  32. data/lib/pdk/module/update_manager.rb +7 -0
  33. data/lib/pdk/module.rb +0 -1
  34. data/lib/pdk/template/fetcher/git.rb +85 -0
  35. data/lib/pdk/template/fetcher/local.rb +28 -0
  36. data/lib/pdk/template/fetcher.rb +98 -0
  37. data/lib/pdk/template/renderer/v1/legacy_template_dir.rb +116 -0
  38. data/lib/pdk/template/renderer/v1/renderer.rb +132 -0
  39. data/lib/pdk/template/renderer/v1/template_file.rb +102 -0
  40. data/lib/pdk/template/renderer/v1.rb +25 -0
  41. data/lib/pdk/template/renderer.rb +96 -0
  42. data/lib/pdk/template/template_dir.rb +67 -0
  43. data/lib/pdk/template.rb +59 -0
  44. data/lib/pdk/tests/unit.rb +5 -0
  45. data/lib/pdk/util/json_finder.rb +84 -0
  46. data/lib/pdk/util/puppet_strings.rb +3 -3
  47. data/lib/pdk/util/template_uri.rb +4 -6
  48. data/lib/pdk/util.rb +4 -35
  49. data/lib/pdk/validate/control_repo/control_repo_validator_group.rb +23 -0
  50. data/lib/pdk/validate/control_repo/environment_conf_validator.rb +98 -0
  51. data/lib/pdk/validate/invokable_validator.rb +2 -3
  52. data/lib/pdk/validate/validator.rb +7 -0
  53. data/lib/pdk/validate/validator_group.rb +1 -0
  54. data/lib/pdk/validate.rb +17 -10
  55. data/lib/pdk/version.rb +1 -1
  56. data/lib/pdk.rb +1 -1
  57. data/locales/pdk.pot +356 -228
  58. metadata +33 -12
  59. data/lib/pdk/module/template_dir/base.rb +0 -268
  60. data/lib/pdk/module/template_dir/git.rb +0 -91
  61. data/lib/pdk/module/template_dir/local.rb +0 -21
  62. data/lib/pdk/module/template_dir.rb +0 -115
  63. data/lib/pdk/template_file.rb +0 -96
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.16.0-46-ga0df432\n"
9
+ "Project-Id-Version: puppet development kit v1.17.0-43-gfcce10d\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2020-02-27 10:49+1100\n"
13
- "PO-Revision-Date: 2020-02-27 10:49+1100\n"
12
+ "POT-Creation-Date: 2020-05-12 11:14-0700\n"
13
+ "PO-Revision-Date: 2020-05-12 11:14-0700\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -185,7 +185,7 @@ msgstr ""
185
185
  msgid "%{value}"
186
186
  msgstr ""
187
187
 
188
- #: ../lib/pdk/cli/config/get.rb:23 ../lib/pdk/cli/get/config.rb:21
188
+ #: ../lib/pdk/cli/config/get.rb:23 ../lib/pdk/cli/get/config.rb:21 ../lib/pdk/cli/remove/config.rb:63 ../lib/pdk/cli/set/config.rb:99
189
189
  msgid "%{name}=%{value}"
190
190
  msgstr ""
191
191
 
@@ -237,23 +237,23 @@ msgstr ""
237
237
  msgid "Convert the module to use the default PDK template."
238
238
  msgstr ""
239
239
 
240
- #: ../lib/pdk/cli/convert.rb:22
240
+ #: ../lib/pdk/cli/convert.rb:21
241
241
  msgid "`pdk convert` can only be run from inside a valid module directory."
242
242
  msgstr ""
243
243
 
244
- #: ../lib/pdk/cli/convert.rb:27
244
+ #: ../lib/pdk/cli/convert.rb:25
245
245
  msgid "You can not specify --noop and --force when converting a module"
246
246
  msgstr ""
247
247
 
248
- #: ../lib/pdk/cli/convert.rb:31
248
+ #: ../lib/pdk/cli/convert.rb:29
249
249
  msgid "You can not specify --template-url and --default-template."
250
250
  msgstr ""
251
251
 
252
- #: ../lib/pdk/cli/convert.rb:42 ../lib/pdk/cli/new/module.rb:27
252
+ #: ../lib/pdk/cli/convert.rb:40 ../lib/pdk/cli/new/module.rb:27
253
253
  msgid "Ignoring --full-interview and continuing with --skip-interview."
254
254
  msgstr ""
255
255
 
256
- #: ../lib/pdk/cli/convert.rb:47
256
+ #: ../lib/pdk/cli/convert.rb:45
257
257
  msgid "Ignoring --full-interview and continuing with --force."
258
258
  msgstr ""
259
259
 
@@ -507,11 +507,11 @@ msgstr ""
507
507
  msgid "Test type not specified, assuming unit."
508
508
  msgstr ""
509
509
 
510
- #: ../lib/pdk/cli/new/test.rb:45
510
+ #: ../lib/pdk/cli/new/test.rb:46
511
511
  msgid "Unable to find anything called \"%{object}\" to generate unit tests for."
512
512
  msgstr ""
513
513
 
514
- #: ../lib/pdk/cli/new/test.rb:47
514
+ #: ../lib/pdk/cli/new/test.rb:48
515
515
  msgid "PDK does not support generating unit tests for \"%{object_type}\" objects."
516
516
  msgstr ""
517
517
 
@@ -659,6 +659,126 @@ msgstr ""
659
659
  msgid "Publish the module automatically, with no prompts."
660
660
  msgstr ""
661
661
 
662
+ #: ../lib/pdk/cli/remove.rb:4
663
+ msgid "remove [subcommand] [options]"
664
+ msgstr ""
665
+
666
+ #: ../lib/pdk/cli/remove.rb:5
667
+ msgid "Remove or delete information about the PDK or current project."
668
+ msgstr ""
669
+
670
+ #: ../lib/pdk/cli/remove/config.rb:11 ../lib/pdk/cli/set/config.rb:73
671
+ msgid "Configuration name is required"
672
+ msgstr ""
673
+
674
+ #: ../lib/pdk/cli/remove/config.rb:14
675
+ msgid "The configuration item '%{name}' can not be removed."
676
+ msgstr ""
677
+
678
+ #: ../lib/pdk/cli/remove/config.rb:16
679
+ msgid "Could not remove '%{name}' as it has not been set"
680
+ msgstr ""
681
+
682
+ #: ../lib/pdk/cli/remove/config.rb:20
683
+ msgid "Ignoring the item value '%{value}' as --force has been set"
684
+ msgstr ""
685
+
686
+ #: ../lib/pdk/cli/remove/config.rb:21
687
+ msgid "Ignoring --force as the setting is not multi-valued"
688
+ msgstr ""
689
+
690
+ #: ../lib/pdk/cli/remove/config.rb:34
691
+ msgid "Could not remove '%{name}' as it is already empty"
692
+ msgstr ""
693
+
694
+ #: ../lib/pdk/cli/remove/config.rb:36
695
+ msgid "Could not remove '%{value}' from '%{name}' as it has not been set"
696
+ msgstr ""
697
+
698
+ #: ../lib/pdk/cli/remove/config.rb:52
699
+ msgid "Cleared '%{name}' which had a value of '%{from}'"
700
+ msgstr ""
701
+
702
+ #: ../lib/pdk/cli/remove/config.rb:54
703
+ msgid "Removed '%{value}' from '%{name}'"
704
+ msgstr ""
705
+
706
+ #: ../lib/pdk/cli/remove/config.rb:57
707
+ msgid "Could not remove '%{name}' as it using a default value of '%{to}'"
708
+ msgstr ""
709
+
710
+ #: ../lib/pdk/cli/remove/config.rb:59
711
+ msgid "Removed '%{name}' which had a value of '%{from}'"
712
+ msgstr ""
713
+
714
+ #: ../lib/pdk/cli/remove/config.rb:71 ../lib/pdk/cli/set/config.rb:107
715
+ msgid "config [name] [value]"
716
+ msgstr ""
717
+
718
+ #: ../lib/pdk/cli/remove/config.rb:72
719
+ msgid "Remove or delete the configuration for <name>"
720
+ msgstr ""
721
+
722
+ #: ../lib/pdk/cli/remove/config.rb:74
723
+ msgid "Force multi-value configuration settings to be removed instead of emptied."
724
+ msgstr ""
725
+
726
+ #: ../lib/pdk/cli/set.rb:4
727
+ msgid "set [subcommand] [options]"
728
+ msgstr ""
729
+
730
+ #: ../lib/pdk/cli/set.rb:5
731
+ msgid "Set or update information about the PDK or current project."
732
+ msgstr ""
733
+
734
+ #: ../lib/pdk/cli/set/config.rb:15
735
+ msgid "Unknown type %{type_name}. Expected one of %{allowed}"
736
+ msgstr ""
737
+
738
+ #: ../lib/pdk/cli/set/config.rb:20 ../lib/pdk/cli/set/config.rb:36
739
+ msgid "An error occured converting '%{value}' into a %{type_name}"
740
+ msgstr ""
741
+
742
+ #: ../lib/pdk/cli/set/config.rb:74
743
+ msgid "Configuration value is required. If you wish to remove a value use 'pdk remove config'"
744
+ msgstr ""
745
+
746
+ #: ../lib/pdk/cli/set/config.rb:77
747
+ msgid "The configuration item '%{name}' can not have a value set."
748
+ msgstr ""
749
+
750
+ #: ../lib/pdk/cli/set/config.rb:83
751
+ msgid "No changes made to '%{name}' as it already contains value '%{to}'"
752
+ msgstr ""
753
+
754
+ #: ../lib/pdk/cli/set/config.rb:90
755
+ msgid "Set initial value of '%{name}' to '%{to}'"
756
+ msgstr ""
757
+
758
+ #: ../lib/pdk/cli/set/config.rb:93
759
+ msgid "Added new value '%{to}' to '%{name}'"
760
+ msgstr ""
761
+
762
+ #: ../lib/pdk/cli/set/config.rb:95
763
+ msgid "Changed existing value of '%{name}' from '%{from}' to '%{to}'"
764
+ msgstr ""
765
+
766
+ #: ../lib/pdk/cli/set/config.rb:108
767
+ msgid "Set or update the configuration for <name>"
768
+ msgstr ""
769
+
770
+ #: ../lib/pdk/cli/set/config.rb:110
771
+ msgid "Force the configuration setting to be overwitten."
772
+ msgstr ""
773
+
774
+ #: ../lib/pdk/cli/set/config.rb:112
775
+ msgid "The type of value to set. Acceptable values: %{values}"
776
+ msgstr ""
777
+
778
+ #: ../lib/pdk/cli/set/config.rb:113
779
+ msgid "Alias of --type"
780
+ msgstr ""
781
+
662
782
  #: ../lib/pdk/cli/test.rb:4
663
783
  msgid "test [subcommand] [options]"
664
784
  msgstr ""
@@ -727,75 +847,75 @@ msgstr ""
727
847
  msgid "Update the module automatically, with no prompts."
728
848
  msgstr ""
729
849
 
730
- #: ../lib/pdk/cli/update.rb:18
850
+ #: ../lib/pdk/cli/update.rb:17
731
851
  msgid "`pdk update` can only be run from inside a valid module directory."
732
852
  msgstr ""
733
853
 
734
- #: ../lib/pdk/cli/update.rb:22
854
+ #: ../lib/pdk/cli/update.rb:20
735
855
  msgid "This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`."
736
856
  msgstr ""
737
857
 
738
- #: ../lib/pdk/cli/update.rb:25
858
+ #: ../lib/pdk/cli/update.rb:23
739
859
  msgid "You can not specify --noop and --force when updating a module"
740
860
  msgstr ""
741
861
 
742
- #: ../lib/pdk/cli/update.rb:29
862
+ #: ../lib/pdk/cli/update.rb:27
743
863
  msgid "This module has been updated to PDK %{module_pdk_version} which is newer than your PDK version (%{user_pdk_version}), proceed with caution!"
744
864
  msgstr ""
745
865
 
746
- #: ../lib/pdk/cli/update.rb:39
866
+ #: ../lib/pdk/cli/update.rb:37
747
867
  msgid "Please update your PDK installation and try again. You may also use the --force flag to override this and continue at your own risk."
748
868
  msgstr ""
749
869
 
750
- #: ../lib/pdk/cli/update.rb:52
870
+ #: ../lib/pdk/cli/update.rb:50
751
871
  msgid "This module is currently pinned to version %{current_version} of the default template. If you would like to update your module to the latest version of the template, please run `pdk update --template-ref %{new_version}`."
752
872
  msgstr ""
753
873
 
754
- #: ../lib/pdk/cli/util.rb:25
874
+ #: ../lib/pdk/cli/util.rb:26
755
875
  msgid "This command must be run from inside a valid module (no metadata.json found)."
756
876
  msgstr ""
757
877
 
758
- #: ../lib/pdk/cli/util.rb:51
878
+ #: ../lib/pdk/cli/util.rb:52
759
879
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
760
880
  msgstr ""
761
881
 
762
- #: ../lib/pdk/cli/util.rb:98
882
+ #: ../lib/pdk/cli/util.rb:99
763
883
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
764
884
  msgstr ""
765
885
 
766
- #: ../lib/pdk/cli/util.rb:104
886
+ #: ../lib/pdk/cli/util.rb:105
767
887
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
768
888
  msgstr ""
769
889
 
770
- #: ../lib/pdk/cli/util.rb:109
890
+ #: ../lib/pdk/cli/util.rb:110
771
891
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
772
892
  msgstr ""
773
893
 
774
- #: ../lib/pdk/cli/util.rb:113
894
+ #: ../lib/pdk/cli/util.rb:114
775
895
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
776
896
  msgstr ""
777
897
 
778
- #: ../lib/pdk/cli/util.rb:124
898
+ #: ../lib/pdk/cli/util.rb:125
779
899
  msgid "Support for Puppet versions older than %{version} is deprecated and will be removed in a future version of PDK."
780
900
  msgstr ""
781
901
 
782
- #: ../lib/pdk/cli/util.rb:165
902
+ #: ../lib/pdk/cli/util.rb:166
783
903
  msgid "Using Ruby %{version}"
784
904
  msgstr ""
785
905
 
786
- #: ../lib/pdk/cli/util.rb:179
906
+ #: ../lib/pdk/cli/util.rb:180
787
907
  msgid "Using %{gem} %{version}"
788
908
  msgstr ""
789
909
 
790
- #: ../lib/pdk/cli/util.rb:210 ../lib/pdk/cli/util.rb:222
910
+ #: ../lib/pdk/cli/util.rb:211 ../lib/pdk/cli/util.rb:223
791
911
  msgid "You cannot specify a %{first} and %{second} at the same time."
792
912
  msgstr ""
793
913
 
794
- #: ../lib/pdk/cli/util.rb:258
914
+ #: ../lib/pdk/cli/util.rb:259
795
915
  msgid "--template-ref requires --template-url to also be specified."
796
916
  msgstr ""
797
917
 
798
- #: ../lib/pdk/cli/util.rb:262
918
+ #: ../lib/pdk/cli/util.rb:263
799
919
  msgid "--template-url may not be used to specify paths containing #'s."
800
920
  msgstr ""
801
921
 
@@ -868,43 +988,63 @@ msgstr ""
868
988
  msgid "Running all available validators..."
869
989
  msgstr ""
870
990
 
871
- #: ../lib/pdk/config.rb:146
991
+ #: ../lib/pdk/config.rb:140
872
992
  msgid "Expected an Array but got '%{klass}' for scopes"
873
993
  msgstr ""
874
994
 
875
- #: ../lib/pdk/config.rb:147
995
+ #: ../lib/pdk/config.rb:141
876
996
  msgid "Expected an Array or String but got '%{klass}' for setting_name"
877
997
  msgstr ""
878
998
 
879
- #: ../lib/pdk/config.rb:167 ../lib/pdk/config/setting.rb:113
999
+ #: ../lib/pdk/config.rb:161 ../lib/pdk/config/setting.rb:113
880
1000
  msgid "must be passed a block"
881
1001
  msgstr ""
882
1002
 
883
- #: ../lib/pdk/config.rb:176
1003
+ #: ../lib/pdk/config.rb:180
1004
+ msgid "Invalid configuration names"
1005
+ msgstr ""
1006
+
1007
+ #: ../lib/pdk/config.rb:182
1008
+ msgid "Unknown configuration root '%{name}'"
1009
+ msgstr ""
1010
+
1011
+ #: ../lib/pdk/config.rb:190
884
1012
  msgid "Unable to load %{file}: %{message}"
885
1013
  msgstr ""
886
1014
 
887
- #: ../lib/pdk/config.rb:217
1015
+ #: ../lib/pdk/config.rb:231
888
1016
  msgid ""
889
1017
  "PDK collects anonymous usage information to help us understand how it is being used and make decisions on how to improve it. You can find out more about what data we collect and how it is used in the PDK documentation at %{url}.\n"
890
1018
  msgstr ""
891
1019
 
892
- #: ../lib/pdk/config.rb:223
1020
+ #: ../lib/pdk/config.rb:237
893
1021
  msgid "You can opt in or out of the usage data collection at any time by editing the analytics configuration file at %{path} and changing the '%{key}' value."
894
1022
  msgstr ""
895
1023
 
896
- #: ../lib/pdk/config.rb:235
1024
+ #: ../lib/pdk/config.rb:249
897
1025
  msgid "Do you consent to the collection of anonymous PDK usage information?"
898
1026
  msgstr ""
899
1027
 
900
- #: ../lib/pdk/config.rb:249
1028
+ #: ../lib/pdk/config.rb:263
901
1029
  msgid "No answer given, opting out of analytics collection."
902
1030
  msgstr ""
903
1031
 
904
- #: ../lib/pdk/config.rb:282
1032
+ #: ../lib/pdk/config.rb:301
905
1033
  msgid "Expected a String but got '%{klass}'"
906
1034
  msgstr ""
907
1035
 
1036
+ #: ../lib/pdk/config.rb:325
1037
+ msgid "Missing or invalid namespace"
1038
+ msgstr ""
1039
+
1040
+ #: ../lib/pdk/config.rb:326
1041
+ msgid "Missing a name to set"
1042
+ msgstr ""
1043
+
1044
+ #: ../lib/pdk/config.rb:377
1045
+ msgid "Unable to set '%{key}' to '%{value}' as it is not a Hash"
1046
+ msgstr ""
1047
+
908
1048
  #: ../lib/pdk/config/ini_file_setting.rb:23 ../lib/pdk/config/ini_file_setting.rb:31
909
1049
  msgid "The setting %{key} may only be a String or Integer, not %{class}"
910
1050
  msgstr ""
@@ -1008,231 +1148,223 @@ msgid "Using the %{method} template-url and template-ref '%{template_uri}'."
1008
1148
  msgstr ""
1009
1149
 
1010
1150
  #: ../lib/pdk/generate/module.rb:54
1011
- msgid "specified"
1151
+ msgid "saved"
1012
1152
  msgstr ""
1013
1153
 
1014
1154
  #: ../lib/pdk/generate/module.rb:54
1015
- msgid "saved"
1155
+ msgid "specified"
1016
1156
  msgstr ""
1017
1157
 
1018
- #: ../lib/pdk/generate/module.rb:101
1158
+ #: ../lib/pdk/generate/module.rb:102
1019
1159
  msgid "Module '%{name}' generated at path '%{path}'."
1020
1160
  msgstr ""
1021
1161
 
1022
- #: ../lib/pdk/generate/module.rb:105
1162
+ #: ../lib/pdk/generate/module.rb:106
1023
1163
  msgid "In your module directory, add classes with the 'pdk new class' command."
1024
1164
  msgstr ""
1025
1165
 
1026
- #: ../lib/pdk/generate/module.rb:110
1166
+ #: ../lib/pdk/generate/module.rb:111
1027
1167
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
1028
1168
  msgstr ""
1029
1169
 
1030
- #: ../lib/pdk/generate/module.rb:126
1170
+ #: ../lib/pdk/generate/module.rb:127
1031
1171
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
1032
1172
  msgstr ""
1033
1173
 
1034
- #: ../lib/pdk/generate/module.rb:164
1174
+ #: ../lib/pdk/generate/module.rb:165
1035
1175
  msgid "Unable to create directory '%{dir}': %{message}"
1036
1176
  msgstr ""
1037
1177
 
1038
- #: ../lib/pdk/generate/module.rb:179
1178
+ #: ../lib/pdk/generate/module.rb:180
1039
1179
  msgid "If you have a name for your module, add it here."
1040
1180
  msgstr ""
1041
1181
 
1042
- #: ../lib/pdk/generate/module.rb:180
1182
+ #: ../lib/pdk/generate/module.rb:181
1043
1183
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
1044
1184
  msgstr ""
1045
1185
 
1046
- #: ../lib/pdk/generate/module.rb:183
1186
+ #: ../lib/pdk/generate/module.rb:184
1047
1187
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
1048
1188
  msgstr ""
1049
1189
 
1050
- #: ../lib/pdk/generate/module.rb:187
1190
+ #: ../lib/pdk/generate/module.rb:188
1051
1191
  msgid "If you have a Puppet Forge username, add it here."
1052
1192
  msgstr ""
1053
1193
 
1054
- #: ../lib/pdk/generate/module.rb:188
1194
+ #: ../lib/pdk/generate/module.rb:189
1055
1195
  msgid "We can use this to upload your module to the Forge when it's complete."
1056
1196
  msgstr ""
1057
1197
 
1058
- #: ../lib/pdk/generate/module.rb:191
1198
+ #: ../lib/pdk/generate/module.rb:192
1059
1199
  msgid "Forge usernames can only contain lowercase letters and numbers"
1060
1200
  msgstr ""
1061
1201
 
1062
- #: ../lib/pdk/generate/module.rb:196
1202
+ #: ../lib/pdk/generate/module.rb:197
1063
1203
  msgid "What version is this module?"
1064
1204
  msgstr ""
1065
1205
 
1066
- #: ../lib/pdk/generate/module.rb:197
1206
+ #: ../lib/pdk/generate/module.rb:198
1067
1207
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
1068
1208
  msgstr ""
1069
1209
 
1070
- #: ../lib/pdk/generate/module.rb:200
1210
+ #: ../lib/pdk/generate/module.rb:201
1071
1211
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
1072
1212
  msgstr ""
1073
1213
 
1074
- #: ../lib/pdk/generate/module.rb:206
1214
+ #: ../lib/pdk/generate/module.rb:207
1075
1215
  msgid "Who wrote this module?"
1076
1216
  msgstr ""
1077
1217
 
1078
- #: ../lib/pdk/generate/module.rb:207
1218
+ #: ../lib/pdk/generate/module.rb:208
1079
1219
  msgid "This is used to credit the module's author."
1080
1220
  msgstr ""
1081
1221
 
1082
- #: ../lib/pdk/generate/module.rb:213
1222
+ #: ../lib/pdk/generate/module.rb:214
1083
1223
  msgid "What license does this module code fall under?"
1084
1224
  msgstr ""
1085
1225
 
1086
- #: ../lib/pdk/generate/module.rb:214
1226
+ #: ../lib/pdk/generate/module.rb:215
1087
1227
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
1088
1228
  msgstr ""
1089
1229
 
1090
- #: ../lib/pdk/generate/module.rb:220
1230
+ #: ../lib/pdk/generate/module.rb:221
1091
1231
  msgid "What operating systems does this module support?"
1092
1232
  msgstr ""
1093
1233
 
1094
- #: ../lib/pdk/generate/module.rb:221
1234
+ #: ../lib/pdk/generate/module.rb:222
1095
1235
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
1096
1236
  msgstr ""
1097
1237
 
1098
- #: ../lib/pdk/generate/module.rb:232
1238
+ #: ../lib/pdk/generate/module.rb:233
1099
1239
  msgid "Summarize the purpose of this module in a single sentence."
1100
1240
  msgstr ""
1101
1241
 
1102
- #: ../lib/pdk/generate/module.rb:233
1242
+ #: ../lib/pdk/generate/module.rb:234
1103
1243
  msgid "This helps other Puppet users understand what the module does."
1104
1244
  msgstr ""
1105
1245
 
1106
- #: ../lib/pdk/generate/module.rb:240
1246
+ #: ../lib/pdk/generate/module.rb:241
1107
1247
  msgid "If there is a source code repository for this module, enter the URL here."
1108
1248
  msgstr ""
1109
1249
 
1110
- #: ../lib/pdk/generate/module.rb:241
1250
+ #: ../lib/pdk/generate/module.rb:242
1111
1251
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
1112
1252
  msgstr ""
1113
1253
 
1114
- #: ../lib/pdk/generate/module.rb:248
1254
+ #: ../lib/pdk/generate/module.rb:249
1115
1255
  msgid "If there is a URL where others can learn more about this module, enter it here."
1116
1256
  msgstr ""
1117
1257
 
1118
- #: ../lib/pdk/generate/module.rb:249 ../lib/pdk/generate/module.rb:256
1258
+ #: ../lib/pdk/generate/module.rb:250 ../lib/pdk/generate/module.rb:257
1119
1259
  msgid "Optional. You can update this later in the metadata.json."
1120
1260
  msgstr ""
1121
1261
 
1122
- #: ../lib/pdk/generate/module.rb:255
1262
+ #: ../lib/pdk/generate/module.rb:256
1123
1263
  msgid "If there is a public issue tracker for this module, enter its URL here."
1124
1264
  msgstr ""
1125
1265
 
1126
- #: ../lib/pdk/generate/module.rb:283
1266
+ #: ../lib/pdk/generate/module.rb:284
1127
1267
  msgid ""
1128
1268
  "\n"
1129
1269
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1130
1270
  msgstr ""
1131
1271
 
1132
- #: ../lib/pdk/generate/module.rb:290
1272
+ #: ../lib/pdk/generate/module.rb:291
1133
1273
  msgid ""
1134
1274
  "\n"
1135
1275
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
1136
1276
  msgstr ""
1137
1277
 
1138
- #: ../lib/pdk/generate/module.rb:298
1278
+ #: ../lib/pdk/generate/module.rb:299
1139
1279
  msgid ""
1140
1280
  "If the question is not applicable to this module, accept the default option shown after each question. You can modify any answers at any time by manually updating the metadata.json file.\n"
1141
1281
  "\n"
1142
1282
  msgstr ""
1143
1283
 
1144
- #: ../lib/pdk/generate/module.rb:307
1284
+ #: ../lib/pdk/generate/module.rb:308
1145
1285
  msgid "No answers given, interview cancelled."
1146
1286
  msgstr ""
1147
1287
 
1148
- #: ../lib/pdk/generate/module.rb:333
1288
+ #: ../lib/pdk/generate/module.rb:334
1149
1289
  msgid "Metadata will be generated based on this information, continue?"
1150
1290
  msgstr ""
1151
1291
 
1152
- #: ../lib/pdk/generate/module.rb:335
1292
+ #: ../lib/pdk/generate/module.rb:336
1153
1293
  msgid "Interview cancelled; exiting."
1154
1294
  msgstr ""
1155
1295
 
1156
- #: ../lib/pdk/generate/module.rb:339
1296
+ #: ../lib/pdk/generate/module.rb:340
1157
1297
  msgid "Process cancelled; exiting."
1158
1298
  msgstr ""
1159
1299
 
1160
- #: ../lib/pdk/generate/provider.rb:23
1161
- msgid "%{error}: Creating a provider needs some local configuration in your module. Please follow the docs at https://puppet.com/docs/puppet/latest/create_types_and_providers_resource_api.html."
1162
- msgstr ""
1163
-
1164
- #: ../lib/pdk/generate/provider.rb:33 ../lib/pdk/generate/transport.rb:33
1165
- msgid ".sync.yml not found"
1300
+ #: ../lib/pdk/generate/puppet_object.rb:24 ../lib/pdk/validate/validator.rb:36
1301
+ msgid "Expected PDK::Context::AbstractContext but got '%{klass}' for context"
1166
1302
  msgstr ""
1167
1303
 
1168
- #: ../lib/pdk/generate/provider.rb:37 ../lib/pdk/generate/transport.rb:37
1169
- msgid ".sync.yml contents is not a Hash"
1304
+ #: ../lib/pdk/generate/puppet_object.rb:64
1305
+ msgid "Expected a module context but got %{context_name}"
1170
1306
  msgstr ""
1171
1307
 
1172
- #: ../lib/pdk/generate/provider.rb:39 ../lib/pdk/generate/transport.rb:39
1173
- msgid "Gemfile configuration not found"
1308
+ #: ../lib/pdk/generate/puppet_object.rb:125
1309
+ msgid "Unable to generate %{object_type}; '%{file}' already exists."
1174
1310
  msgstr ""
1175
1311
 
1176
- #: ../lib/pdk/generate/provider.rb:41 ../lib/pdk/generate/transport.rb:41
1177
- msgid "Gemfile.optional configuration not found"
1312
+ #: ../lib/pdk/generate/puppet_object.rb:163
1313
+ msgid "No %{dir_type} template found; trying next template directory."
1178
1314
  msgstr ""
1179
1315
 
1180
- #: ../lib/pdk/generate/provider.rb:43 ../lib/pdk/generate/transport.rb:43
1181
- msgid "Gemfile.optional.:development configuration not found"
1316
+ #: ../lib/pdk/generate/puppet_object.rb:173
1317
+ msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1182
1318
  msgstr ""
1183
1319
 
1184
- #: ../lib/pdk/generate/provider.rb:45 ../lib/pdk/generate/transport.rb:45
1185
- msgid "puppet-resource_api not found in the Gemfile config"
1320
+ #: ../lib/pdk/generate/puppet_object.rb:175
1321
+ msgid "Unable to find the %{type} template in %{url}."
1186
1322
  msgstr ""
1187
1323
 
1188
- #: ../lib/pdk/generate/provider.rb:47 ../lib/pdk/generate/transport.rb:47
1189
- msgid "spec/spec_helper.rb configuration not found"
1324
+ #: ../lib/pdk/generate/resource_api_object.rb:20
1325
+ msgid ".sync.yml not found"
1190
1326
  msgstr ""
1191
1327
 
1192
- #: ../lib/pdk/generate/provider.rb:49 ../lib/pdk/generate/transport.rb:49
1193
- msgid "spec/spec_helper.rb.mock_with configuration not found"
1328
+ #: ../lib/pdk/generate/resource_api_object.rb:24
1329
+ msgid ".sync.yml contents is not a Hash"
1194
1330
  msgstr ""
1195
1331
 
1196
- #: ../lib/pdk/generate/provider.rb:51 ../lib/pdk/generate/transport.rb:51
1197
- msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
1332
+ #: ../lib/pdk/generate/resource_api_object.rb:26
1333
+ msgid "Gemfile configuration not found"
1198
1334
  msgstr ""
1199
1335
 
1200
- #: ../lib/pdk/generate/puppet_object.rb:142
1201
- msgid "Unable to generate %{object_type}; '%{file}' already exists."
1336
+ #: ../lib/pdk/generate/resource_api_object.rb:28
1337
+ msgid "Gemfile.optional configuration not found"
1202
1338
  msgstr ""
1203
1339
 
1204
- #: ../lib/pdk/generate/puppet_object.rb:226
1205
- msgid "Creating '%{file}' from template."
1340
+ #: ../lib/pdk/generate/resource_api_object.rb:30
1341
+ msgid "Gemfile.optional.:development configuration not found"
1206
1342
  msgstr ""
1207
1343
 
1208
- #: ../lib/pdk/generate/puppet_object.rb:233
1209
- msgid "Unable to create directory '%{path}': %{message}"
1344
+ #: ../lib/pdk/generate/resource_api_object.rb:32
1345
+ msgid "puppet-resource_api not found in the Gemfile config"
1210
1346
  msgstr ""
1211
1347
 
1212
- #: ../lib/pdk/generate/puppet_object.rb:241
1213
- msgid "Unable to write to file '%{path}': %{message}"
1348
+ #: ../lib/pdk/generate/resource_api_object.rb:34
1349
+ msgid "spec/spec_helper.rb configuration not found"
1214
1350
  msgstr ""
1215
1351
 
1216
- #: ../lib/pdk/generate/puppet_object.rb:267
1217
- msgid "No %{dir_type} template found; trying next template directory."
1352
+ #: ../lib/pdk/generate/resource_api_object.rb:36
1353
+ msgid "spec/spec_helper.rb.mock_with configuration not found"
1218
1354
  msgstr ""
1219
1355
 
1220
- #: ../lib/pdk/generate/puppet_object.rb:280
1221
- msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1356
+ #: ../lib/pdk/generate/resource_api_object.rb:38
1357
+ msgid "spec/spec_helper.rb.mock_with not set to ':rspec'"
1222
1358
  msgstr ""
1223
1359
 
1224
- #: ../lib/pdk/generate/puppet_object.rb:282
1225
- msgid "Unable to find the %{type} template in %{url}."
1360
+ #: ../lib/pdk/generate/resource_api_object.rb:46
1361
+ msgid "%{error}: Creating a %{thing_name} needs some local configuration in your module. Please follow the docs at https://puppet.com/docs/puppet/latest/create_types_and_providers_resource_api.html"
1226
1362
  msgstr ""
1227
1363
 
1228
- #: ../lib/pdk/generate/task.rb:54
1364
+ #: ../lib/pdk/generate/task.rb:31
1229
1365
  msgid "A task named '%{name}' already exists in this module; defined in %{file}"
1230
1366
  msgstr ""
1231
1367
 
1232
- #: ../lib/pdk/generate/transport.rb:23
1233
- msgid "%{error}: Creating a transport needs some local configuration in your module. Please follow the docs at https://github.com/puppetlabs/puppet-resource_api#getting-started."
1234
- msgstr ""
1235
-
1236
1368
  #: ../lib/pdk/module/build.rb:129
1237
1369
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1238
1370
  msgstr ""
@@ -1257,44 +1389,48 @@ msgstr ""
1257
1389
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1258
1390
  msgstr ""
1259
1391
 
1260
- #: ../lib/pdk/module/convert.rb:32 ../lib/pdk/module/update.rb:20
1392
+ #: ../lib/pdk/module/convert.rb:33 ../lib/pdk/module/update.rb:20
1261
1393
  msgid "No changes required."
1262
1394
  msgstr ""
1263
1395
 
1264
- #: ../lib/pdk/module/convert.rb:47
1396
+ #: ../lib/pdk/module/convert.rb:48
1265
1397
  msgid "Module conversion is a potentially destructive action. Ensure that you have committed your module to a version control system or have a backup, and review the changes above before continuing."
1266
1398
  msgstr ""
1267
1399
 
1268
- #: ../lib/pdk/module/convert.rb:52 ../lib/pdk/module/update.rb:32
1400
+ #: ../lib/pdk/module/convert.rb:53 ../lib/pdk/module/update.rb:32
1269
1401
  msgid "Do you want to continue and make these changes to your module?"
1270
1402
  msgstr ""
1271
1403
 
1272
- #: ../lib/pdk/module/convert.rb:138
1404
+ #: ../lib/pdk/module/convert.rb:131
1405
+ msgid "No test changes required."
1406
+ msgstr ""
1407
+
1408
+ #: ../lib/pdk/module/convert.rb:156
1273
1409
  msgid "skipping '%{path}'"
1274
1410
  msgstr ""
1275
1411
 
1276
- #: ../lib/pdk/module/convert.rb:177
1412
+ #: ../lib/pdk/module/convert.rb:195
1277
1413
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1278
1414
  msgstr ""
1279
1415
 
1280
- #: ../lib/pdk/module/convert.rb:193
1416
+ #: ../lib/pdk/module/convert.rb:211
1281
1417
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1282
1418
  msgstr ""
1283
1419
 
1284
- #: ../lib/pdk/module/convert.rb:238 ../lib/pdk/module/convert.rb:243 ../lib/pdk/module/convert.rb:249
1420
+ #: ../lib/pdk/module/convert.rb:256 ../lib/pdk/module/convert.rb:261 ../lib/pdk/module/convert.rb:267
1285
1421
  msgid ""
1286
1422
  "\n"
1287
1423
  "%{banner}"
1288
1424
  msgstr ""
1289
1425
 
1290
- #: ../lib/pdk/module/convert.rb:251
1426
+ #: ../lib/pdk/module/convert.rb:269
1291
1427
  msgid ""
1292
1428
  "\n"
1293
1429
  "%{summary}\n"
1294
1430
  "\n"
1295
1431
  msgstr ""
1296
1432
 
1297
- #: ../lib/pdk/module/convert.rb:260
1433
+ #: ../lib/pdk/module/convert.rb:278
1298
1434
  msgid ""
1299
1435
  "\n"
1300
1436
  "You can find a report of differences in %{path}.\n"
@@ -1421,105 +1557,39 @@ msgstr ""
1421
1557
  msgid "Missing forge-token option"
1422
1558
  msgstr ""
1423
1559
 
1424
- #: ../lib/pdk/module/template_dir.rb:35
1425
- msgid "%{class_name}.with must be passed a block."
1426
- msgstr ""
1427
-
1428
- #: ../lib/pdk/module/template_dir.rb:38
1429
- msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1430
- msgstr ""
1431
-
1432
- #: ../lib/pdk/module/template_dir.rb:73
1433
- msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1434
- msgstr ""
1435
-
1436
- #: ../lib/pdk/module/template_dir.rb:75
1437
- msgid "The specified template '%{path}' is not a directory."
1438
- msgstr ""
1439
-
1440
- #: ../lib/pdk/module/template_dir.rb:80
1441
- msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1442
- msgstr ""
1443
-
1444
- #: ../lib/pdk/module/template_dir.rb:85
1445
- msgid "The template at '%{path}' does not contain a 'moduleroot_init/' directory, which indicates you are using an older style of template. Before continuing please use the --template-url flag when running the pdk new commands to pass a new style template."
1446
- msgstr ""
1447
-
1448
- #: ../lib/pdk/module/template_dir.rb:101
1449
- msgid "The directory '%{dir}' doesn't exist"
1450
- msgstr ""
1451
-
1452
- #: ../lib/pdk/module/template_dir/base.rb:39
1453
- msgid "%{class_name} must be initialized with a block."
1454
- msgstr ""
1455
-
1456
- #: ../lib/pdk/module/template_dir/base.rb:42
1457
- msgid "%{class_name} must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1458
- msgstr ""
1459
-
1460
- #: ../lib/pdk/module/template_dir/base.rb:107
1461
- msgid "Rendering '%{template}'..."
1462
- msgstr ""
1463
-
1464
- #: ../lib/pdk/module/template_dir/base.rb:125
1465
- msgid ""
1466
- "Failed to render template '%{template}'\n"
1467
- "%{exception}: %{message}"
1468
- msgstr ""
1469
-
1470
- #: ../lib/pdk/module/template_dir/base.rb:245
1471
- msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1472
- msgstr ""
1473
-
1474
- #: ../lib/pdk/module/template_dir/git.rb:12
1475
- msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1476
- msgstr ""
1477
-
1478
- #: ../lib/pdk/module/template_dir/git.rb:63
1479
- msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1480
- msgstr ""
1481
-
1482
- #: ../lib/pdk/module/template_dir/git.rb:82
1483
- msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1484
- msgstr ""
1485
-
1486
- #: ../lib/pdk/module/template_dir/git.rb:85
1487
- msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1488
- msgstr ""
1489
-
1490
1560
  #: ../lib/pdk/module/update.rb:14
1491
1561
  msgid "This module is already up to date with version %{version} of the template."
1492
1562
  msgstr ""
1493
1563
 
1494
- #: ../lib/pdk/module/update.rb:121
1564
+ #: ../lib/pdk/module/update.rb:117
1495
1565
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1496
1566
  msgstr ""
1497
1567
 
1498
- #: ../lib/pdk/module/update.rb:123
1568
+ #: ../lib/pdk/module/update.rb:119
1499
1569
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1500
1570
  msgstr ""
1501
1571
 
1502
- #: ../lib/pdk/module/update_manager.rb:111
1572
+ #: ../lib/pdk/module/update_manager.rb:118
1503
1573
  msgid "unlinking '%{path}'"
1504
1574
  msgstr ""
1505
1575
 
1506
- #: ../lib/pdk/module/update_manager.rb:114
1576
+ #: ../lib/pdk/module/update_manager.rb:121
1507
1577
  msgid "'%{path}': already gone"
1508
1578
  msgstr ""
1509
1579
 
1510
- #: ../lib/pdk/module/update_manager.rb:117
1580
+ #: ../lib/pdk/module/update_manager.rb:124
1511
1581
  msgid "Unable to remove '%{path}': %{message}"
1512
1582
  msgstr ""
1513
1583
 
1514
- #: ../lib/pdk/module/update_manager.rb:137
1584
+ #: ../lib/pdk/module/update_manager.rb:144
1515
1585
  msgid "Unable to open '%{path}' for reading"
1516
1586
  msgstr ""
1517
1587
 
1518
- #: ../lib/pdk/module/update_manager.rb:156
1588
+ #: ../lib/pdk/module/update_manager.rb:163
1519
1589
  msgid "writing '%{path}'"
1520
1590
  msgstr ""
1521
1591
 
1522
- #: ../lib/pdk/module/update_manager.rb:159
1592
+ #: ../lib/pdk/module/update_manager.rb:166
1523
1593
  msgid "You do not have permission to write to '%{path}'"
1524
1594
  msgstr ""
1525
1595
 
@@ -1567,10 +1637,56 @@ msgstr ""
1567
1637
  msgid "Trace must be an Array of stack trace lines."
1568
1638
  msgstr ""
1569
1639
 
1570
- #: ../lib/pdk/template_file.rb:69
1640
+ #: ../lib/pdk/template.rb:41 ../lib/pdk/template/fetcher.rb:38
1641
+ msgid "%{class_name}.with must be passed a block."
1642
+ msgstr ""
1643
+
1644
+ #: ../lib/pdk/template.rb:44
1645
+ msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1646
+ msgstr ""
1647
+
1648
+ #: ../lib/pdk/template/fetcher/git.rb:25
1649
+ msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1650
+ msgstr ""
1651
+
1652
+ #: ../lib/pdk/template/fetcher/git.rb:52
1653
+ msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1654
+ msgstr ""
1655
+
1656
+ #: ../lib/pdk/template/fetcher/git.rb:66
1657
+ msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1658
+ msgstr ""
1659
+
1660
+ #: ../lib/pdk/template/fetcher/git.rb:69
1661
+ msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1662
+ msgstr ""
1663
+
1664
+ #: ../lib/pdk/template/renderer/v1/legacy_template_dir.rb:96
1665
+ msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1666
+ msgstr ""
1667
+
1668
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:24 ../lib/pdk/template/renderer/v1/renderer.rb:74
1669
+ msgid "Rendering '%{template}'..."
1670
+ msgstr ""
1671
+
1672
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:92
1673
+ msgid ""
1674
+ "Failed to render template '%{template}'\n"
1675
+ "%{exception}: %{message}"
1676
+ msgstr ""
1677
+
1678
+ #: ../lib/pdk/template/renderer/v1/renderer.rb:116
1679
+ msgid "The directory '%{dir}' doesn't exist"
1680
+ msgstr ""
1681
+
1682
+ #: ../lib/pdk/template/renderer/v1/template_file.rb:72
1571
1683
  msgid "'%{template}' is not a readable file"
1572
1684
  msgstr ""
1573
1685
 
1686
+ #: ../lib/pdk/template/template_dir.rb:39
1687
+ msgid "Could not find a compatible template renderer for %{path}"
1688
+ msgstr ""
1689
+
1574
1690
  #: ../lib/pdk/tests/unit.rb:64
1575
1691
  msgid "Cleaning up after running unit tests."
1576
1692
  msgstr ""
@@ -1595,39 +1711,39 @@ msgstr ""
1595
1711
  msgid "Failed to prepare to run the unit tests."
1596
1712
  msgstr ""
1597
1713
 
1598
- #: ../lib/pdk/tests/unit.rb:95
1714
+ #: ../lib/pdk/tests/unit.rb:100
1599
1715
  msgid "Running unit tests in parallel."
1600
1716
  msgstr ""
1601
1717
 
1602
- #: ../lib/pdk/tests/unit.rb:95
1718
+ #: ../lib/pdk/tests/unit.rb:100
1603
1719
  msgid "Running unit tests."
1604
1720
  msgstr ""
1605
1721
 
1606
- #: ../lib/pdk/tests/unit.rb:120
1722
+ #: ../lib/pdk/tests/unit.rb:125
1607
1723
  msgid "Unit test output did not contain a valid JSON result: %{output}"
1608
1724
  msgstr ""
1609
1725
 
1610
- #: ../lib/pdk/tests/unit.rb:172
1726
+ #: ../lib/pdk/tests/unit.rb:177
1611
1727
  msgid "Evaluated %{total} tests in %{duration} seconds: %{failures} failures, %{pending} pending."
1612
1728
  msgstr ""
1613
1729
 
1614
- #: ../lib/pdk/tests/unit.rb:226
1730
+ #: ../lib/pdk/tests/unit.rb:231
1615
1731
  msgid "Finding unit tests."
1616
1732
  msgstr ""
1617
1733
 
1618
- #: ../lib/pdk/tests/unit.rb:229
1734
+ #: ../lib/pdk/tests/unit.rb:234
1619
1735
  msgid "Failed to find valid JSON in output from rspec: %{output}"
1620
1736
  msgstr ""
1621
1737
 
1622
- #: ../lib/pdk/tests/unit.rb:234
1738
+ #: ../lib/pdk/tests/unit.rb:239
1623
1739
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1624
1740
  msgstr ""
1625
1741
 
1626
- #: ../lib/pdk/util.rb:87
1742
+ #: ../lib/pdk/util.rb:88
1627
1743
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1628
1744
  msgstr ""
1629
1745
 
1630
- #: ../lib/pdk/util.rb:116
1746
+ #: ../lib/pdk/util.rb:117
1631
1747
  msgid "Package basedir requested for non-package install."
1632
1748
  msgstr ""
1633
1749
 
@@ -1801,27 +1917,27 @@ msgstr ""
1801
1917
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1802
1918
  msgstr ""
1803
1919
 
1804
- #: ../lib/pdk/util/template_uri.rb:233
1920
+ #: ../lib/pdk/util/template_uri.rb:232
1805
1921
  msgid "--template-url"
1806
1922
  msgstr ""
1807
1923
 
1808
- #: ../lib/pdk/util/template_uri.rb:234
1924
+ #: ../lib/pdk/util/template_uri.rb:233
1809
1925
  msgid "metadata.json"
1810
1926
  msgstr ""
1811
1927
 
1812
- #: ../lib/pdk/util/template_uri.rb:235
1928
+ #: ../lib/pdk/util/template_uri.rb:234
1813
1929
  msgid "PDK answers"
1814
1930
  msgstr ""
1815
1931
 
1816
- #: ../lib/pdk/util/template_uri.rb:236
1932
+ #: ../lib/pdk/util/template_uri.rb:235
1817
1933
  msgid "default"
1818
1934
  msgstr ""
1819
1935
 
1820
- #: ../lib/pdk/util/template_uri.rb:260
1936
+ #: ../lib/pdk/util/template_uri.rb:259
1821
1937
  msgid "Unable to find a valid module template to use."
1822
1938
  msgstr ""
1823
1939
 
1824
- #: ../lib/pdk/util/template_uri.rb:284
1940
+ #: ../lib/pdk/util/template_uri.rb:282
1825
1941
  msgid "Unable to find a valid template at %{uri}"
1826
1942
  msgstr ""
1827
1943
 
@@ -1869,27 +1985,47 @@ msgstr ""
1869
1985
  msgid "Failed to set environment variaible: %{name}"
1870
1986
  msgstr ""
1871
1987
 
1872
- #: ../lib/pdk/validate.rb:71
1988
+ #: ../lib/pdk/validate.rb:78
1873
1989
  msgid "Validating module using %{num_of_threads} threads"
1874
1990
  msgstr ""
1875
1991
 
1876
- #: ../lib/pdk/validate/invokable_validator.rb:120
1992
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:22
1993
+ msgid "Checking Puppet Environment settings (%{patterns})."
1994
+ msgstr ""
1995
+
1996
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:34 ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:43 ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:42 ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:50
1997
+ msgid "Could not be read."
1998
+ msgstr ""
1999
+
2000
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:49
2001
+ msgid "Invalid section '%{name}'"
2002
+ msgstr ""
2003
+
2004
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:51
2005
+ msgid "Invalid setting '%{name}'"
2006
+ msgstr ""
2007
+
2008
+ #: ../lib/pdk/validate/control_repo/environment_conf_validator.rb:71
2009
+ msgid "environment_timeout is set to '%{timeout}' but should be 0, 'unlimited' or not set."
2010
+ msgstr ""
2011
+
2012
+ #: ../lib/pdk/validate/invokable_validator.rb:119
1877
2013
  msgid "Running %{name} validator ..."
1878
2014
  msgstr ""
1879
2015
 
1880
- #: ../lib/pdk/validate/invokable_validator.rb:137
2016
+ #: ../lib/pdk/validate/invokable_validator.rb:136
1881
2017
  msgid "%{validator}: Skipped '%{target}'. Target does not contain any files to validate (%{pattern})."
1882
2018
  msgstr ""
1883
2019
 
1884
- #: ../lib/pdk/validate/invokable_validator.rb:141
2020
+ #: ../lib/pdk/validate/invokable_validator.rb:140
1885
2021
  msgid "Target does not contain any files to validate (%{pattern})."
1886
2022
  msgstr ""
1887
2023
 
1888
- #: ../lib/pdk/validate/invokable_validator.rb:153
2024
+ #: ../lib/pdk/validate/invokable_validator.rb:152
1889
2025
  msgid "%{validator}: Skipped '%{target}'. Target file not found."
1890
2026
  msgstr ""
1891
2027
 
1892
- #: ../lib/pdk/validate/invokable_validator.rb:157
2028
+ #: ../lib/pdk/validate/invokable_validator.rb:156
1893
2029
  msgid "File does not exist."
1894
2030
  msgstr ""
1895
2031
 
@@ -1905,10 +2041,6 @@ msgstr ""
1905
2041
  msgid "Checking metadata syntax (%{patterns})."
1906
2042
  msgstr ""
1907
2043
 
1908
- #: ../lib/pdk/validate/metadata/metadata_syntax_validator.rb:43 ../lib/pdk/validate/tasks/tasks_metadata_lint_validator.rb:42 ../lib/pdk/validate/yaml/yaml_syntax_validator.rb:50
1909
- msgid "Could not be read."
1910
- msgstr ""
1911
-
1912
2044
  #: ../lib/pdk/validate/puppet/puppet_epp_validator.rb:40
1913
2045
  msgid "Checking Puppet EPP syntax (%{pattern})."
1914
2046
  msgstr ""
@@ -1945,10 +2077,6 @@ msgstr ""
1945
2077
  msgid "Checking task names (%{pattern})."
1946
2078
  msgstr ""
1947
2079
 
1948
- #: ../lib/pdk/validate/validator.rb:36
1949
- msgid "Expected PDK::Context::AbstractContext but got '%{klass}' for context"
1950
- msgstr ""
1951
-
1952
2080
  #: ../lib/pdk/validate/validator_group.rb:35
1953
2081
  msgid "Running %{name} validators ..."
1954
2082
  msgstr ""