puppet-retrospec 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1848) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +8 -8
  4. data/.overcommit.yml +4 -4
  5. data/.rubocop_todo.yml +4 -4
  6. data/CHANGELOG.md +14 -0
  7. data/Gemfile +2 -1
  8. data/Gemfile.lock +5 -10
  9. data/README.md +7 -69
  10. data/lib/retrospec-puppet.rb +3 -1
  11. data/lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb +86 -36
  12. data/lib/retrospec/plugins/v1/plugin/generators/task_generator.rb +17 -19
  13. data/lib/retrospec/plugins/v1/plugin/helpers.rb +6 -0
  14. data/lib/retrospec/plugins/v1/plugin/puppet.rb +86 -16
  15. data/lib/retrospec/plugins/v1/plugin/spec_object.rb +34 -16
  16. data/lib/retrospec/plugins/v1/plugin/template_helpers.rb +12 -6
  17. data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
  18. data/puppet-retrospec.gemspec +1 -1
  19. data/spec/fixtures/fixture_modules/one_resource_module/manifests/array_param.pp +15 -0
  20. data/spec/fixtures/parameters.txt +9 -9
  21. data/spec/integration/retrospec_spec.rb +26 -6
  22. data/spec/unit/generators/acceptance_generator_spec.rb +3 -2
  23. data/spec/unit/generators/definition_generator_spec.rb +3 -3
  24. data/spec/unit/generators/hostclass_generator_spec.rb +9 -1
  25. data/spec/unit/generators/provider_generator_spec.rb +3 -3
  26. data/spec/unit/generators/resource_base_generator_spec.rb +1 -0
  27. data/spec/unit/generators/serializers/rspec_dumper_spec.rb +2 -2
  28. data/spec/unit/generators/task_generator_spec.rb +46 -0
  29. data/vendor/pup410/lib/hiera/puppet_function.rb +81 -0
  30. data/vendor/pup410/lib/hiera/scope.rb +61 -0
  31. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/hiera_puppet.rb +0 -0
  32. data/vendor/pup410/lib/puppet.rb +353 -0
  33. data/vendor/pup410/lib/puppet/agent.rb +102 -0
  34. data/vendor/pup410/lib/puppet/application.rb +478 -0
  35. data/vendor/pup410/lib/puppet/application_support.rb +57 -0
  36. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/bindings.rb +0 -0
  37. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/coercion.rb +0 -0
  38. data/vendor/pup410/lib/puppet/compilable_resource_type.rb +15 -0
  39. data/vendor/pup410/lib/puppet/configurer.rb +446 -0
  40. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/configurer/downloader.rb +0 -0
  41. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/configurer/downloader_factory.rb +0 -0
  42. data/vendor/pup410/lib/puppet/configurer/fact_handler.rb +37 -0
  43. data/vendor/pup410/lib/puppet/configurer/plugin_handler.rb +25 -0
  44. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine.rb +0 -0
  45. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/any.rb +0 -0
  46. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/exists.rb +0 -0
  47. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/false.rb +0 -0
  48. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/feature.rb +0 -0
  49. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/true.rb +0 -0
  50. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/variable.rb +0 -0
  51. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine_collection.rb +0 -0
  52. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confiner.rb +0 -0
  53. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/context.rb +0 -0
  54. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/context/trusted_information.rb +0 -0
  55. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/daemon.rb +0 -0
  56. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/data_binding.rb +0 -0
  57. data/vendor/pup410/lib/puppet/data_providers.rb +34 -0
  58. data/vendor/pup410/lib/puppet/data_providers/data_adapter.rb +37 -0
  59. data/vendor/pup410/lib/puppet/data_providers/data_function_support.rb +32 -0
  60. data/vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb +26 -0
  61. data/vendor/pup410/lib/puppet/data_providers/function_module_data_provider.rb +24 -0
  62. data/vendor/pup410/lib/puppet/data_providers/hiera_config.rb +151 -0
  63. data/vendor/pup410/lib/puppet/data_providers/hiera_env_data_provider.rb +25 -0
  64. data/vendor/pup410/lib/puppet/data_providers/hiera_interpolate.rb +21 -0
  65. data/vendor/pup410/lib/puppet/data_providers/hiera_module_data_provider.rb +30 -0
  66. data/vendor/pup410/lib/puppet/data_providers/hiera_support.rb +42 -0
  67. data/vendor/pup410/lib/puppet/data_providers/json_data_provider_factory.rb +38 -0
  68. data/vendor/pup410/lib/puppet/data_providers/yaml_data_provider_factory.rb +40 -0
  69. data/vendor/pup410/lib/puppet/defaults.rb +2011 -0
  70. data/vendor/pup410/lib/puppet/environments.rb +492 -0
  71. data/vendor/pup410/lib/puppet/error.rb +100 -0
  72. data/vendor/pup410/lib/puppet/etc.rb +161 -0
  73. data/vendor/pup410/lib/puppet/external/dot.rb +326 -0
  74. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios.rb +0 -0
  75. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/base.rb +0 -0
  76. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/grammar.ry +0 -0
  77. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/makefile +0 -0
  78. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/parser.rb +0 -0
  79. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/common.rb +0 -0
  80. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure.rb +0 -0
  81. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure/generator.rb +0 -0
  82. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure/parser.rb +0 -0
  83. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/version.rb +0 -0
  84. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face.rb +0 -0
  85. data/vendor/pup410/lib/puppet/face/ca.rb +259 -0
  86. data/vendor/pup410/lib/puppet/face/catalog.rb +130 -0
  87. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/catalog/select.rb +0 -0
  88. data/vendor/pup410/lib/puppet/face/certificate.rb +165 -0
  89. data/vendor/pup410/lib/puppet/face/certificate_request.rb +56 -0
  90. data/vendor/pup410/lib/puppet/face/certificate_revocation_list.rb +56 -0
  91. data/vendor/pup410/lib/puppet/face/config.rb +119 -0
  92. data/vendor/pup410/lib/puppet/face/epp.rb +527 -0
  93. data/vendor/pup410/lib/puppet/face/facts.rb +38 -0
  94. data/vendor/pup410/lib/puppet/face/file.rb +50 -0
  95. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/file/download.rb +0 -0
  96. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/file/store.rb +0 -0
  97. data/vendor/pup410/lib/puppet/face/generate.rb +64 -0
  98. data/vendor/pup410/lib/puppet/face/help.rb +201 -0
  99. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/action.erb +0 -0
  100. data/vendor/pup410/lib/puppet/face/help/face.erb +114 -0
  101. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/global.erb +0 -0
  102. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/man.erb +0 -0
  103. data/vendor/pup410/lib/puppet/face/key.rb +16 -0
  104. data/vendor/pup410/lib/puppet/face/man.rb +101 -0
  105. data/vendor/pup410/lib/puppet/face/module.rb +19 -0
  106. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/build.rb +0 -0
  107. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/changes.rb +0 -0
  108. data/vendor/pup410/lib/puppet/face/module/generate.rb +251 -0
  109. data/vendor/pup410/lib/puppet/face/module/install.rb +145 -0
  110. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/list.rb +0 -0
  111. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/search.rb +0 -0
  112. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/uninstall.rb +0 -0
  113. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/upgrade.rb +0 -0
  114. data/vendor/pup410/lib/puppet/face/node.rb +42 -0
  115. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/node/clean.rb +0 -0
  116. data/vendor/pup410/lib/puppet/face/parser.rb +161 -0
  117. data/vendor/pup410/lib/puppet/face/plugin.rb +58 -0
  118. data/vendor/pup410/lib/puppet/face/report.rb +54 -0
  119. data/vendor/pup410/lib/puppet/face/resource.rb +53 -0
  120. data/vendor/pup410/lib/puppet/face/resource_type.rb +84 -0
  121. data/vendor/pup410/lib/puppet/face/status.rb +50 -0
  122. data/vendor/pup410/lib/puppet/feature/base.rb +94 -0
  123. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/cfacter.rb +0 -0
  124. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/cfpropertylist.rb +0 -0
  125. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/eventlog.rb +0 -0
  126. data/vendor/pup410/lib/puppet/feature/external_facts.rb +5 -0
  127. data/vendor/pup410/lib/puppet/feature/hiera_eyaml.rb +3 -0
  128. data/vendor/pup410/lib/puppet/feature/hocon.rb +3 -0
  129. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/libuser.rb +0 -0
  130. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/msgpack.rb +0 -0
  131. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/pe_license.rb +0 -0
  132. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/rack.rb +0 -0
  133. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/selinux.rb +0 -0
  134. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/ssh.rb +0 -0
  135. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/telnet.rb +0 -0
  136. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/zlib.rb +0 -0
  137. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket.rb +0 -0
  138. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket/dipper.rb +0 -0
  139. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket/file.rb +0 -0
  140. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving.rb +0 -0
  141. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/base.rb +0 -0
  142. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/configuration.rb +0 -0
  143. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/configuration/parser.rb +0 -0
  144. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/content.rb +0 -0
  145. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/fileset.rb +0 -0
  146. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/http_metadata.rb +0 -0
  147. data/vendor/pup410/lib/puppet/file_serving/metadata.rb +163 -0
  148. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount.rb +0 -0
  149. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/file.rb +0 -0
  150. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/modules.rb +0 -0
  151. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/pluginfacts.rb +0 -0
  152. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/plugins.rb +0 -0
  153. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/terminus_helper.rb +0 -0
  154. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/terminus_selector.rb +0 -0
  155. data/vendor/pup410/lib/puppet/file_system.rb +404 -0
  156. data/vendor/pup410/lib/puppet/file_system/file_impl.rb +154 -0
  157. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/memory_file.rb +0 -0
  158. data/vendor/pup410/lib/puppet/file_system/memory_impl.rb +86 -0
  159. data/vendor/pup410/lib/puppet/file_system/path_pattern.rb +98 -0
  160. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/posix.rb +0 -0
  161. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/uniquefile.rb +0 -0
  162. data/vendor/pup410/lib/puppet/file_system/windows.rb +130 -0
  163. data/vendor/pup410/lib/puppet/forge.rb +228 -0
  164. data/vendor/pup410/lib/puppet/forge/cache.rb +60 -0
  165. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/forge/errors.rb +0 -0
  166. data/vendor/pup410/lib/puppet/forge/repository.rb +155 -0
  167. data/vendor/pup410/lib/puppet/functions.rb +774 -0
  168. data/vendor/pup410/lib/puppet/functions/alert.rb +14 -0
  169. data/vendor/pup410/lib/puppet/functions/assert_type.rb +93 -0
  170. data/vendor/pup410/lib/puppet/functions/binary_file.rb +19 -0
  171. data/vendor/pup410/lib/puppet/functions/break.rb +22 -0
  172. data/vendor/pup410/lib/puppet/functions/contain.rb +33 -0
  173. data/vendor/pup410/lib/puppet/functions/crit.rb +14 -0
  174. data/vendor/pup410/lib/puppet/functions/debug.rb +14 -0
  175. data/vendor/pup410/lib/puppet/functions/defined.rb +160 -0
  176. data/vendor/pup410/lib/puppet/functions/dig.rb +23 -0
  177. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/each.rb +0 -0
  178. data/vendor/pup410/lib/puppet/functions/emerg.rb +14 -0
  179. data/vendor/pup410/lib/puppet/functions/epp.rb +48 -0
  180. data/vendor/pup410/lib/puppet/functions/err.rb +14 -0
  181. data/vendor/pup410/lib/puppet/functions/eyaml_lookup_key.rb +94 -0
  182. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/filter.rb +0 -0
  183. data/vendor/pup410/lib/puppet/functions/find_file.rb +31 -0
  184. data/vendor/pup410/lib/puppet/functions/hiera.rb +88 -0
  185. data/vendor/pup410/lib/puppet/functions/hiera_array.rb +81 -0
  186. data/vendor/pup410/lib/puppet/functions/hiera_hash.rb +92 -0
  187. data/vendor/pup410/lib/puppet/functions/hiera_include.rb +104 -0
  188. data/vendor/pup410/lib/puppet/functions/hocon_data.rb +41 -0
  189. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/import.rb +0 -0
  190. data/vendor/pup410/lib/puppet/functions/include.rb +21 -0
  191. data/vendor/pup410/lib/puppet/functions/info.rb +14 -0
  192. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/inline_epp.rb +0 -0
  193. data/vendor/pup410/lib/puppet/functions/json_data.rb +33 -0
  194. data/vendor/pup410/lib/puppet/functions/lest.rb +17 -0
  195. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/lookup.rb +0 -0
  196. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/map.rb +0 -0
  197. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/match.rb +0 -0
  198. data/vendor/pup410/lib/puppet/functions/new.rb +31 -0
  199. data/vendor/pup410/lib/puppet/functions/next.rb +23 -0
  200. data/vendor/pup410/lib/puppet/functions/notice.rb +14 -0
  201. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/reduce.rb +0 -0
  202. data/vendor/pup410/lib/puppet/functions/regsubst.rb +76 -0
  203. data/vendor/pup410/lib/puppet/functions/require.rb +37 -0
  204. data/vendor/pup410/lib/puppet/functions/return.rb +22 -0
  205. data/vendor/pup410/lib/puppet/functions/reverse_each.rb +25 -0
  206. data/vendor/pup410/lib/puppet/functions/scanf.rb +44 -0
  207. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/slice.rb +0 -0
  208. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/split.rb +0 -0
  209. data/vendor/pup410/lib/puppet/functions/step.rb +26 -0
  210. data/vendor/pup410/lib/puppet/functions/strftime.rb +35 -0
  211. data/vendor/pup410/lib/puppet/functions/then.rb +14 -0
  212. data/vendor/pup410/lib/puppet/functions/type.rb +31 -0
  213. data/vendor/pup410/lib/puppet/functions/unwrap.rb +40 -0
  214. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/versioncmp.rb +0 -0
  215. data/vendor/pup410/lib/puppet/functions/warning.rb +14 -0
  216. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/with.rb +0 -0
  217. data/vendor/pup410/lib/puppet/functions/yaml_data.rb +42 -0
  218. data/vendor/pup410/lib/puppet/generate/models/type/property.rb +70 -0
  219. data/vendor/pup410/lib/puppet/generate/models/type/type.rb +62 -0
  220. data/vendor/pup410/lib/puppet/generate/templates/type/pcore.erb +42 -0
  221. data/vendor/pup410/lib/puppet/generate/type.rb +239 -0
  222. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph.rb +0 -0
  223. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/key.rb +0 -0
  224. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/prioritizer.rb +0 -0
  225. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/random_prioritizer.rb +0 -0
  226. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/rb_tree_map.rb +0 -0
  227. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/relationship_graph.rb +0 -0
  228. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/sequential_prioritizer.rb +0 -0
  229. data/vendor/pup410/lib/puppet/graph/simple_graph.rb +560 -0
  230. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/title_hash_prioritizer.rb +0 -0
  231. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector.rb +0 -0
  232. data/vendor/pup410/lib/puppet/indirector/catalog/compiler.rb +370 -0
  233. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/json.rb +0 -0
  234. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/msgpack.rb +0 -0
  235. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/rest.rb +0 -0
  236. data/vendor/pup410/lib/puppet/indirector/catalog/static_compiler.rb +232 -0
  237. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/store_configs.rb +0 -0
  238. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/yaml.rb +0 -0
  239. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/ca.rb +0 -0
  240. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/disabled_ca.rb +0 -0
  241. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/file.rb +0 -0
  242. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/rest.rb +0 -0
  243. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/ca.rb +0 -0
  244. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/disabled_ca.rb +0 -0
  245. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/file.rb +0 -0
  246. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/memory.rb +0 -0
  247. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/rest.rb +0 -0
  248. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/ca.rb +0 -0
  249. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +0 -0
  250. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/file.rb +0 -0
  251. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/rest.rb +0 -0
  252. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status.rb +0 -0
  253. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status/file.rb +0 -0
  254. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status/rest.rb +0 -0
  255. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/code.rb +0 -0
  256. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/data_binding/hiera.rb +0 -0
  257. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/data_binding/none.rb +0 -0
  258. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/direct_file_server.rb +0 -0
  259. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/envelope.rb +0 -0
  260. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/errors.rb +0 -0
  261. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/exec.rb +0 -0
  262. data/vendor/pup410/lib/puppet/indirector/face.rb +153 -0
  263. data/vendor/pup410/lib/puppet/indirector/facts/facter.rb +90 -0
  264. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/memory.rb +0 -0
  265. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/network_device.rb +0 -0
  266. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/store_configs.rb +0 -0
  267. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/yaml.rb +0 -0
  268. data/vendor/pup410/lib/puppet/indirector/file_bucket_file/file.rb +254 -0
  269. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_bucket_file/rest.rb +0 -0
  270. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_bucket_file/selector.rb +0 -0
  271. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content.rb +0 -0
  272. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/file.rb +0 -0
  273. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/file_server.rb +0 -0
  274. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/http.rb +0 -0
  275. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/rest.rb +0 -0
  276. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/selector.rb +0 -0
  277. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata.rb +0 -0
  278. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/file.rb +0 -0
  279. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/file_server.rb +0 -0
  280. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/http.rb +0 -0
  281. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/rest.rb +0 -0
  282. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/selector.rb +0 -0
  283. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_server.rb +0 -0
  284. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/generic_http.rb +0 -0
  285. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/hiera.rb +0 -0
  286. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/indirection.rb +0 -0
  287. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/json.rb +0 -0
  288. data/vendor/pup410/lib/puppet/indirector/key/ca.rb +16 -0
  289. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/key/disabled_ca.rb +0 -0
  290. data/vendor/pup410/lib/puppet/indirector/key/file.rb +50 -0
  291. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/key/memory.rb +0 -0
  292. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/ldap.rb +0 -0
  293. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/memory.rb +0 -0
  294. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/msgpack.rb +0 -0
  295. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/exec.rb +0 -0
  296. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/ldap.rb +0 -0
  297. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/memory.rb +0 -0
  298. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/msgpack.rb +0 -0
  299. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/plain.rb +0 -0
  300. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/rest.rb +0 -0
  301. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/store_configs.rb +0 -0
  302. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/write_only_yaml.rb +0 -0
  303. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/yaml.rb +0 -0
  304. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/none.rb +0 -0
  305. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/plain.rb +0 -0
  306. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/msgpack.rb +0 -0
  307. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/processor.rb +0 -0
  308. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/rest.rb +0 -0
  309. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/yaml.rb +0 -0
  310. data/vendor/pup410/lib/puppet/indirector/request.rb +282 -0
  311. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/ral.rb +0 -0
  312. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/store_configs.rb +0 -0
  313. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/validator.rb +0 -0
  314. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type.rb +0 -0
  315. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type/parser.rb +0 -0
  316. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type/rest.rb +0 -0
  317. data/vendor/pup410/lib/puppet/indirector/rest.rb +330 -0
  318. data/vendor/pup410/lib/puppet/indirector/ssl_file.rb +201 -0
  319. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status.rb +0 -0
  320. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status/local.rb +0 -0
  321. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status/rest.rb +0 -0
  322. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/store_configs.rb +0 -0
  323. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/terminus.rb +0 -0
  324. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/yaml.rb +0 -0
  325. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/info_service.rb +0 -0
  326. data/vendor/pup410/lib/puppet/info_service/class_information_service.rb +111 -0
  327. data/vendor/pup410/lib/puppet/interface.rb +240 -0
  328. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action.rb +0 -0
  329. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action_builder.rb +0 -0
  330. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action_manager.rb +0 -0
  331. data/vendor/pup410/lib/puppet/interface/documentation.rb +342 -0
  332. data/vendor/pup410/lib/puppet/interface/face_collection.rb +125 -0
  333. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option.rb +0 -0
  334. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option_builder.rb +0 -0
  335. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option_manager.rb +0 -0
  336. data/vendor/pup410/lib/puppet/loaders.rb +25 -0
  337. data/vendor/pup410/lib/puppet/metatype/manager.rb +195 -0
  338. data/vendor/pup410/lib/puppet/module.rb +410 -0
  339. data/vendor/pup410/lib/puppet/module_tool.rb +192 -0
  340. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications.rb +0 -0
  341. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/application.rb +0 -0
  342. data/vendor/pup410/lib/puppet/module_tool/applications/builder.rb +149 -0
  343. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/checksummer.rb +0 -0
  344. data/vendor/pup410/lib/puppet/module_tool/applications/installer.rb +351 -0
  345. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/searcher.rb +0 -0
  346. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/uninstaller.rb +0 -0
  347. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/unpacker.rb +0 -0
  348. data/vendor/pup410/lib/puppet/module_tool/applications/upgrader.rb +277 -0
  349. data/vendor/pup410/lib/puppet/module_tool/checksums.rb +49 -0
  350. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/contents_description.rb +0 -0
  351. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/dependency.rb +0 -0
  352. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors.rb +0 -0
  353. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/base.rb +0 -0
  354. data/vendor/pup410/lib/puppet/module_tool/errors/installer.rb +95 -0
  355. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/shared.rb +0 -0
  356. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/uninstaller.rb +0 -0
  357. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/upgrader.rb +0 -0
  358. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/install_directory.rb +0 -0
  359. data/vendor/pup410/lib/puppet/module_tool/installed_modules.rb +96 -0
  360. data/vendor/pup410/lib/puppet/module_tool/local_tarball.rb +90 -0
  361. data/vendor/pup410/lib/puppet/module_tool/metadata.rb +221 -0
  362. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/shared_behaviors.rb +0 -0
  363. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +0 -0
  364. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +0 -0
  365. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +0 -0
  366. data/vendor/pup410/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +12 -0
  367. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +0 -0
  368. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +0 -0
  369. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +0 -0
  370. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +0 -0
  371. data/vendor/pup410/lib/puppet/module_tool/tar.rb +17 -0
  372. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/tar/gnu.rb +0 -0
  373. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/tar/mini.rb +0 -0
  374. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network.rb +0 -0
  375. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/auth_config_parser.rb +0 -0
  376. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authconfig.rb +0 -0
  377. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authorization.rb +0 -0
  378. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authstore.rb +0 -0
  379. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/client_request.rb +0 -0
  380. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format.rb +0 -0
  381. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format_handler.rb +0 -0
  382. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format_support.rb +0 -0
  383. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/formats.rb +0 -0
  384. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http.rb +0 -0
  385. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api.rb +0 -0
  386. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/ca.rb +0 -0
  387. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/ca/v1.rb +0 -0
  388. data/vendor/pup410/lib/puppet/network/http/api/indirected_routes.rb +239 -0
  389. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/indirection_type.rb +0 -0
  390. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master.rb +0 -0
  391. data/vendor/pup410/lib/puppet/network/http/api/master/v3.rb +28 -0
  392. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/authorization.rb +0 -0
  393. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/environment.rb +0 -0
  394. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/environments.rb +0 -0
  395. data/vendor/pup410/lib/puppet/network/http/compression.rb +117 -0
  396. data/vendor/pup410/lib/puppet/network/http/connection.rb +235 -0
  397. data/vendor/pup410/lib/puppet/network/http/error.rb +69 -0
  398. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/factory.rb +0 -0
  399. data/vendor/pup410/lib/puppet/network/http/handler.rb +179 -0
  400. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/issues.rb +0 -0
  401. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/memory_response.rb +0 -0
  402. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/nocache_pool.rb +0 -0
  403. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/pool.rb +0 -0
  404. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/rack.rb +0 -0
  405. data/vendor/pup410/lib/puppet/network/http/rack/rest.rb +162 -0
  406. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/request.rb +0 -0
  407. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/response.rb +0 -0
  408. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/route.rb +0 -0
  409. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/session.rb +0 -0
  410. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/site.rb +0 -0
  411. data/vendor/pup410/lib/puppet/network/http/webrick.rb +125 -0
  412. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/webrick/rest.rb +0 -0
  413. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http_pool.rb +0 -0
  414. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/resolver.rb +0 -0
  415. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/rest_controller.rb +0 -0
  416. data/vendor/pup410/lib/puppet/network/rights.rb +209 -0
  417. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/server.rb +0 -0
  418. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/node.rb +0 -0
  419. data/vendor/pup410/lib/puppet/node/environment.rb +555 -0
  420. data/vendor/pup410/lib/puppet/node/facts.rb +133 -0
  421. data/vendor/pup410/lib/puppet/parameter.rb +592 -0
  422. data/vendor/pup410/lib/puppet/parameter/boolean.rb +15 -0
  423. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/package_options.rb +0 -0
  424. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/path.rb +0 -0
  425. data/vendor/pup410/lib/puppet/parameter/value.rb +91 -0
  426. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/value_collection.rb +0 -0
  427. data/vendor/pup410/lib/puppet/parser.rb +19 -0
  428. data/vendor/pup410/lib/puppet/parser/ast.rb +65 -0
  429. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/block_expression.rb +0 -0
  430. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/branch.rb +0 -0
  431. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/hostclass.rb +0 -0
  432. data/vendor/pup410/lib/puppet/parser/ast/leaf.rb +75 -0
  433. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/node.rb +0 -0
  434. data/vendor/pup410/lib/puppet/parser/ast/pops_bridge.rb +317 -0
  435. data/vendor/pup410/lib/puppet/parser/ast/resource.rb +66 -0
  436. data/vendor/pup410/lib/puppet/parser/ast/resource_instance.rb +10 -0
  437. data/vendor/pup410/lib/puppet/parser/ast/resourceparam.rb +31 -0
  438. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/top_level_construct.rb +0 -0
  439. data/vendor/pup410/lib/puppet/parser/compiler.rb +901 -0
  440. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator.rb +0 -0
  441. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb +0 -0
  442. data/vendor/pup410/lib/puppet/parser/compiler/catalog_validator/relationship_validator.rb +60 -0
  443. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator/site_validator.rb +0 -0
  444. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/e4_parser_adapter.rb +0 -0
  445. data/vendor/pup410/lib/puppet/parser/environment_compiler.rb +201 -0
  446. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/files.rb +0 -0
  447. data/vendor/pup410/lib/puppet/parser/functions.rb +278 -0
  448. data/vendor/pup410/lib/puppet/parser/functions/assert_type.rb +60 -0
  449. data/vendor/pup410/lib/puppet/parser/functions/binary_file.rb +24 -0
  450. data/vendor/pup410/lib/puppet/parser/functions/break.rb +39 -0
  451. data/vendor/pup410/lib/puppet/parser/functions/contain.rb +30 -0
  452. data/vendor/pup410/lib/puppet/parser/functions/create_resources.rb +106 -0
  453. data/vendor/pup410/lib/puppet/parser/functions/defined.rb +107 -0
  454. data/vendor/pup410/lib/puppet/parser/functions/dig.rb +29 -0
  455. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/digest.rb +0 -0
  456. data/vendor/pup410/lib/puppet/parser/functions/each.rb +104 -0
  457. data/vendor/pup410/lib/puppet/parser/functions/epp.rb +39 -0
  458. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/fail.rb +0 -0
  459. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/file.rb +0 -0
  460. data/vendor/pup410/lib/puppet/parser/functions/filter.rb +78 -0
  461. data/vendor/pup410/lib/puppet/parser/functions/find_file.rb +28 -0
  462. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/fqdn_rand.rb +0 -0
  463. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/generate.rb +0 -0
  464. data/vendor/pup410/lib/puppet/parser/functions/hiera.rb +103 -0
  465. data/vendor/pup410/lib/puppet/parser/functions/hiera_array.rb +92 -0
  466. data/vendor/pup410/lib/puppet/parser/functions/hiera_hash.rb +102 -0
  467. data/vendor/pup410/lib/puppet/parser/functions/hiera_include.rb +102 -0
  468. data/vendor/pup410/lib/puppet/parser/functions/include.rb +33 -0
  469. data/vendor/pup410/lib/puppet/parser/functions/inline_epp.rb +51 -0
  470. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/inline_template.rb +0 -0
  471. data/vendor/pup410/lib/puppet/parser/functions/lest.rb +49 -0
  472. data/vendor/pup410/lib/puppet/parser/functions/lookup.rb +132 -0
  473. data/vendor/pup410/lib/puppet/parser/functions/map.rb +76 -0
  474. data/vendor/pup410/lib/puppet/parser/functions/match.rb +43 -0
  475. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/md5.rb +0 -0
  476. data/vendor/pup410/lib/puppet/parser/functions/new.rb +939 -0
  477. data/vendor/pup410/lib/puppet/parser/functions/next.rb +38 -0
  478. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/realize.rb +0 -0
  479. data/vendor/pup410/lib/puppet/parser/functions/reduce.rb +106 -0
  480. data/vendor/pup410/lib/puppet/parser/functions/regsubst.rb +62 -0
  481. data/vendor/pup410/lib/puppet/parser/functions/require.rb +40 -0
  482. data/vendor/pup410/lib/puppet/parser/functions/return.rb +71 -0
  483. data/vendor/pup410/lib/puppet/parser/functions/reverse_each.rb +83 -0
  484. data/vendor/pup410/lib/puppet/parser/functions/scanf.rb +38 -0
  485. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/sha1.rb +0 -0
  486. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/shellquote.rb +0 -0
  487. data/vendor/pup410/lib/puppet/parser/functions/slice.rb +39 -0
  488. data/vendor/pup410/lib/puppet/parser/functions/split.rb +28 -0
  489. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/sprintf.rb +0 -0
  490. data/vendor/pup410/lib/puppet/parser/functions/step.rb +84 -0
  491. data/vendor/pup410/lib/puppet/parser/functions/strftime.rb +185 -0
  492. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/tag.rb +0 -0
  493. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/tagged.rb +0 -0
  494. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/template.rb +0 -0
  495. data/vendor/pup410/lib/puppet/parser/functions/then.rb +73 -0
  496. data/vendor/pup410/lib/puppet/parser/functions/type.rb +53 -0
  497. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/versioncmp.rb +0 -0
  498. data/vendor/pup410/lib/puppet/parser/functions/with.rb +28 -0
  499. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/parser_factory.rb +0 -0
  500. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/relationship.rb +0 -0
  501. data/vendor/pup410/lib/puppet/parser/resource.rb +388 -0
  502. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/resource/param.rb +0 -0
  503. data/vendor/pup410/lib/puppet/parser/scope.rb +1138 -0
  504. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/templatewrapper.rb +0 -0
  505. data/vendor/pup410/lib/puppet/parser/type_loader.rb +149 -0
  506. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/yaml_trimmer.rb +0 -0
  507. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins.rb +0 -0
  508. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins/binding_schemes.rb +0 -0
  509. data/vendor/pup410/lib/puppet/plugins/configuration.rb +77 -0
  510. data/vendor/pup410/lib/puppet/plugins/data_providers.rb +45 -0
  511. data/vendor/pup410/lib/puppet/plugins/data_providers/data_provider.rb +406 -0
  512. data/vendor/pup410/lib/puppet/plugins/data_providers/registry.rb +51 -0
  513. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins/syntax_checkers.rb +0 -0
  514. data/vendor/pup410/lib/puppet/pops.rb +150 -0
  515. data/vendor/pup410/lib/puppet/pops/adaptable.rb +201 -0
  516. data/vendor/pup410/lib/puppet/pops/adapters.rb +198 -0
  517. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/binder.rb +0 -0
  518. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/binder_issues.rb +0 -0
  519. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_checker.rb +0 -0
  520. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_composer.rb +0 -0
  521. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_factory.rb +0 -0
  522. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_label_provider.rb +0 -0
  523. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_loader.rb +0 -0
  524. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model.rb +0 -0
  525. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model_dumper.rb +0 -0
  526. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model_meta.rb +0 -0
  527. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_validator_factory.rb +0 -0
  528. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/binder_config.rb +0 -0
  529. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/binder_config_checker.rb +0 -0
  530. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/diagnostic_producer.rb +0 -0
  531. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/issues.rb +0 -0
  532. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/injector.rb +0 -0
  533. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/injector_entry.rb +0 -0
  534. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/key_factory.rb +0 -0
  535. data/vendor/pup410/lib/puppet/pops/binder/producers.rb +831 -0
  536. data/vendor/pup410/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +34 -0
  537. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/scheme_handler/module_scheme.rb +0 -0
  538. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/scheme_handler/symbolic_scheme.rb +0 -0
  539. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/system_bindings.rb +0 -0
  540. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/containment.rb +0 -0
  541. data/vendor/pup410/lib/puppet/pops/evaluator/access_operator.rb +707 -0
  542. data/vendor/pup410/lib/puppet/pops/evaluator/callable_signature.rb +107 -0
  543. data/vendor/pup410/lib/puppet/pops/evaluator/closure.rb +365 -0
  544. data/vendor/pup410/lib/puppet/pops/evaluator/collector_transformer.rb +238 -0
  545. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +0 -0
  546. data/vendor/pup410/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +29 -0
  547. data/vendor/pup410/lib/puppet/pops/evaluator/collectors/exported_collector.rb +69 -0
  548. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb +0 -0
  549. data/vendor/pup410/lib/puppet/pops/evaluator/compare_operator.rb +252 -0
  550. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/epp_evaluator.rb +0 -0
  551. data/vendor/pup410/lib/puppet/pops/evaluator/evaluator_impl.rb +1247 -0
  552. data/vendor/pup410/lib/puppet/pops/evaluator/external_syntax_support.rb +52 -0
  553. data/vendor/pup410/lib/puppet/pops/evaluator/json_strict_literal_evaluator.rb +84 -0
  554. data/vendor/pup410/lib/puppet/pops/evaluator/literal_evaluator.rb +87 -0
  555. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/puppet_proc.rb +0 -0
  556. data/vendor/pup410/lib/puppet/pops/evaluator/relationship_operator.rb +168 -0
  557. data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_converter.rb +184 -0
  558. data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_resource_support.rb +117 -0
  559. data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_support.rb +554 -0
  560. data/vendor/pup410/lib/puppet/pops/functions/dispatch.rb +105 -0
  561. data/vendor/pup410/lib/puppet/pops/functions/dispatcher.rb +71 -0
  562. data/vendor/pup410/lib/puppet/pops/functions/function.rb +135 -0
  563. data/vendor/pup410/lib/puppet/pops/issue_reporter.rb +115 -0
  564. data/vendor/pup410/lib/puppet/pops/issues.rb +834 -0
  565. data/vendor/pup410/lib/puppet/pops/label_provider.rb +90 -0
  566. data/vendor/pup410/lib/puppet/pops/loader/base_loader.rb +156 -0
  567. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/dependency_loader.rb +0 -0
  568. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/gem_support.rb +0 -0
  569. data/vendor/pup410/lib/puppet/pops/loader/loader.rb +190 -0
  570. data/vendor/pup410/lib/puppet/pops/loader/loader_paths.rb +225 -0
  571. data/vendor/pup410/lib/puppet/pops/loader/module_loaders.rb +300 -0
  572. data/vendor/pup410/lib/puppet/pops/loader/null_loader.rb +60 -0
  573. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/predefined_loader.rb +0 -0
  574. data/vendor/pup410/lib/puppet/pops/loader/puppet_function_instantiator.rb +84 -0
  575. data/vendor/pup410/lib/puppet/pops/loader/puppet_resource_type_impl_instantiator.rb +80 -0
  576. data/vendor/pup410/lib/puppet/pops/loader/ruby_function_instantiator.rb +46 -0
  577. data/vendor/pup410/lib/puppet/pops/loader/runtime3_type_loader.rb +96 -0
  578. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/simple_environment_loader.rb +0 -0
  579. data/vendor/pup410/lib/puppet/pops/loader/static_loader.rb +180 -0
  580. data/vendor/pup410/lib/puppet/pops/loader/type_definition_instantiator.rb +93 -0
  581. data/vendor/pup410/lib/puppet/pops/loader/typed_name.rb +49 -0
  582. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/uri_helper.rb +0 -0
  583. data/vendor/pup410/lib/puppet/pops/loaders.rb +410 -0
  584. data/vendor/pup410/lib/puppet/pops/lookup.rb +94 -0
  585. data/vendor/pup410/lib/puppet/pops/lookup/configured_data_provider.rb +93 -0
  586. data/vendor/pup410/lib/puppet/pops/lookup/context.rb +200 -0
  587. data/vendor/pup410/lib/puppet/pops/lookup/data_adapter.rb +27 -0
  588. data/vendor/pup410/lib/puppet/pops/lookup/data_dig_function_provider.rb +145 -0
  589. data/vendor/pup410/lib/puppet/pops/lookup/data_hash_function_provider.rb +126 -0
  590. data/vendor/pup410/lib/puppet/pops/lookup/data_provider.rb +107 -0
  591. data/vendor/pup410/lib/puppet/pops/lookup/environment_data_provider.rb +35 -0
  592. data/vendor/pup410/lib/puppet/pops/lookup/explainer.rb +594 -0
  593. data/vendor/pup410/lib/puppet/pops/lookup/function_provider.rb +110 -0
  594. data/vendor/pup410/lib/puppet/pops/lookup/global_data_provider.rb +75 -0
  595. data/vendor/pup410/lib/puppet/pops/lookup/hiera_config.rb +784 -0
  596. data/vendor/pup410/lib/puppet/pops/lookup/interpolation.rb +153 -0
  597. data/vendor/pup410/lib/puppet/pops/lookup/invocation.rb +261 -0
  598. data/vendor/pup410/lib/puppet/pops/lookup/location_resolver.rb +99 -0
  599. data/vendor/pup410/lib/puppet/pops/lookup/lookup_adapter.rb +515 -0
  600. data/vendor/pup410/lib/puppet/pops/lookup/lookup_key.rb +99 -0
  601. data/vendor/pup410/lib/puppet/pops/lookup/lookup_key_function_provider.rb +92 -0
  602. data/vendor/pup410/lib/puppet/pops/lookup/module_data_provider.rb +89 -0
  603. data/vendor/pup410/lib/puppet/pops/lookup/sub_lookup.rb +91 -0
  604. data/vendor/pup410/lib/puppet/pops/merge_strategy.rb +419 -0
  605. data/vendor/pup410/lib/puppet/pops/migration/migration_checker.rb +58 -0
  606. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/ast_transformer.rb +0 -0
  607. data/vendor/pup410/lib/puppet/pops/model/factory.rb +1151 -0
  608. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/model.rb +0 -0
  609. data/vendor/pup410/lib/puppet/pops/model/model_label_provider.rb +130 -0
  610. data/vendor/pup410/lib/puppet/pops/model/model_meta.rb +629 -0
  611. data/vendor/pup410/lib/puppet/pops/model/model_tree_dumper.rb +451 -0
  612. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/tree_dumper.rb +0 -0
  613. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/code_merger.rb +0 -0
  614. data/vendor/pup410/lib/puppet/pops/parser/egrammar.ra +876 -0
  615. data/vendor/pup410/lib/puppet/pops/parser/eparser.rb +3243 -0
  616. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/epp_parser.rb +0 -0
  617. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/epp_support.rb +0 -0
  618. data/vendor/pup410/lib/puppet/pops/parser/evaluating_parser.rb +165 -0
  619. data/vendor/pup410/lib/puppet/pops/parser/heredoc_support.rb +143 -0
  620. data/vendor/pup410/lib/puppet/pops/parser/interpolation_support.rb +244 -0
  621. data/vendor/pup410/lib/puppet/pops/parser/lexer2.rb +798 -0
  622. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/lexer_support.rb +0 -0
  623. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/locatable.rb +0 -0
  624. data/vendor/pup410/lib/puppet/pops/parser/locator.rb +321 -0
  625. data/vendor/pup410/lib/puppet/pops/parser/parser_support.rb +251 -0
  626. data/vendor/pup410/lib/puppet/pops/parser/slurp_support.rb +120 -0
  627. data/vendor/pup410/lib/puppet/pops/patterns.rb +60 -0
  628. data/vendor/pup410/lib/puppet/pops/pcore.rb +96 -0
  629. data/vendor/pup410/lib/puppet/pops/puppet_stack.rb +43 -0
  630. data/vendor/pup410/lib/puppet/pops/resource/param.rb +55 -0
  631. data/vendor/pup410/lib/puppet/pops/resource/resource_type_impl.rb +314 -0
  632. data/vendor/pup410/lib/puppet/pops/resource/resource_type_set.pcore +22 -0
  633. data/vendor/pup410/lib/puppet/pops/semantic_error.rb +29 -0
  634. data/vendor/pup410/lib/puppet/pops/serialization.rb +17 -0
  635. data/vendor/pup410/lib/puppet/pops/serialization/abstract_reader.rb +176 -0
  636. data/vendor/pup410/lib/puppet/pops/serialization/abstract_writer.rb +207 -0
  637. data/vendor/pup410/lib/puppet/pops/serialization/deserializer.rb +80 -0
  638. data/vendor/pup410/lib/puppet/pops/serialization/extension.rb +157 -0
  639. data/vendor/pup410/lib/puppet/pops/serialization/instance_reader.rb +19 -0
  640. data/vendor/pup410/lib/puppet/pops/serialization/instance_writer.rb +14 -0
  641. data/vendor/pup410/lib/puppet/pops/serialization/json.rb +297 -0
  642. data/vendor/pup410/lib/puppet/pops/serialization/object.rb +71 -0
  643. data/vendor/pup410/lib/puppet/pops/serialization/rgen.rb +152 -0
  644. data/vendor/pup410/lib/puppet/pops/serialization/serializer.rb +125 -0
  645. data/vendor/pup410/lib/puppet/pops/serialization/time_factory.rb +67 -0
  646. data/vendor/pup410/lib/puppet/pops/time/timespan.rb +718 -0
  647. data/vendor/pup410/lib/puppet/pops/time/timestamp.rb +148 -0
  648. data/vendor/pup410/lib/puppet/pops/types/annotatable.rb +36 -0
  649. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/class_loader.rb +0 -0
  650. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/enumeration.rb +0 -0
  651. data/vendor/pup410/lib/puppet/pops/types/implementation_registry.rb +141 -0
  652. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/iterable.rb +0 -0
  653. data/vendor/pup410/lib/puppet/pops/types/p_binary_type.rb +220 -0
  654. data/vendor/pup410/lib/puppet/pops/types/p_meta_type.rb +83 -0
  655. data/vendor/pup410/lib/puppet/pops/types/p_object_type.rb +886 -0
  656. data/vendor/pup410/lib/puppet/pops/types/p_runtime_type.rb +115 -0
  657. data/vendor/pup410/lib/puppet/pops/types/p_sem_ver_range_type.rb +187 -0
  658. data/vendor/pup410/lib/puppet/pops/types/p_sem_ver_type.rb +141 -0
  659. data/vendor/pup410/lib/puppet/pops/types/p_sensitive_type.rb +73 -0
  660. data/vendor/pup410/lib/puppet/pops/types/p_timespan_type.rb +141 -0
  661. data/vendor/pup410/lib/puppet/pops/types/p_timestamp_type.rb +69 -0
  662. data/vendor/pup410/lib/puppet/pops/types/p_type_set_type.rb +352 -0
  663. data/vendor/pup410/lib/puppet/pops/types/puppet_object.rb +16 -0
  664. data/vendor/pup410/lib/puppet/pops/types/recursion_guard.rb +136 -0
  665. data/vendor/pup410/lib/puppet/pops/types/ruby_generator.rb +275 -0
  666. data/vendor/pup410/lib/puppet/pops/types/string_converter.rb +1022 -0
  667. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_acceptor.rb +0 -0
  668. data/vendor/pup410/lib/puppet/pops/types/type_asserter.rb +47 -0
  669. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_assertion_error.rb +0 -0
  670. data/vendor/pup410/lib/puppet/pops/types/type_calculator.rb +836 -0
  671. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_conversion_error.rb +0 -0
  672. data/vendor/pup410/lib/puppet/pops/types/type_factory.rb +538 -0
  673. data/vendor/pup410/lib/puppet/pops/types/type_formatter.rb +686 -0
  674. data/vendor/pup410/lib/puppet/pops/types/type_mismatch_describer.rb +1105 -0
  675. data/vendor/pup410/lib/puppet/pops/types/type_parser.rb +564 -0
  676. data/vendor/pup410/lib/puppet/pops/types/type_set_reference.rb +59 -0
  677. data/vendor/pup410/lib/puppet/pops/types/types.rb +3464 -0
  678. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/utils.rb +0 -0
  679. data/vendor/pup410/lib/puppet/pops/validation.rb +470 -0
  680. data/vendor/pup410/lib/puppet/pops/validation/checker4_0.rb +980 -0
  681. data/vendor/pup410/lib/puppet/pops/validation/validator_factory_4_0.rb +39 -0
  682. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/visitable.rb +0 -0
  683. data/vendor/pup410/lib/puppet/pops/visitor.rb +95 -0
  684. data/vendor/pup410/lib/puppet/property.rb +597 -0
  685. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/boolean.rb +0 -0
  686. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/ensure.rb +0 -0
  687. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/keyvalue.rb +0 -0
  688. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/list.rb +0 -0
  689. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/ordered_list.rb +0 -0
  690. data/vendor/pup410/lib/puppet/provider.rb +601 -0
  691. data/vendor/pup410/lib/puppet/provider/aixobject.rb +392 -0
  692. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/augeas/augeas.rb +0 -0
  693. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/cisco.rb +0 -0
  694. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/command.rb +0 -0
  695. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/computer/computer.rb +0 -0
  696. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/confine.rb +0 -0
  697. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/cron/crontab.rb +0 -0
  698. data/vendor/pup410/lib/puppet/provider/exec.rb +98 -0
  699. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/posix.rb +0 -0
  700. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/shell.rb +0 -0
  701. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/windows.rb +0 -0
  702. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/file/posix.rb +0 -0
  703. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/file/windows.rb +0 -0
  704. data/vendor/pup410/lib/puppet/provider/group/aix.rb +141 -0
  705. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/directoryservice.rb +0 -0
  706. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/groupadd.rb +0 -0
  707. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/ldap.rb +0 -0
  708. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/pw.rb +0 -0
  709. data/vendor/pup410/lib/puppet/provider/group/windows_adsi.rb +109 -0
  710. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/host/parsed.rb +0 -0
  711. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/interface/cisco.rb +0 -0
  712. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/ldap.rb +0 -0
  713. data/vendor/pup410/lib/puppet/provider/macauthorization/macauthorization.rb +298 -0
  714. data/vendor/pup410/lib/puppet/provider/mailalias/aliases.rb +50 -0
  715. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/maillist/mailman.rb +0 -0
  716. data/vendor/pup410/lib/puppet/provider/mcx/mcxcontent.rb +173 -0
  717. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/mount.rb +0 -0
  718. data/vendor/pup410/lib/puppet/provider/mount/parsed.rb +280 -0
  719. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/naginator.rb +0 -0
  720. data/vendor/pup410/lib/puppet/provider/nameservice.rb +317 -0
  721. data/vendor/pup410/lib/puppet/provider/nameservice/directoryservice.rb +507 -0
  722. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/nameservice/objectadd.rb +0 -0
  723. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/nameservice/pw.rb +0 -0
  724. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/network_device.rb +0 -0
  725. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package.rb +0 -0
  726. data/vendor/pup410/lib/puppet/provider/package/aix.rb +152 -0
  727. data/vendor/pup410/lib/puppet/provider/package/appdmg.rb +110 -0
  728. data/vendor/pup410/lib/puppet/provider/package/apple.rb +47 -0
  729. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/apt.rb +0 -0
  730. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/aptitude.rb +0 -0
  731. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/aptrpm.rb +0 -0
  732. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/blastwave.rb +0 -0
  733. data/vendor/pup410/lib/puppet/provider/package/dnf.rb +46 -0
  734. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/dpkg.rb +0 -0
  735. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/fink.rb +0 -0
  736. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/freebsd.rb +0 -0
  737. data/vendor/pup410/lib/puppet/provider/package/gem.rb +174 -0
  738. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/hpux.rb +0 -0
  739. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/macports.rb +0 -0
  740. data/vendor/pup410/lib/puppet/provider/package/nim.rb +280 -0
  741. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/openbsd.rb +0 -0
  742. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/opkg.rb +0 -0
  743. data/vendor/pup410/lib/puppet/provider/package/pacman.rb +267 -0
  744. data/vendor/pup410/lib/puppet/provider/package/pip.rb +179 -0
  745. data/vendor/pup410/lib/puppet/provider/package/pip3.rb +20 -0
  746. data/vendor/pup410/lib/puppet/provider/package/pkg.rb +249 -0
  747. data/vendor/pup410/lib/puppet/provider/package/pkgdmg.rb +152 -0
  748. data/vendor/pup410/lib/puppet/provider/package/pkgin.rb +87 -0
  749. data/vendor/pup410/lib/puppet/provider/package/pkgng.rb +143 -0
  750. data/vendor/pup410/lib/puppet/provider/package/pkgutil.rb +186 -0
  751. data/vendor/pup410/lib/puppet/provider/package/portage.rb +193 -0
  752. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/ports.rb +0 -0
  753. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/portupgrade.rb +0 -0
  754. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/puppet_gem.rb +0 -0
  755. data/vendor/pup410/lib/puppet/provider/package/rpm.rb +402 -0
  756. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/rug.rb +0 -0
  757. data/vendor/pup410/lib/puppet/provider/package/sun.rb +132 -0
  758. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/sunfreeware.rb +0 -0
  759. data/vendor/pup410/lib/puppet/provider/package/tdnf.rb +28 -0
  760. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/up2date.rb +0 -0
  761. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/urpmi.rb +0 -0
  762. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows.rb +0 -0
  763. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/exe_package.rb +0 -0
  764. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/msi_package.rb +0 -0
  765. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/package.rb +0 -0
  766. data/vendor/pup410/lib/puppet/provider/package/yum.rb +270 -0
  767. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/zypper.rb +0 -0
  768. data/vendor/pup410/lib/puppet/provider/parsedfile.rb +459 -0
  769. data/vendor/pup410/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +590 -0
  770. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/selboolean/getsetsebool.rb +0 -0
  771. data/vendor/pup410/lib/puppet/provider/selmodule/semodule.rb +138 -0
  772. data/vendor/pup410/lib/puppet/provider/service/base.rb +121 -0
  773. data/vendor/pup410/lib/puppet/provider/service/bsd.rb +51 -0
  774. data/vendor/pup410/lib/puppet/provider/service/daemontools.rb +194 -0
  775. data/vendor/pup410/lib/puppet/provider/service/debian.rb +74 -0
  776. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/freebsd.rb +0 -0
  777. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/gentoo.rb +0 -0
  778. data/vendor/pup410/lib/puppet/provider/service/init.rb +193 -0
  779. data/vendor/pup410/lib/puppet/provider/service/launchd.rb +346 -0
  780. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openbsd.rb +0 -0
  781. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openrc.rb +0 -0
  782. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openwrt.rb +0 -0
  783. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/rcng.rb +0 -0
  784. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/redhat.rb +0 -0
  785. data/vendor/pup410/lib/puppet/provider/service/runit.rb +111 -0
  786. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/service.rb +0 -0
  787. data/vendor/pup410/lib/puppet/provider/service/smf.rb +167 -0
  788. data/vendor/pup410/lib/puppet/provider/service/src.rb +147 -0
  789. data/vendor/pup410/lib/puppet/provider/service/systemd.rb +186 -0
  790. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/upstart.rb +0 -0
  791. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/windows.rb +0 -0
  792. data/vendor/pup410/lib/puppet/provider/ssh_authorized_key/parsed.rb +105 -0
  793. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/sshkey/parsed.rb +0 -0
  794. data/vendor/pup410/lib/puppet/provider/user/aix.rb +375 -0
  795. data/vendor/pup410/lib/puppet/provider/user/directoryservice.rb +632 -0
  796. data/vendor/pup410/lib/puppet/provider/user/hpux.rb +95 -0
  797. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/ldap.rb +0 -0
  798. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/openbsd.rb +0 -0
  799. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/pw.rb +0 -0
  800. data/vendor/pup410/lib/puppet/provider/user/user_role_add.rb +227 -0
  801. data/vendor/pup410/lib/puppet/provider/user/useradd.rb +231 -0
  802. data/vendor/pup410/lib/puppet/provider/user/windows_adsi.rb +148 -0
  803. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/vlan/cisco.rb +0 -0
  804. data/vendor/pup410/lib/puppet/provider/yumrepo/inifile.rb +304 -0
  805. data/vendor/pup410/lib/puppet/provider/zfs/zfs.rb +84 -0
  806. data/vendor/pup410/lib/puppet/provider/zone/solaris.rb +364 -0
  807. data/vendor/pup410/lib/puppet/provider/zpool/zpool.rb +125 -0
  808. data/vendor/pup410/lib/puppet/reference/configuration.rb +82 -0
  809. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/function.rb +0 -0
  810. data/vendor/pup410/lib/puppet/reference/indirection.rb +71 -0
  811. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/metaparameter.rb +0 -0
  812. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/providers.rb +0 -0
  813. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/report.rb +0 -0
  814. data/vendor/pup410/lib/puppet/reference/type.rb +114 -0
  815. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/relationship.rb +0 -0
  816. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports.rb +0 -0
  817. data/vendor/pup410/lib/puppet/reports/http.rb +33 -0
  818. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports/log.rb +0 -0
  819. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports/store.rb +0 -0
  820. data/vendor/pup410/lib/puppet/resource.rb +728 -0
  821. data/vendor/pup410/lib/puppet/resource/capability_finder.rb +128 -0
  822. data/vendor/pup410/lib/puppet/resource/catalog.rb +675 -0
  823. data/vendor/pup410/lib/puppet/resource/status.rb +232 -0
  824. data/vendor/pup410/lib/puppet/resource/type.rb +572 -0
  825. data/vendor/pup410/lib/puppet/resource/type_collection.rb +257 -0
  826. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler.rb +0 -0
  827. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/job.rb +0 -0
  828. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/scheduler.rb +0 -0
  829. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/splay_job.rb +0 -0
  830. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/timer.rb +0 -0
  831. data/vendor/pup410/lib/puppet/settings.rb +1455 -0
  832. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/array_setting.rb +0 -0
  833. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/autosign_setting.rb +0 -0
  834. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/base_setting.rb +0 -0
  835. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/boolean_setting.rb +0 -0
  836. data/vendor/pup410/lib/puppet/settings/config_file.rb +143 -0
  837. data/vendor/pup410/lib/puppet/settings/directory_setting.rb +18 -0
  838. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/duration_setting.rb +0 -0
  839. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/enum_setting.rb +0 -0
  840. data/vendor/pup410/lib/puppet/settings/environment_conf.rb +204 -0
  841. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/errors.rb +0 -0
  842. data/vendor/pup410/lib/puppet/settings/file_or_directory_setting.rb +40 -0
  843. data/vendor/pup410/lib/puppet/settings/file_setting.rb +245 -0
  844. data/vendor/pup410/lib/puppet/settings/ini_file.rb +171 -0
  845. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/path_setting.rb +0 -0
  846. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/priority_setting.rb +0 -0
  847. data/vendor/pup410/lib/puppet/settings/server_list_setting.rb +20 -0
  848. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/string_setting.rb +0 -0
  849. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/symbolic_enum_setting.rb +0 -0
  850. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/terminus_setting.rb +0 -0
  851. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/ttl_setting.rb +0 -0
  852. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/value_translator.rb +0 -0
  853. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl.rb +0 -0
  854. data/vendor/pup410/lib/puppet/ssl/base.rb +153 -0
  855. data/vendor/pup410/lib/puppet/ssl/certificate.rb +95 -0
  856. data/vendor/pup410/lib/puppet/ssl/certificate_authority.rb +553 -0
  857. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_authority/autosign_command.rb +0 -0
  858. data/vendor/pup410/lib/puppet/ssl/certificate_authority/interface.rb +324 -0
  859. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_factory.rb +0 -0
  860. data/vendor/pup410/lib/puppet/ssl/certificate_request.rb +327 -0
  861. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_request_attributes.rb +0 -0
  862. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_revocation_list.rb +0 -0
  863. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_signer.rb +0 -0
  864. data/vendor/pup410/lib/puppet/ssl/configuration.rb +61 -0
  865. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/digest.rb +0 -0
  866. data/vendor/pup410/lib/puppet/ssl/host.rb +387 -0
  867. data/vendor/pup410/lib/puppet/ssl/inventory.rb +55 -0
  868. data/vendor/pup410/lib/puppet/ssl/key.rb +63 -0
  869. data/vendor/pup410/lib/puppet/ssl/oids.rb +187 -0
  870. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/validator.rb +0 -0
  871. data/vendor/pup410/lib/puppet/ssl/validator/default_validator.rb +174 -0
  872. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/validator/no_validator.rb +0 -0
  873. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/status.rb +0 -0
  874. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/syntax_checkers.rb +0 -0
  875. data/vendor/pup410/lib/puppet/syntax_checkers/base64.rb +41 -0
  876. data/vendor/pup410/lib/puppet/syntax_checkers/json.rb +35 -0
  877. data/vendor/pup410/lib/puppet/test/test_helper.rb +256 -0
  878. data/vendor/pup410/lib/puppet/transaction.rb +399 -0
  879. data/vendor/pup410/lib/puppet/transaction/additional_resource_generator.rb +219 -0
  880. data/vendor/pup410/lib/puppet/transaction/event.rb +133 -0
  881. data/vendor/pup410/lib/puppet/transaction/event_manager.rb +167 -0
  882. data/vendor/pup410/lib/puppet/transaction/persistence.rb +84 -0
  883. data/vendor/pup410/lib/puppet/transaction/report.rb +460 -0
  884. data/vendor/pup410/lib/puppet/transaction/resource_harness.rb +316 -0
  885. data/vendor/pup410/lib/puppet/type.rb +2670 -0
  886. data/vendor/pup410/lib/puppet/type/augeas.rb +211 -0
  887. data/vendor/pup410/lib/puppet/type/component.rb +88 -0
  888. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/computer.rb +0 -0
  889. data/vendor/pup410/lib/puppet/type/cron.rb +492 -0
  890. data/vendor/pup410/lib/puppet/type/exec.rb +622 -0
  891. data/vendor/pup410/lib/puppet/type/file.rb +1032 -0
  892. data/vendor/pup410/lib/puppet/type/file/checksum.rb +44 -0
  893. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/checksum_value.rb +0 -0
  894. data/vendor/pup410/lib/puppet/type/file/content.rb +160 -0
  895. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/ctime.rb +0 -0
  896. data/vendor/pup410/lib/puppet/type/file/data_sync.rb +92 -0
  897. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/ensure.rb +0 -0
  898. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/group.rb +0 -0
  899. data/vendor/pup410/lib/puppet/type/file/mode.rb +177 -0
  900. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/mtime.rb +0 -0
  901. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/owner.rb +0 -0
  902. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/selcontext.rb +0 -0
  903. data/vendor/pup410/lib/puppet/type/file/source.rb +352 -0
  904. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/target.rb +0 -0
  905. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/type.rb +0 -0
  906. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/filebucket.rb +0 -0
  907. data/vendor/pup410/lib/puppet/type/group.rb +206 -0
  908. data/vendor/pup410/lib/puppet/type/host.rb +95 -0
  909. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/interface.rb +0 -0
  910. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/k5login.rb +0 -0
  911. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/macauthorization.rb +0 -0
  912. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/mailalias.rb +0 -0
  913. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/maillist.rb +0 -0
  914. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/mcx.rb +0 -0
  915. data/vendor/pup410/lib/puppet/type/mount.rb +310 -0
  916. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_command.rb +0 -0
  917. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_contact.rb +0 -0
  918. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_contactgroup.rb +0 -0
  919. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_host.rb +0 -0
  920. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostdependency.rb +0 -0
  921. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostescalation.rb +0 -0
  922. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostextinfo.rb +0 -0
  923. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostgroup.rb +0 -0
  924. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_service.rb +0 -0
  925. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_servicedependency.rb +0 -0
  926. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_serviceescalation.rb +0 -0
  927. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_serviceextinfo.rb +0 -0
  928. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_servicegroup.rb +0 -0
  929. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_timeperiod.rb +0 -0
  930. data/vendor/pup410/lib/puppet/type/notify.rb +44 -0
  931. data/vendor/pup410/lib/puppet/type/package.rb +571 -0
  932. data/vendor/pup410/lib/puppet/type/resources.rb +180 -0
  933. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/router.rb +0 -0
  934. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/schedule.rb +0 -0
  935. data/vendor/pup410/lib/puppet/type/scheduled_task.rb +184 -0
  936. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/selboolean.rb +0 -0
  937. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/selmodule.rb +0 -0
  938. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/service.rb +0 -0
  939. data/vendor/pup410/lib/puppet/type/ssh_authorized_key.rb +159 -0
  940. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/sshkey.rb +0 -0
  941. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/stage.rb +0 -0
  942. data/vendor/pup410/lib/puppet/type/tidy.rb +332 -0
  943. data/vendor/pup410/lib/puppet/type/user.rb +768 -0
  944. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/vlan.rb +0 -0
  945. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/whit.rb +0 -0
  946. data/vendor/pup410/lib/puppet/type/yumrepo.rb +409 -0
  947. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/zfs.rb +0 -0
  948. data/vendor/pup410/lib/puppet/type/zone.rb +382 -0
  949. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/zpool.rb +0 -0
  950. data/vendor/pup410/lib/puppet/util.rb +701 -0
  951. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/autoload.rb +0 -0
  952. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/backups.rb +0 -0
  953. data/vendor/pup410/lib/puppet/util/character_encoding.rb +98 -0
  954. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/checksums.rb +0 -0
  955. data/vendor/pup410/lib/puppet/util/classgen.rb +228 -0
  956. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/colors.rb +0 -0
  957. data/vendor/pup410/lib/puppet/util/command_line.rb +185 -0
  958. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/command_line/puppet_option_parser.rb +0 -0
  959. data/vendor/pup410/lib/puppet/util/command_line/trollop.rb +824 -0
  960. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/constant_inflector.rb +0 -0
  961. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/diff.rb +0 -0
  962. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/docs.rb +0 -0
  963. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/errors.rb +0 -0
  964. data/vendor/pup410/lib/puppet/util/execution.rb +359 -0
  965. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/execution_stub.rb +0 -0
  966. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/feature.rb +0 -0
  967. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/file_watcher.rb +0 -0
  968. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/fileparsing.rb +0 -0
  969. data/vendor/pup410/lib/puppet/util/filetype.rb +309 -0
  970. data/vendor/pup410/lib/puppet/util/http_proxy.rb +197 -0
  971. data/vendor/pup410/lib/puppet/util/inifile.rb +341 -0
  972. data/vendor/pup410/lib/puppet/util/instance_loader.rb +81 -0
  973. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/json_lockfile.rb +0 -0
  974. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap.rb +0 -0
  975. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/connection.rb +0 -0
  976. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/generator.rb +0 -0
  977. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/manager.rb +0 -0
  978. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/libuser.conf +0 -0
  979. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/libuser.rb +0 -0
  980. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/limits.rb +0 -0
  981. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/lockfile.rb +0 -0
  982. data/vendor/pup410/lib/puppet/util/log.rb +411 -0
  983. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/log/destination.rb +0 -0
  984. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/log/destinations.rb +0 -0
  985. data/vendor/pup410/lib/puppet/util/logging.rb +311 -0
  986. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/metaid.rb +0 -0
  987. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/methodhelper.rb +0 -0
  988. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/metric.rb +0 -0
  989. data/vendor/pup410/lib/puppet/util/monkey_patches.rb +147 -0
  990. data/vendor/pup410/lib/puppet/util/multi_match.rb +51 -0
  991. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/nagios_maker.rb +0 -0
  992. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device.rb +0 -0
  993. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/base.rb +0 -0
  994. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco.rb +0 -0
  995. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/device.rb +0 -0
  996. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/facts.rb +0 -0
  997. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/interface.rb +0 -0
  998. data/vendor/pup410/lib/puppet/util/network_device/config.rb +98 -0
  999. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/ipcalc.rb +0 -0
  1000. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport.rb +0 -0
  1001. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/base.rb +0 -0
  1002. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/ssh.rb +0 -0
  1003. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/telnet.rb +0 -0
  1004. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/package.rb +0 -0
  1005. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/pidlock.rb +0 -0
  1006. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/platform.rb +0 -0
  1007. data/vendor/pup410/lib/puppet/util/plist.rb +151 -0
  1008. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/posix.rb +0 -0
  1009. data/vendor/pup410/lib/puppet/util/profiler.rb +53 -0
  1010. data/vendor/pup410/lib/puppet/util/profiler/aggregate.rb +85 -0
  1011. data/vendor/pup410/lib/puppet/util/profiler/around_profiler.rb +67 -0
  1012. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/logging.rb +0 -0
  1013. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/object_counts.rb +0 -0
  1014. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/wall_clock.rb +0 -0
  1015. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/provider_features.rb +0 -0
  1016. data/vendor/pup410/lib/puppet/util/psych_support.rb +38 -0
  1017. data/vendor/pup410/lib/puppet/util/rdoc.rb +60 -0
  1018. data/vendor/pup410/lib/puppet/util/reference.rb +126 -0
  1019. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/resource_template.rb +0 -0
  1020. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/retry_action.rb +0 -0
  1021. data/vendor/pup410/lib/puppet/util/rubygems.rb +75 -0
  1022. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/run_mode.rb +0 -0
  1023. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/selinux.rb +0 -0
  1024. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/skip_tags.rb +0 -0
  1025. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/splayer.rb +0 -0
  1026. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ssl.rb +0 -0
  1027. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/storage.rb +0 -0
  1028. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/suidmanager.rb +0 -0
  1029. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/symbolic_file_mode.rb +0 -0
  1030. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/tag_set.rb +0 -0
  1031. data/vendor/pup410/lib/puppet/util/tagging.rb +118 -0
  1032. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/terminal.rb +0 -0
  1033. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/user_attr.rb +0 -0
  1034. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/warnings.rb +0 -0
  1035. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watched_file.rb +0 -0
  1036. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher.rb +0 -0
  1037. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher/change_watcher.rb +0 -0
  1038. data/vendor/pup410/lib/puppet/util/watcher/periodic_watcher.rb +37 -0
  1039. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher/timer.rb +0 -0
  1040. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows.rb +0 -0
  1041. data/vendor/pup410/lib/puppet/util/windows/access_control_entry.rb +84 -0
  1042. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/access_control_list.rb +0 -0
  1043. data/vendor/pup410/lib/puppet/util/windows/adsi.rb +548 -0
  1044. data/vendor/pup410/lib/puppet/util/windows/api_types.rb +282 -0
  1045. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/com.rb +0 -0
  1046. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/error.rb +0 -0
  1047. data/vendor/pup410/lib/puppet/util/windows/file.rb +488 -0
  1048. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/principal.rb +0 -0
  1049. data/vendor/pup410/lib/puppet/util/windows/process.rb +497 -0
  1050. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/registry.rb +0 -0
  1051. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/root_certs.rb +0 -0
  1052. data/vendor/pup410/lib/puppet/util/windows/security.rb +857 -0
  1053. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/security_descriptor.rb +0 -0
  1054. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/sid.rb +0 -0
  1055. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/string.rb +0 -0
  1056. data/vendor/pup410/lib/puppet/util/windows/taskscheduler.rb +1276 -0
  1057. data/vendor/pup410/lib/puppet/util/windows/user.rb +309 -0
  1058. data/vendor/pup410/lib/puppet/util/yaml.rb +36 -0
  1059. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor.rb +0 -0
  1060. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/CHANGELOG +0 -0
  1061. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/Gemfile +0 -0
  1062. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/LICENSE +0 -0
  1063. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/PUPPET_README.md +0 -0
  1064. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/README.md +0 -0
  1065. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/Rakefile +0 -0
  1066. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/deep_merge.gemspec +0 -0
  1067. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge.rb +0 -0
  1068. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/core.rb +0 -0
  1069. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/deep_merge_hash.rb +0 -0
  1070. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/rails_compat.rb +0 -0
  1071. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_deep_merge.rb +0 -0
  1072. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_pathspec.rb +0 -0
  1073. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_rgen.rb +0 -0
  1074. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_semantic.rb +0 -0
  1075. data/vendor/pup410/lib/puppet/vendor/load_semantic_puppet.rb +1 -0
  1076. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/CHANGELOG.md +0 -0
  1077. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/LICENSE +0 -0
  1078. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/PUPPET_README.md +0 -0
  1079. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/README.md +0 -0
  1080. data/vendor/pup410/lib/puppet/vendor/pathspec/lib/pathspec.rb +122 -0
  1081. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/gitignorespec.rb +0 -0
  1082. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/regexspec.rb +0 -0
  1083. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/spec.rb +0 -0
  1084. data/vendor/pup410/lib/puppet/vendor/require_vendored.rb +6 -0
  1085. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/CHANGELOG +0 -0
  1086. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/MIT-LICENSE +0 -0
  1087. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/PUPPET_README.md +0 -0
  1088. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/README.rdoc +0 -0
  1089. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/Rakefile +0 -0
  1090. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/TODO +0 -0
  1091. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/anounce.txt +0 -0
  1092. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/design_rationale.txt +0 -0
  1093. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/ea_support.rb +0 -0
  1094. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/id_store.rb +0 -0
  1095. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel.rb +0 -0
  1096. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb +0 -0
  1097. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_generator.rb +0 -0
  1098. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb +0 -0
  1099. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_to_uml13_ea.rb +0 -0
  1100. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel.rb +0 -0
  1101. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel_ext.rb +0 -0
  1102. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/metamodel_generator.rb +0 -0
  1103. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +0 -0
  1104. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/mmgen.rb +0 -0
  1105. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/templates/annotations.tpl +0 -0
  1106. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/templates/metamodel_generator.tpl +0 -0
  1107. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/array_extensions.rb +0 -0
  1108. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore.rb +0 -0
  1109. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_builder_methods.rb +0 -0
  1110. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_ext.rb +0 -0
  1111. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_interface.rb +0 -0
  1112. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_to_ruby.rb +0 -0
  1113. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ruby_to_ecore.rb +0 -0
  1114. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/environment.rb +0 -0
  1115. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/dump_file_cache.rb +0 -0
  1116. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/fragmented_model.rb +0 -0
  1117. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/model_fragment.rb +0 -0
  1118. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_instantiator.rb +0 -0
  1119. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_xml_instantiator.rb +0 -0
  1120. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/default_xml_instantiator.rb +0 -0
  1121. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/ecore_xml_instantiator.rb +0 -0
  1122. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_instantiator.rb +0 -0
  1123. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.rb +0 -0
  1124. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.y +0 -0
  1125. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/nodebased_xml_instantiator.rb +0 -0
  1126. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/qualified_name_resolver.rb +0 -0
  1127. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/reference_resolver.rb +0 -0
  1128. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/resolution_helper.rb +0 -0
  1129. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/xmi11_instantiator.rb +0 -0
  1130. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder.rb +0 -0
  1131. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_extensions.rb +0 -0
  1132. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_runtime.rb +0 -0
  1133. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/constant_order_helper.rb +0 -0
  1134. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/data_types.rb +0 -0
  1135. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/annotation.rb +0 -0
  1136. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/feature.rb +0 -0
  1137. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb +0 -0
  1138. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/module_extension.rb +0 -0
  1139. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder.rb +0 -0
  1140. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/builder_context.rb +0 -0
  1141. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/model_serializer.rb +0 -0
  1142. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/reference_resolver.rb +0 -0
  1143. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/json_serializer.rb +0 -0
  1144. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/opposite_reference_filter.rb +0 -0
  1145. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/qualified_name_provider.rb +0 -0
  1146. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi11_serializer.rb +0 -0
  1147. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi20_serializer.rb +0 -0
  1148. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xml_serializer.rb +0 -0
  1149. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language.rb +0 -0
  1150. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/directory_template_container.rb +0 -0
  1151. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/output_handler.rb +0 -0
  1152. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/template_container.rb +0 -0
  1153. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/template_helper.rb +0 -0
  1154. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/transformer.rb +0 -0
  1155. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/auto_class_creator.rb +0 -0
  1156. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/cached_glob.rb +0 -0
  1157. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/file_cache_map.rb +0 -0
  1158. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/file_change_detector.rb +0 -0
  1159. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/method_delegation.rb +0 -0
  1160. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator.rb +0 -0
  1161. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator_base.rb +0 -0
  1162. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_dumper.rb +0 -0
  1163. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/name_helper.rb +0 -0
  1164. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/pattern_matcher.rb +0 -0
  1165. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/transformers/ecore_to_uml13.rb +0 -0
  1166. data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/transformers/uml13_to_ecore.rb +0 -0
  1167. data/vendor/pup410/lib/puppet/vendor/rgen_patch.rb +132 -0
  1168. data/vendor/pup410/lib/puppet/vendor/semantic/lib/semantic.rb +5 -0
  1169. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet.rb +17 -0
  1170. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency.rb +181 -0
  1171. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/graph.rb +60 -0
  1172. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/graph_node.rb +117 -0
  1173. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/module_release.rb +58 -0
  1174. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb +25 -0
  1175. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/unsatisfiable_graph.rb +31 -0
  1176. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/gem_version.rb +3 -0
  1177. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/locales/config.yaml +21 -0
  1178. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version.rb +195 -0
  1179. data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb +422 -0
  1180. data/vendor/pup410/lib/puppet/version.rb +93 -0
  1181. data/vendor/pup410/lib/puppet_x.rb +14 -0
  1182. data/vendor/pup410/lib/semver.rb +146 -0
  1183. data/vendor/pup410/locales/config.yaml +29 -0
  1184. data/vendor/pup410/locales/puppet.pot +180 -0
  1185. data/vendor/pup410/puppet-4.10.8.gemspec +17 -0
  1186. metadata +1161 -1321
  1187. data/vendor/gems/puppet-4.5.2/Gemfile +0 -92
  1188. data/vendor/gems/puppet-4.5.2/bin/extlookup2hiera +0 -56
  1189. data/vendor/gems/puppet-4.5.2/bin/puppet +0 -9
  1190. data/vendor/gems/puppet-4.5.2/conf/auth.conf +0 -124
  1191. data/vendor/gems/puppet-4.5.2/conf/environment.conf +0 -18
  1192. data/vendor/gems/puppet-4.5.2/conf/fileserver.conf +0 -42
  1193. data/vendor/gems/puppet-4.5.2/conf/puppet.conf +0 -6
  1194. data/vendor/gems/puppet-4.5.2/ext/README.environment +0 -8
  1195. data/vendor/gems/puppet-4.5.2/ext/autotest/Rakefile +0 -8
  1196. data/vendor/gems/puppet-4.5.2/ext/autotest/config +0 -43
  1197. data/vendor/gems/puppet-4.5.2/ext/autotest/readme.rst +0 -16
  1198. data/vendor/gems/puppet-4.5.2/ext/build_defaults.yaml +0 -20
  1199. data/vendor/gems/puppet-4.5.2/ext/cert_inspector +0 -140
  1200. data/vendor/gems/puppet-4.5.2/ext/dbfix.sql +0 -132
  1201. data/vendor/gems/puppet-4.5.2/ext/debian/README.Debian +0 -8
  1202. data/vendor/gems/puppet-4.5.2/ext/debian/README.source +0 -2
  1203. data/vendor/gems/puppet-4.5.2/ext/debian/TODO.Debian +0 -1
  1204. data/vendor/gems/puppet-4.5.2/ext/debian/changelog.erb +0 -1122
  1205. data/vendor/gems/puppet-4.5.2/ext/debian/compat +0 -1
  1206. data/vendor/gems/puppet-4.5.2/ext/debian/control +0 -146
  1207. data/vendor/gems/puppet-4.5.2/ext/debian/copyright +0 -361
  1208. data/vendor/gems/puppet-4.5.2/ext/debian/docs +0 -1
  1209. data/vendor/gems/puppet-4.5.2/ext/debian/fileserver.conf +0 -41
  1210. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.dirs +0 -13
  1211. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.install +0 -4
  1212. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.lintian-overrides +0 -5
  1213. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.manpages +0 -30
  1214. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.postinst +0 -35
  1215. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.postrm +0 -33
  1216. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.dirs +0 -1
  1217. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-install +0 -25
  1218. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-remove +0 -11
  1219. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-startup +0 -9
  1220. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.install +0 -1
  1221. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-testsuite.install +0 -2
  1222. data/vendor/gems/puppet-4.5.2/ext/debian/puppet-testsuite.lintian-overrides +0 -4
  1223. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.default +0 -4
  1224. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.init +0 -113
  1225. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.lintian-overrides +0 -3
  1226. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.logrotate +0 -20
  1227. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.postinst +0 -20
  1228. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.postrm +0 -20
  1229. data/vendor/gems/puppet-4.5.2/ext/debian/puppet.preinst +0 -20
  1230. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.install +0 -2
  1231. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.manpages +0 -2
  1232. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.postinst +0 -6
  1233. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.dirs +0 -4
  1234. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.postinst +0 -162
  1235. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.postrm +0 -61
  1236. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.README.debian +0 -17
  1237. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.default +0 -14
  1238. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.init +0 -137
  1239. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.lintian-overrides +0 -3
  1240. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.postinst +0 -20
  1241. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.postrm +0 -5
  1242. data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.preinst +0 -22
  1243. data/vendor/gems/puppet-4.5.2/ext/debian/rules +0 -132
  1244. data/vendor/gems/puppet-4.5.2/ext/debian/source/format +0 -1
  1245. data/vendor/gems/puppet-4.5.2/ext/debian/source/options +0 -1
  1246. data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.README.Debian +0 -13
  1247. data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.dirs +0 -5
  1248. data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.yaml +0 -7
  1249. data/vendor/gems/puppet-4.5.2/ext/debian/watch +0 -2
  1250. data/vendor/gems/puppet-4.5.2/ext/emacs/puppet-mode-init.el +0 -6
  1251. data/vendor/gems/puppet-4.5.2/ext/emacs/puppet-mode.el +0 -433
  1252. data/vendor/gems/puppet-4.5.2/ext/envpuppet +0 -139
  1253. data/vendor/gems/puppet-4.5.2/ext/envpuppet.bat +0 -14
  1254. data/vendor/gems/puppet-4.5.2/ext/freebsd/puppetd +0 -26
  1255. data/vendor/gems/puppet-4.5.2/ext/freebsd/puppetmasterd +0 -26
  1256. data/vendor/gems/puppet-4.5.2/ext/gentoo/conf.d/puppet +0 -5
  1257. data/vendor/gems/puppet-4.5.2/ext/gentoo/conf.d/puppetmaster +0 -12
  1258. data/vendor/gems/puppet-4.5.2/ext/gentoo/init.d/puppet +0 -38
  1259. data/vendor/gems/puppet-4.5.2/ext/gentoo/init.d/puppetmaster +0 -51
  1260. data/vendor/gems/puppet-4.5.2/ext/gentoo/puppet/fileserver.conf +0 -41
  1261. data/vendor/gems/puppet-4.5.2/ext/ips/puppet-agent +0 -44
  1262. data/vendor/gems/puppet-4.5.2/ext/ips/puppet-master +0 -44
  1263. data/vendor/gems/puppet-4.5.2/ext/ips/puppet.p5m.erb +0 -12
  1264. data/vendor/gems/puppet-4.5.2/ext/ips/puppetagent.xml +0 -42
  1265. data/vendor/gems/puppet-4.5.2/ext/ips/puppetmaster.xml +0 -42
  1266. data/vendor/gems/puppet-4.5.2/ext/ips/rules +0 -19
  1267. data/vendor/gems/puppet-4.5.2/ext/ips/transforms +0 -34
  1268. data/vendor/gems/puppet-4.5.2/ext/ldap/puppet.schema +0 -24
  1269. data/vendor/gems/puppet-4.5.2/ext/logcheck/puppet +0 -23
  1270. data/vendor/gems/puppet-4.5.2/ext/nagios/check_puppet.rb +0 -123
  1271. data/vendor/gems/puppet-4.5.2/ext/osx/file_mapping.yaml +0 -33
  1272. data/vendor/gems/puppet-4.5.2/ext/osx/postflight.erb +0 -109
  1273. data/vendor/gems/puppet-4.5.2/ext/osx/preflight.erb +0 -52
  1274. data/vendor/gems/puppet-4.5.2/ext/osx/prototype.plist.erb +0 -38
  1275. data/vendor/gems/puppet-4.5.2/ext/osx/puppet.plist +0 -30
  1276. data/vendor/gems/puppet-4.5.2/ext/project_data.yaml +0 -59
  1277. data/vendor/gems/puppet-4.5.2/ext/puppet-test +0 -500
  1278. data/vendor/gems/puppet-4.5.2/ext/puppetlisten/puppetlisten.rb +0 -77
  1279. data/vendor/gems/puppet-4.5.2/ext/puppetlisten/puppetrun.rb +0 -38
  1280. data/vendor/gems/puppet-4.5.2/ext/pure_ruby_dsl/dsl_test.rb +0 -7
  1281. data/vendor/gems/puppet-4.5.2/ext/rack/config.ru +0 -44
  1282. data/vendor/gems/puppet-4.5.2/ext/rack/example-passenger-vhost.conf +0 -57
  1283. data/vendor/gems/puppet-4.5.2/ext/redhat/client.init +0 -169
  1284. data/vendor/gems/puppet-4.5.2/ext/redhat/client.sysconfig +0 -2
  1285. data/vendor/gems/puppet-4.5.2/ext/redhat/fileserver.conf +0 -41
  1286. data/vendor/gems/puppet-4.5.2/ext/redhat/logrotate +0 -21
  1287. data/vendor/gems/puppet-4.5.2/ext/redhat/puppet.spec.erb +0 -849
  1288. data/vendor/gems/puppet-4.5.2/ext/redhat/server.init +0 -128
  1289. data/vendor/gems/puppet-4.5.2/ext/redhat/server.sysconfig +0 -13
  1290. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/classes/databases +0 -2
  1291. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/classes/webservers +0 -2
  1292. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/environment/development +0 -2
  1293. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/prod +0 -1
  1294. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/qa +0 -3
  1295. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/sandbox +0 -1
  1296. data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/regexp_nodes.rb +0 -271
  1297. data/vendor/gems/puppet-4.5.2/ext/solaris/pkginfo +0 -6
  1298. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppet +0 -44
  1299. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppet.xml +0 -44
  1300. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppetd.xml +0 -77
  1301. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppetmasterd.xml +0 -77
  1302. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetd +0 -64
  1303. data/vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd +0 -60
  1304. data/vendor/gems/puppet-4.5.2/ext/suse/client.init +0 -141
  1305. data/vendor/gems/puppet-4.5.2/ext/suse/puppet.spec +0 -310
  1306. data/vendor/gems/puppet-4.5.2/ext/suse/server.init +0 -173
  1307. data/vendor/gems/puppet-4.5.2/ext/systemd/puppet.service +0 -15
  1308. data/vendor/gems/puppet-4.5.2/ext/upload_facts.rb +0 -119
  1309. data/vendor/gems/puppet-4.5.2/ext/vim/README +0 -3
  1310. data/vendor/gems/puppet-4.5.2/ext/vim/ftdetect/puppet.vim +0 -2
  1311. data/vendor/gems/puppet-4.5.2/ext/vim/ftplugin/puppet.vim +0 -94
  1312. data/vendor/gems/puppet-4.5.2/ext/vim/indent/puppet.vim +0 -76
  1313. data/vendor/gems/puppet-4.5.2/ext/vim/syntax/puppet.vim +0 -115
  1314. data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/Rakefile +0 -32
  1315. data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/puppetres.dll +0 -0
  1316. data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/puppetres.mc +0 -18
  1317. data/vendor/gems/puppet-4.5.2/ext/windows/puppet_interactive.bat +0 -6
  1318. data/vendor/gems/puppet-4.5.2/ext/windows/puppet_shell.bat +0 -9
  1319. data/vendor/gems/puppet-4.5.2/ext/windows/run_puppet_interactive.bat +0 -9
  1320. data/vendor/gems/puppet-4.5.2/ext/windows/service/daemon.bat +0 -6
  1321. data/vendor/gems/puppet-4.5.2/ext/windows/service/daemon.rb +0 -192
  1322. data/vendor/gems/puppet-4.5.2/ext/yaml_nodes.rb +0 -105
  1323. data/vendor/gems/puppet-4.5.2/install.rb +0 -477
  1324. data/vendor/gems/puppet-4.5.2/lib/hiera/puppet_function.rb +0 -82
  1325. data/vendor/gems/puppet-4.5.2/lib/hiera/scope.rb +0 -63
  1326. data/vendor/gems/puppet-4.5.2/lib/puppet.rb +0 -286
  1327. data/vendor/gems/puppet-4.5.2/lib/puppet/agent.rb +0 -102
  1328. data/vendor/gems/puppet-4.5.2/lib/puppet/agent/disabler.rb +0 -53
  1329. data/vendor/gems/puppet-4.5.2/lib/puppet/agent/locker.rb +0 -52
  1330. data/vendor/gems/puppet-4.5.2/lib/puppet/application.rb +0 -462
  1331. data/vendor/gems/puppet-4.5.2/lib/puppet/application/agent.rb +0 -456
  1332. data/vendor/gems/puppet-4.5.2/lib/puppet/application/apply.rb +0 -352
  1333. data/vendor/gems/puppet-4.5.2/lib/puppet/application/ca.rb +0 -11
  1334. data/vendor/gems/puppet-4.5.2/lib/puppet/application/catalog.rb +0 -4
  1335. data/vendor/gems/puppet-4.5.2/lib/puppet/application/cert.rb +0 -297
  1336. data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate.rb +0 -17
  1337. data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate_request.rb +0 -7
  1338. data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate_revocation_list.rb +0 -7
  1339. data/vendor/gems/puppet-4.5.2/lib/puppet/application/config.rb +0 -4
  1340. data/vendor/gems/puppet-4.5.2/lib/puppet/application/describe.rb +0 -254
  1341. data/vendor/gems/puppet-4.5.2/lib/puppet/application/device.rb +0 -256
  1342. data/vendor/gems/puppet-4.5.2/lib/puppet/application/doc.rb +0 -226
  1343. data/vendor/gems/puppet-4.5.2/lib/puppet/application/epp.rb +0 -5
  1344. data/vendor/gems/puppet-4.5.2/lib/puppet/application/face_base.rb +0 -269
  1345. data/vendor/gems/puppet-4.5.2/lib/puppet/application/facts.rb +0 -4
  1346. data/vendor/gems/puppet-4.5.2/lib/puppet/application/file.rb +0 -4
  1347. data/vendor/gems/puppet-4.5.2/lib/puppet/application/filebucket.rb +0 -258
  1348. data/vendor/gems/puppet-4.5.2/lib/puppet/application/help.rb +0 -4
  1349. data/vendor/gems/puppet-4.5.2/lib/puppet/application/indirection_base.rb +0 -4
  1350. data/vendor/gems/puppet-4.5.2/lib/puppet/application/inspect.rb +0 -179
  1351. data/vendor/gems/puppet-4.5.2/lib/puppet/application/key.rb +0 -4
  1352. data/vendor/gems/puppet-4.5.2/lib/puppet/application/lookup.rb +0 -342
  1353. data/vendor/gems/puppet-4.5.2/lib/puppet/application/man.rb +0 -4
  1354. data/vendor/gems/puppet-4.5.2/lib/puppet/application/master.rb +0 -321
  1355. data/vendor/gems/puppet-4.5.2/lib/puppet/application/module.rb +0 -4
  1356. data/vendor/gems/puppet-4.5.2/lib/puppet/application/node.rb +0 -4
  1357. data/vendor/gems/puppet-4.5.2/lib/puppet/application/parser.rb +0 -5
  1358. data/vendor/gems/puppet-4.5.2/lib/puppet/application/plugin.rb +0 -3
  1359. data/vendor/gems/puppet-4.5.2/lib/puppet/application/report.rb +0 -4
  1360. data/vendor/gems/puppet-4.5.2/lib/puppet/application/resource.rb +0 -224
  1361. data/vendor/gems/puppet-4.5.2/lib/puppet/application/resource_type.rb +0 -7
  1362. data/vendor/gems/puppet-4.5.2/lib/puppet/application/status.rb +0 -4
  1363. data/vendor/gems/puppet-4.5.2/lib/puppet/application_support.rb +0 -57
  1364. data/vendor/gems/puppet-4.5.2/lib/puppet/configurer.rb +0 -389
  1365. data/vendor/gems/puppet-4.5.2/lib/puppet/configurer/fact_handler.rb +0 -37
  1366. data/vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb +0 -27
  1367. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers.rb +0 -30
  1368. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/data_adapter.rb +0 -30
  1369. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/data_function_support.rb +0 -24
  1370. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/function_env_data_provider.rb +0 -18
  1371. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/function_module_data_provider.rb +0 -17
  1372. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_config.rb +0 -129
  1373. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_env_data_provider.rb +0 -18
  1374. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_interpolate.rb +0 -19
  1375. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_module_data_provider.rb +0 -23
  1376. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_support.rb +0 -37
  1377. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/json_data_provider_factory.rb +0 -24
  1378. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/lookup_adapter.rb +0 -254
  1379. data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/yaml_data_provider_factory.rb +0 -26
  1380. data/vendor/gems/puppet-4.5.2/lib/puppet/defaults.rb +0 -1902
  1381. data/vendor/gems/puppet-4.5.2/lib/puppet/environments.rb +0 -487
  1382. data/vendor/gems/puppet-4.5.2/lib/puppet/error.rb +0 -100
  1383. data/vendor/gems/puppet-4.5.2/lib/puppet/external/dot.rb +0 -326
  1384. data/vendor/gems/puppet-4.5.2/lib/puppet/face/ca.rb +0 -254
  1385. data/vendor/gems/puppet-4.5.2/lib/puppet/face/catalog.rb +0 -130
  1386. data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate.rb +0 -159
  1387. data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate_request.rb +0 -54
  1388. data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate_revocation_list.rb +0 -54
  1389. data/vendor/gems/puppet-4.5.2/lib/puppet/face/config.rb +0 -119
  1390. data/vendor/gems/puppet-4.5.2/lib/puppet/face/epp.rb +0 -479
  1391. data/vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb +0 -38
  1392. data/vendor/gems/puppet-4.5.2/lib/puppet/face/file.rb +0 -47
  1393. data/vendor/gems/puppet-4.5.2/lib/puppet/face/help.rb +0 -193
  1394. data/vendor/gems/puppet-4.5.2/lib/puppet/face/help/face.erb +0 -111
  1395. data/vendor/gems/puppet-4.5.2/lib/puppet/face/key.rb +0 -15
  1396. data/vendor/gems/puppet-4.5.2/lib/puppet/face/man.rb +0 -99
  1397. data/vendor/gems/puppet-4.5.2/lib/puppet/face/module.rb +0 -19
  1398. data/vendor/gems/puppet-4.5.2/lib/puppet/face/module/generate.rb +0 -251
  1399. data/vendor/gems/puppet-4.5.2/lib/puppet/face/module/install.rb +0 -145
  1400. data/vendor/gems/puppet-4.5.2/lib/puppet/face/node.rb +0 -42
  1401. data/vendor/gems/puppet-4.5.2/lib/puppet/face/parser.rb +0 -161
  1402. data/vendor/gems/puppet-4.5.2/lib/puppet/face/plugin.rb +0 -58
  1403. data/vendor/gems/puppet-4.5.2/lib/puppet/face/report.rb +0 -54
  1404. data/vendor/gems/puppet-4.5.2/lib/puppet/face/resource.rb +0 -53
  1405. data/vendor/gems/puppet-4.5.2/lib/puppet/face/resource_type.rb +0 -84
  1406. data/vendor/gems/puppet-4.5.2/lib/puppet/face/status.rb +0 -48
  1407. data/vendor/gems/puppet-4.5.2/lib/puppet/feature/base.rb +0 -87
  1408. data/vendor/gems/puppet-4.5.2/lib/puppet/feature/external_facts.rb +0 -5
  1409. data/vendor/gems/puppet-4.5.2/lib/puppet/file_serving/metadata.rb +0 -163
  1410. data/vendor/gems/puppet-4.5.2/lib/puppet/file_system.rb +0 -376
  1411. data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/file_impl.rb +0 -149
  1412. data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/memory_impl.rb +0 -82
  1413. data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/path_pattern.rb +0 -97
  1414. data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/windows.rb +0 -103
  1415. data/vendor/gems/puppet-4.5.2/lib/puppet/forge.rb +0 -226
  1416. data/vendor/gems/puppet-4.5.2/lib/puppet/forge/cache.rb +0 -59
  1417. data/vendor/gems/puppet-4.5.2/lib/puppet/forge/repository.rb +0 -155
  1418. data/vendor/gems/puppet-4.5.2/lib/puppet/functions.rb +0 -732
  1419. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/assert_type.rb +0 -95
  1420. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/defined.rb +0 -161
  1421. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/dig.rb +0 -39
  1422. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/epp.rb +0 -45
  1423. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera.rb +0 -81
  1424. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_array.rb +0 -74
  1425. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_hash.rb +0 -84
  1426. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_include.rb +0 -90
  1427. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/lest.rb +0 -53
  1428. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/new.rb +0 -502
  1429. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/regsubst.rb +0 -80
  1430. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/reverse_each.rb +0 -82
  1431. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/scanf.rb +0 -44
  1432. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/step.rb +0 -88
  1433. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/then.rb +0 -74
  1434. data/vendor/gems/puppet-4.5.2/lib/puppet/functions/type.rb +0 -70
  1435. data/vendor/gems/puppet-4.5.2/lib/puppet/graph/simple_graph.rb +0 -562
  1436. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/catalog/compiler.rb +0 -367
  1437. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/catalog/static_compiler.rb +0 -229
  1438. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/face.rb +0 -148
  1439. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/facts/facter.rb +0 -90
  1440. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/file_bucket_file/file.rb +0 -199
  1441. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/key/ca.rb +0 -16
  1442. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/key/file.rb +0 -49
  1443. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/request.rb +0 -256
  1444. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/rest.rb +0 -260
  1445. data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/ssl_file.rb +0 -180
  1446. data/vendor/gems/puppet-4.5.2/lib/puppet/info_service/class_information_service.rb +0 -112
  1447. data/vendor/gems/puppet-4.5.2/lib/puppet/interface.rb +0 -228
  1448. data/vendor/gems/puppet-4.5.2/lib/puppet/interface/documentation.rb +0 -342
  1449. data/vendor/gems/puppet-4.5.2/lib/puppet/interface/face_collection.rb +0 -125
  1450. data/vendor/gems/puppet-4.5.2/lib/puppet/loaders.rb +0 -23
  1451. data/vendor/gems/puppet-4.5.2/lib/puppet/metatype/manager.rb +0 -195
  1452. data/vendor/gems/puppet-4.5.2/lib/puppet/module.rb +0 -355
  1453. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool.rb +0 -192
  1454. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/builder.rb +0 -148
  1455. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/installer.rb +0 -351
  1456. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/upgrader.rb +0 -277
  1457. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/checksums.rb +0 -49
  1458. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/errors/installer.rb +0 -95
  1459. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/installed_modules.rb +0 -96
  1460. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/local_tarball.rb +0 -90
  1461. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/metadata.rb +0 -221
  1462. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +0 -12
  1463. data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb +0 -17
  1464. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/api/indirected_routes.rb +0 -248
  1465. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/api/master/v3.rb +0 -28
  1466. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/compression.rb +0 -116
  1467. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/connection.rb +0 -233
  1468. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/error.rb +0 -69
  1469. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/handler.rb +0 -178
  1470. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/rack/rest.rb +0 -147
  1471. data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/webrick.rb +0 -124
  1472. data/vendor/gems/puppet-4.5.2/lib/puppet/network/rights.rb +0 -219
  1473. data/vendor/gems/puppet-4.5.2/lib/puppet/node/environment.rb +0 -540
  1474. data/vendor/gems/puppet-4.5.2/lib/puppet/node/facts.rb +0 -133
  1475. data/vendor/gems/puppet-4.5.2/lib/puppet/parameter.rb +0 -572
  1476. data/vendor/gems/puppet-4.5.2/lib/puppet/parameter/boolean.rb +0 -15
  1477. data/vendor/gems/puppet-4.5.2/lib/puppet/parameter/value.rb +0 -91
  1478. data/vendor/gems/puppet-4.5.2/lib/puppet/parser.rb +0 -20
  1479. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast.rb +0 -60
  1480. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/leaf.rb +0 -75
  1481. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/pops_bridge.rb +0 -304
  1482. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resource.rb +0 -61
  1483. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resource_instance.rb +0 -6
  1484. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resourceparam.rb +0 -26
  1485. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/compiler.rb +0 -895
  1486. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/compiler/catalog_validator/relationship_validator.rb +0 -60
  1487. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/environment_compiler.rb +0 -164
  1488. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions.rb +0 -272
  1489. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/assert_type.rb +0 -60
  1490. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/contain.rb +0 -38
  1491. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/create_resources.rb +0 -83
  1492. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/defined.rb +0 -131
  1493. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/each.rb +0 -104
  1494. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/epp.rb +0 -36
  1495. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/filter.rb +0 -78
  1496. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera.rb +0 -89
  1497. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_array.rb +0 -78
  1498. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_hash.rb +0 -88
  1499. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_include.rb +0 -88
  1500. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/include.rb +0 -37
  1501. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/inline_epp.rb +0 -51
  1502. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/lookup.rb +0 -130
  1503. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/map.rb +0 -76
  1504. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/match.rb +0 -43
  1505. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/reduce.rb +0 -106
  1506. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/regsubst.rb +0 -60
  1507. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/require.rb +0 -63
  1508. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/scanf.rb +0 -33
  1509. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/slice.rb +0 -39
  1510. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/split.rb +0 -28
  1511. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/with.rb +0 -28
  1512. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/resource.rb +0 -367
  1513. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/scope.rb +0 -1082
  1514. data/vendor/gems/puppet-4.5.2/lib/puppet/parser/type_loader.rb +0 -149
  1515. data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/configuration.rb +0 -69
  1516. data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers.rb +0 -42
  1517. data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers/data_provider.rb +0 -336
  1518. data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers/registry.rb +0 -84
  1519. data/vendor/gems/puppet-4.5.2/lib/puppet/pops.rb +0 -136
  1520. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/adaptable.rb +0 -204
  1521. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/adapters.rb +0 -193
  1522. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/binder/producers.rb +0 -831
  1523. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +0 -34
  1524. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/access_operator.rb +0 -639
  1525. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/callable_signature.rb +0 -100
  1526. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/closure.rb +0 -270
  1527. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collector_transformer.rb +0 -229
  1528. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +0 -29
  1529. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collectors/exported_collector.rb +0 -69
  1530. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/compare_operator.rb +0 -229
  1531. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/evaluator_impl.rb +0 -1218
  1532. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/external_syntax_support.rb +0 -52
  1533. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/json_strict_literal_evaluator.rb +0 -85
  1534. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/literal_evaluator.rb +0 -88
  1535. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/relationship_operator.rb +0 -169
  1536. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/runtime3_converter.rb +0 -192
  1537. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/runtime3_support.rb +0 -537
  1538. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/dispatch.rb +0 -85
  1539. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/dispatcher.rb +0 -76
  1540. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/function.rb +0 -113
  1541. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/issue_reporter.rb +0 -115
  1542. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/issues.rb +0 -729
  1543. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/label_provider.rb +0 -76
  1544. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/base_loader.rb +0 -143
  1545. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/loader.rb +0 -204
  1546. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/loader_paths.rb +0 -194
  1547. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/module_loaders.rb +0 -273
  1548. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/null_loader.rb +0 -44
  1549. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/puppet_function_instantiator.rb +0 -83
  1550. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/ruby_function_instantiator.rb +0 -47
  1551. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/runtime3_type_loader.rb +0 -57
  1552. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/static_loader.rb +0 -166
  1553. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/type_definition_instantiator.rb +0 -77
  1554. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loaders.rb +0 -352
  1555. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup.rb +0 -79
  1556. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/explainer.rb +0 -509
  1557. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/interpolation.rb +0 -115
  1558. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/invocation.rb +0 -119
  1559. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/sub_lookup.rb +0 -86
  1560. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/merge_strategy.rb +0 -338
  1561. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/migration/migration_checker.rb +0 -54
  1562. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/factory.rb +0 -1139
  1563. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_label_provider.rb +0 -125
  1564. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_meta.rb +0 -627
  1565. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_tree_dumper.rb +0 -437
  1566. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/egrammar.ra +0 -866
  1567. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/eparser.rb +0 -3157
  1568. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/evaluating_parser.rb +0 -165
  1569. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/heredoc_support.rb +0 -144
  1570. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/interpolation_support.rb +0 -237
  1571. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/lexer2.rb +0 -768
  1572. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/locator.rb +0 -292
  1573. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/parser_support.rb +0 -254
  1574. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/slurp_support.rb +0 -119
  1575. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/patterns.rb +0 -47
  1576. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/pcore.rb +0 -30
  1577. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/semantic_error.rb +0 -17
  1578. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/implementation_registry.rb +0 -146
  1579. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_object_type.rb +0 -846
  1580. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_runtime_type.rb +0 -102
  1581. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_sem_ver_range_type.rb +0 -164
  1582. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_sem_ver_type.rb +0 -113
  1583. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/puppet_object.rb +0 -21
  1584. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/recursion_guard.rb +0 -92
  1585. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/ruby_generator.rb +0 -258
  1586. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/string_converter.rb +0 -922
  1587. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_asserter.rb +0 -47
  1588. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_calculator.rb +0 -807
  1589. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_factory.rb +0 -491
  1590. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_formatter.rb +0 -569
  1591. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_mismatch_describer.rb +0 -1039
  1592. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_parser.rb +0 -525
  1593. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/types.rb +0 -2855
  1594. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation.rb +0 -462
  1595. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation/checker4_0.rb +0 -956
  1596. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation/validator_factory_4_0.rb +0 -37
  1597. data/vendor/gems/puppet-4.5.2/lib/puppet/pops/visitor.rb +0 -94
  1598. data/vendor/gems/puppet-4.5.2/lib/puppet/property.rb +0 -537
  1599. data/vendor/gems/puppet-4.5.2/lib/puppet/provider.rb +0 -604
  1600. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/aixobject.rb +0 -392
  1601. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/exec.rb +0 -96
  1602. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/group/aix.rb +0 -141
  1603. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/group/windows_adsi.rb +0 -106
  1604. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/macauthorization/macauthorization.rb +0 -298
  1605. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mailalias/aliases.rb +0 -50
  1606. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mcx/mcxcontent.rb +0 -172
  1607. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mount/parsed.rb +0 -280
  1608. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/nameservice.rb +0 -292
  1609. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/nameservice/directoryservice.rb +0 -499
  1610. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/aix.rb +0 -152
  1611. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/appdmg.rb +0 -110
  1612. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/apple.rb +0 -47
  1613. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/dnf.rb +0 -41
  1614. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/gem.rb +0 -169
  1615. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/nim.rb +0 -280
  1616. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pacman.rb +0 -267
  1617. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pip.rb +0 -178
  1618. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pip3.rb +0 -20
  1619. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkg.rb +0 -245
  1620. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgdmg.rb +0 -152
  1621. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgin.rb +0 -87
  1622. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgng.rb +0 -143
  1623. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgutil.rb +0 -186
  1624. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/portage.rb +0 -153
  1625. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/rpm.rb +0 -402
  1626. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/sun.rb +0 -132
  1627. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/yum.rb +0 -241
  1628. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/parsedfile.rb +0 -459
  1629. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +0 -583
  1630. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/selmodule/semodule.rb +0 -134
  1631. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/base.rb +0 -121
  1632. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/bsd.rb +0 -51
  1633. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/daemontools.rb +0 -194
  1634. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/debian.rb +0 -74
  1635. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/init.rb +0 -191
  1636. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/launchd.rb +0 -331
  1637. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/runit.rb +0 -111
  1638. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/smf.rb +0 -160
  1639. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/src.rb +0 -147
  1640. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/systemd.rb +0 -149
  1641. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/ssh_authorized_key/parsed.rb +0 -105
  1642. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/aix.rb +0 -369
  1643. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/directoryservice.rb +0 -630
  1644. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/hpux.rb +0 -95
  1645. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/user_role_add.rb +0 -212
  1646. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/useradd.rb +0 -231
  1647. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/windows_adsi.rb +0 -142
  1648. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/yumrepo/inifile.rb +0 -304
  1649. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zfs/zfs.rb +0 -84
  1650. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zone/solaris.rb +0 -361
  1651. data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zpool/zpool.rb +0 -125
  1652. data/vendor/gems/puppet-4.5.2/lib/puppet/reference/configuration.rb +0 -80
  1653. data/vendor/gems/puppet-4.5.2/lib/puppet/reference/indirection.rb +0 -71
  1654. data/vendor/gems/puppet-4.5.2/lib/puppet/reference/type.rb +0 -114
  1655. data/vendor/gems/puppet-4.5.2/lib/puppet/reports/http.rb +0 -31
  1656. data/vendor/gems/puppet-4.5.2/lib/puppet/resource.rb +0 -623
  1657. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/capability_finder.rb +0 -102
  1658. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/catalog.rb +0 -652
  1659. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/status.rb +0 -223
  1660. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type.rb +0 -562
  1661. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type_collection.rb +0 -256
  1662. data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type_collection_helper.rb +0 -7
  1663. data/vendor/gems/puppet-4.5.2/lib/puppet/settings.rb +0 -1431
  1664. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/config_file.rb +0 -142
  1665. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/directory_setting.rb +0 -12
  1666. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/environment_conf.rb +0 -192
  1667. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/file_or_directory_setting.rb +0 -34
  1668. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/file_setting.rb +0 -235
  1669. data/vendor/gems/puppet-4.5.2/lib/puppet/settings/ini_file.rb +0 -171
  1670. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/base.rb +0 -140
  1671. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate.rb +0 -95
  1672. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_authority.rb +0 -517
  1673. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_authority/interface.rb +0 -184
  1674. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_request.rb +0 -327
  1675. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/configuration.rb +0 -58
  1676. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/host.rb +0 -365
  1677. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/inventory.rb +0 -48
  1678. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/key.rb +0 -59
  1679. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/oids.rb +0 -177
  1680. data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/validator/default_validator.rb +0 -174
  1681. data/vendor/gems/puppet-4.5.2/lib/puppet/syntax_checkers/json.rb +0 -37
  1682. data/vendor/gems/puppet-4.5.2/lib/puppet/test/test_helper.rb +0 -253
  1683. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction.rb +0 -381
  1684. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/additional_resource_generator.rb +0 -207
  1685. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/event.rb +0 -106
  1686. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/event_manager.rb +0 -167
  1687. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/report.rb +0 -408
  1688. data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/resource_harness.rb +0 -236
  1689. data/vendor/gems/puppet-4.5.2/lib/puppet/type.rb +0 -2615
  1690. data/vendor/gems/puppet-4.5.2/lib/puppet/type/augeas.rb +0 -211
  1691. data/vendor/gems/puppet-4.5.2/lib/puppet/type/component.rb +0 -77
  1692. data/vendor/gems/puppet-4.5.2/lib/puppet/type/cron.rb +0 -492
  1693. data/vendor/gems/puppet-4.5.2/lib/puppet/type/exec.rb +0 -601
  1694. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file.rb +0 -995
  1695. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/checksum.rb +0 -43
  1696. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/content.rb +0 -160
  1697. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/data_sync.rb +0 -84
  1698. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/mode.rb +0 -173
  1699. data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/source.rb +0 -346
  1700. data/vendor/gems/puppet-4.5.2/lib/puppet/type/group.rb +0 -200
  1701. data/vendor/gems/puppet-4.5.2/lib/puppet/type/host.rb +0 -95
  1702. data/vendor/gems/puppet-4.5.2/lib/puppet/type/mount.rb +0 -314
  1703. data/vendor/gems/puppet-4.5.2/lib/puppet/type/notify.rb +0 -44
  1704. data/vendor/gems/puppet-4.5.2/lib/puppet/type/package.rb +0 -571
  1705. data/vendor/gems/puppet-4.5.2/lib/puppet/type/resources.rb +0 -180
  1706. data/vendor/gems/puppet-4.5.2/lib/puppet/type/scheduled_task.rb +0 -184
  1707. data/vendor/gems/puppet-4.5.2/lib/puppet/type/ssh_authorized_key.rb +0 -153
  1708. data/vendor/gems/puppet-4.5.2/lib/puppet/type/tidy.rb +0 -329
  1709. data/vendor/gems/puppet-4.5.2/lib/puppet/type/user.rb +0 -747
  1710. data/vendor/gems/puppet-4.5.2/lib/puppet/type/yumrepo.rb +0 -409
  1711. data/vendor/gems/puppet-4.5.2/lib/puppet/type/zone.rb +0 -382
  1712. data/vendor/gems/puppet-4.5.2/lib/puppet/util.rb +0 -579
  1713. data/vendor/gems/puppet-4.5.2/lib/puppet/util/classgen.rb +0 -228
  1714. data/vendor/gems/puppet-4.5.2/lib/puppet/util/command_line.rb +0 -181
  1715. data/vendor/gems/puppet-4.5.2/lib/puppet/util/command_line/trollop.rb +0 -824
  1716. data/vendor/gems/puppet-4.5.2/lib/puppet/util/execution.rb +0 -356
  1717. data/vendor/gems/puppet-4.5.2/lib/puppet/util/filetype.rb +0 -303
  1718. data/vendor/gems/puppet-4.5.2/lib/puppet/util/http_proxy.rb +0 -197
  1719. data/vendor/gems/puppet-4.5.2/lib/puppet/util/inifile.rb +0 -341
  1720. data/vendor/gems/puppet-4.5.2/lib/puppet/util/instance_loader.rb +0 -81
  1721. data/vendor/gems/puppet-4.5.2/lib/puppet/util/log.rb +0 -386
  1722. data/vendor/gems/puppet-4.5.2/lib/puppet/util/logging.rb +0 -310
  1723. data/vendor/gems/puppet-4.5.2/lib/puppet/util/monkey_patches.rb +0 -145
  1724. data/vendor/gems/puppet-4.5.2/lib/puppet/util/multi_match.rb +0 -51
  1725. data/vendor/gems/puppet-4.5.2/lib/puppet/util/network_device/config.rb +0 -98
  1726. data/vendor/gems/puppet-4.5.2/lib/puppet/util/plist.rb +0 -130
  1727. data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler.rb +0 -53
  1728. data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler/aggregate.rb +0 -85
  1729. data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler/around_profiler.rb +0 -67
  1730. data/vendor/gems/puppet-4.5.2/lib/puppet/util/psych_support.rb +0 -38
  1731. data/vendor/gems/puppet-4.5.2/lib/puppet/util/rdoc.rb +0 -60
  1732. data/vendor/gems/puppet-4.5.2/lib/puppet/util/reference.rb +0 -124
  1733. data/vendor/gems/puppet-4.5.2/lib/puppet/util/rubygems.rb +0 -75
  1734. data/vendor/gems/puppet-4.5.2/lib/puppet/util/tagging.rb +0 -118
  1735. data/vendor/gems/puppet-4.5.2/lib/puppet/util/watcher/periodic_watcher.rb +0 -37
  1736. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/access_control_entry.rb +0 -84
  1737. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/adsi.rb +0 -523
  1738. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/api_types.rb +0 -275
  1739. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/file.rb +0 -425
  1740. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/process.rb +0 -479
  1741. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/security.rb +0 -857
  1742. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/taskscheduler.rb +0 -1220
  1743. data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/user.rb +0 -291
  1744. data/vendor/gems/puppet-4.5.2/lib/puppet/util/yaml.rb +0 -24
  1745. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/deep_merge/test/test_deep_merge.rb +0 -608
  1746. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/pathspec/lib/pathspec.rb +0 -121
  1747. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/require_vendored.rb +0 -7
  1748. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/array_extensions_test.rb +0 -64
  1749. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_instantiator_test.rb +0 -35
  1750. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_serializer_test.rb +0 -23
  1751. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ecore_self_test.rb +0 -54
  1752. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/environment_test.rb +0 -90
  1753. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/json_test.rb +0 -171
  1754. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_builder_test.rb +0 -1482
  1755. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_from_ecore_test.rb +0 -57
  1756. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_order_test.rb +0 -131
  1757. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test.rb +0 -98
  1758. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/TestModel.rb +0 -70
  1759. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel.ecore +0 -42
  1760. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel_from_ecore.rb +0 -44
  1761. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/using_builtin_types.ecore +0 -9
  1762. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/method_delegation_test.rb +0 -178
  1763. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/builder_context_test.rb +0 -59
  1764. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/builder_test.rb +0 -242
  1765. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/ecore_original.rb +0 -163
  1766. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/ecore_original_regenerated.rb +0 -163
  1767. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/reference_resolver_test.rb +0 -156
  1768. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/serializer_test.rb +0 -94
  1769. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb +0 -42
  1770. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/test_model/statemachine1.rb +0 -23
  1771. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder_test.rb +0 -6
  1772. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_fragment_test.rb +0 -30
  1773. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/output_handler_test.rb +0 -58
  1774. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/qualified_name_provider_test.rb +0 -48
  1775. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/qualified_name_resolver_test.rb +0 -102
  1776. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/reference_resolver_test.rb +0 -117
  1777. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/rgen_test.rb +0 -26
  1778. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test.rb +0 -163
  1779. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result1.txt +0 -29
  1780. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result2.txt +0 -9
  1781. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result3.txt +0 -4
  1782. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestDefaultIndent.out +0 -1
  1783. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestTabIndent.out +0 -1
  1784. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/a.tpl +0 -12
  1785. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/b.tpl +0 -5
  1786. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/code/array.tpl +0 -11
  1787. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/content/author.tpl +0 -7
  1788. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/content/chapter.tpl +0 -5
  1789. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/local.tpl +0 -8
  1790. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/test.tpl +0 -8
  1791. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/evaluate_test/test.tpl +0 -7
  1792. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/indent_string_test.tpl +0 -12
  1793. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/index/c/cmod.tpl +0 -1
  1794. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/index/chapter.tpl +0 -3
  1795. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_backslash_r_test.tpl +0 -5
  1796. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/no_indent.tpl +0 -3
  1797. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/sub1/no_indent.tpl +0 -3
  1798. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test.tpl +0 -24
  1799. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test2.tpl +0 -13
  1800. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test3.tpl +0 -10
  1801. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/null_context_test.tpl +0 -17
  1802. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl +0 -31
  1803. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1.tpl +0 -9
  1804. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1/sub1.tpl +0 -3
  1805. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/test.tpl +0 -4
  1806. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/testout.txt +0 -29
  1807. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/class_model_checker.rb +0 -119
  1808. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.eap +0 -0
  1809. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.xml +0 -1029
  1810. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel_partial.xml +0 -317
  1811. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ecore_model_checker.rb +0 -101
  1812. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/manual_testmodel.xml +0 -22
  1813. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/object_model_checker.rb +0 -67
  1814. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/transformer_test.rb +0 -254
  1815. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util/file_cache_map_test.rb +0 -99
  1816. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util/pattern_matcher_test.rb +0 -97
  1817. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util_test.rb +0 -5
  1818. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test.rb +0 -160
  1819. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_ecore_model_checker.rb +0 -94
  1820. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_ecore_instantiator.rb +0 -53
  1821. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_metamodel.rb +0 -49
  1822. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_to_ecore.rb +0 -75
  1823. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen_patch.rb +0 -132
  1824. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/Gemfile +0 -20
  1825. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/PUPPET_README.md +0 -6
  1826. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/Rakefile +0 -69
  1827. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic.rb +0 -7
  1828. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency.rb +0 -181
  1829. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/graph.rb +0 -60
  1830. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/graph_node.rb +0 -117
  1831. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/module_release.rb +0 -60
  1832. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/source.rb +0 -25
  1833. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/unsatisfiable_graph.rb +0 -31
  1834. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/version.rb +0 -168
  1835. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/version_range.rb +0 -424
  1836. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/spec_helper.rb +0 -24
  1837. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_node_spec.rb +0 -141
  1838. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_spec.rb +0 -162
  1839. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/module_release_spec.rb +0 -143
  1840. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/source_spec.rb +0 -5
  1841. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/unsatisfiable_graph_spec.rb +0 -44
  1842. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency_spec.rb +0 -383
  1843. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/version_range_spec.rb +0 -307
  1844. data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/version_spec.rb +0 -608
  1845. data/vendor/gems/puppet-4.5.2/lib/puppet/version.rb +0 -89
  1846. data/vendor/gems/puppet-4.5.2/lib/puppet_x.rb +0 -8
  1847. data/vendor/gems/puppet-4.5.2/lib/semver.rb +0 -139
  1848. data/vendor/gems/puppet-4.5.2/puppet-4.5.2.gemspec +0 -104
@@ -1,2855 +0,0 @@
1
- require_relative 'iterable'
2
- require_relative 'enumeration'
3
- require_relative 'recursion_guard'
4
- require_relative 'type_acceptor'
5
- require_relative 'type_asserter'
6
- require_relative 'type_assertion_error'
7
- require_relative 'type_conversion_error'
8
- require_relative 'type_formatter'
9
- require_relative 'type_calculator'
10
- require_relative 'type_factory'
11
- require_relative 'type_parser'
12
- require_relative 'class_loader'
13
- require_relative 'type_mismatch_describer'
14
-
15
- module Puppet::Pops
16
- module Types
17
-
18
- EMPTY_HASH = {}.freeze
19
- # The Types model is a model of Puppet Language types.
20
- #
21
- # The exact relationship between types is not visible in this model wrt. the PDataType which is an abstraction
22
- # of Scalar, Array[Data], and Hash[Scalar, Data] nested to any depth. This means it is not possible to
23
- # infer the type by simply looking at the inheritance hierarchy. The {TypeCalculator} should
24
- # be used to answer questions about types. The {TypeFactory} should be used to create an instance
25
- # of a type whenever one is needed.
26
- #
27
- # The implementation of the Types model contains methods that are required for the type objects to behave as
28
- # expected when comparing them and using them as keys in hashes. (No other logic is, or should be included directly in
29
- # the model's classes).
30
- #
31
- # @api public
32
- #
33
- # TODO: See PUP-2978 for possible performance optimization
34
- class TypedModelObject < Object
35
- include Visitable
36
- include Adaptable
37
- end
38
-
39
- # Base type for all types
40
- # @api public
41
- #
42
- class PAnyType < TypedModelObject
43
- # Accept a visitor that will be sent the message `visit`, once with `self` as the
44
- # argument. The visitor will then visit all types that this type contains.
45
- #
46
- def accept(visitor, guard)
47
- visitor.visit(self, guard)
48
- end
49
-
50
- # Checks if _o_ is a type that is assignable to this type.
51
- # If _o_ is a `Class` then it is first converted to a type.
52
- # If _o_ is a Variant, then it is considered assignable when all its types are assignable
53
- #
54
- # The check for assignable must be guarded against self recursion since `self`, the given type _o_,
55
- # or both, might be a `TypeAlias`. The initial caller of this method will typically never care
56
- # about this and hence pass only the first argument, but as soon as a check of a contained type
57
- # encounters a `TypeAlias`, then a `RecursionGuard` instance is created and passed on in all
58
- # subsequent calls. The recursion is allowed to continue until self recursion has been detected in
59
- # both `self` and in the given type. At that point the given type is considered to be assignable
60
- # to `self` since all checks up to that point were positive.
61
- #
62
- # @param o [Class,PAnyType] the class or type to test
63
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
64
- # @return [Boolean] `true` when _o_ is assignable to this type
65
- # @api public
66
- def assignable?(o, guard = nil)
67
- case o
68
- when Class
69
- # Safe to call _assignable directly since a Class never is a Unit or Variant
70
- _assignable?(TypeCalculator.singleton.type(o), guard)
71
- when PUnitType
72
- true
73
- when PTypeAliasType
74
- # An alias may contain self recursive constructs.
75
- if o.self_recursion?
76
- guard ||= RecursionGuard.new
77
- if guard.add_that(o) == RecursionGuard::SELF_RECURSION_IN_BOTH
78
- # Recursion detected both in self and other. This means that other is assignable
79
- # to self. This point would not have been reached otherwise
80
- true
81
- else
82
- assignable?(o.resolved_type, guard)
83
- end
84
- else
85
- assignable?(o.resolved_type, guard)
86
- end
87
- when PVariantType
88
- # Assignable if all contained types are assignable
89
- o.types.all? { |vt| assignable?(vt, guard) }
90
- when PNotUndefType
91
- if !(o.type.nil? || o.type.assignable?(PUndefType::DEFAULT))
92
- assignable?(o.type, guard)
93
- else
94
- _assignable?(o, guard)
95
- end
96
- else
97
- _assignable?(o, guard)
98
- end
99
- end
100
-
101
- # Returns `true` if this instance is a callable that accepts the given _args_
102
- #
103
- # @param args [PAnyType] the arguments to test
104
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
105
- # @return [Boolean] `true` if this instance is a callable that accepts the given _args_
106
- def callable?(args, guard = nil)
107
- args.is_a?(PAnyType) && kind_of_callable? && args.callable_args?(self, guard)
108
- end
109
-
110
- # Returns `true` if this instance is considered valid as arguments to the given `callable`
111
- # @param callable [PAnyType] the callable
112
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
113
- # @return [Boolean] `true` if this instance is considered valid as arguments to the given `callable`
114
- # @api private
115
- def callable_args?(callable, guard)
116
- false
117
- end
118
-
119
- # Called from the `PTypeAliasType` when it detects self recursion. The default is to do nothing
120
- # but some self recursive constructs are illegal such as when a `PObjectType` somehow inherits itself
121
- # @param originator [PTypeAliasType] the starting point for the check
122
- # @raise Puppet::Error if an illegal self recursion is detected
123
- # @api private
124
- def check_self_recursion(originator)
125
- end
126
-
127
- # Generalizes value specific types. Types that are not value specific will return `self` otherwise
128
- # the generalized type is returned.
129
- #
130
- # @return [PAnyType] The generalized type
131
- # @api public
132
- def generalize
133
- # Applicable to all types that have no variables
134
- self
135
- end
136
-
137
- # Normalizes the type. This does not change the characteristics of the type but it will remove duplicates
138
- # and constructs like NotUndef[T] where T is not assignable from Undef and change Variant[*T] where all
139
- # T are enums into an Enum.
140
- #
141
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
142
- # @return [PAnyType] The iterable type that this type is assignable to or `nil`
143
- # @api public
144
- def normalize(guard = nil)
145
- self
146
- end
147
-
148
- # Called from the TypeParser once it has found a type using the Loader to enable that this type can
149
- # resolve internal type expressions using a loader. Presently, this method is a no-op for all types
150
- # except the {{PTypeAliasType}}.
151
- #
152
- # @param type_parser [TypeParser] type parser
153
- # @param loader [Loader::Loader] loader to use
154
- # @return [PTypeAliasType] the receiver of the call, i.e. `self`
155
- # @api private
156
- def resolve(type_parser, loader)
157
- self
158
- end
159
-
160
- # Responds `true` for all callables, variants of callables and unless _optional_ is
161
- # false, all optional callables.
162
- # @param optional [Boolean]
163
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
164
- # @return [Boolean] `true`if this type is considered callable
165
- # @api private
166
- def kind_of_callable?(optional = true, guard = nil)
167
- false
168
- end
169
-
170
- # Returns `true` if an instance of this type is iterable, `false` otherwise
171
- # The method #iterable_type must produce a `PIterableType` instance when this
172
- # method returns `true`
173
- #
174
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
175
- # @return [Boolean] flag to indicate if instances of this type is iterable.
176
- def iterable?(guard = nil)
177
- false
178
- end
179
-
180
- # Returns the `PIterableType` that this type should be assignable to, or `nil` if no such type exists.
181
- # A type that returns a `PIterableType` must respond `true` to `#iterable?`.
182
- #
183
- # @example
184
- # Any Collection[T] is assignable to an Iterable[T]
185
- # A String is assignable to an Iterable[String] iterating over the strings characters
186
- # An Integer is assignable to an Iterable[Integer] iterating over the 'times' enumerator
187
- # A Type[T] is assignable to an Iterable[Type[T]] if T is an Integer or Enum
188
- #
189
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
190
- # @return [PIterableType,nil] The iterable type that this type is assignable to or `nil`
191
- # @api private
192
- def iterable_type(guard = nil)
193
- nil
194
- end
195
-
196
- def hash
197
- self.class.hash
198
- end
199
-
200
- # Returns true if the given argument _o_ is an instance of this type
201
- # @param guard [RecursionGuard] guard against recursion. Only used by internal calls
202
- # @return [Boolean]
203
- # @api public
204
- def instance?(o, guard = nil)
205
- true
206
- end
207
-
208
- # An object is considered to really be an instance of a type when something other than a
209
- # TypeAlias or a Variant responds true to a call to {#instance?}.
210
- #
211
- # @return [Integer] -1 = is not instance, 0 = recursion detected, 1 = is instance
212
- # @api private
213
- def really_instance?(o, guard = nil)
214
- instance?(o, guard) ? 1 : -1
215
- end
216
-
217
- def eql?(o)
218
- self.class == o.class
219
- end
220
-
221
- def ==(o)
222
- eql?(o)
223
- end
224
-
225
- # Strips the class name from all module prefixes, the leading 'P' and the ending 'Type'. I.e.
226
- # an instance of PVariantType will return 'Variant'
227
- # @return [String] the simple name of this type
228
- def simple_name
229
- n = self.class.name
230
- n[n.rindex('::')+3..n.size-5]
231
- end
232
-
233
- def to_alias_expanded_s
234
- TypeFormatter.new.alias_expanded_string(self)
235
- end
236
-
237
- def to_s
238
- TypeFormatter.string(self)
239
- end
240
-
241
- # Returns the name of the type, without parameters
242
- # @return [String] the name of the type
243
- # @api public
244
- def name
245
- simple_name
246
- end
247
-
248
- def new_function(loader)
249
- self.class.new_function(self, loader)
250
- end
251
-
252
- # This default implementation of of a new_function raises an Argument Error.
253
- # Types for which creating a new instance is supported, should create and return
254
- # a Puppet Function class by using Puppet:Loaders.create_loaded_function(:new, loader)
255
- # and return that result.
256
- #
257
- # @raises ArgumentError
258
- #
259
- def self.new_function(instance, loader)
260
- raise ArgumentError.new("Creation of new instance of type '#{instance.to_s}' is not supported")
261
- end
262
-
263
-
264
- # The default instance of this type. Each type in the type system has this constant
265
- # declared.
266
- #
267
- DEFAULT = PAnyType.new
268
-
269
- protected
270
-
271
- # @api private
272
- def _assignable?(o, guard)
273
- o.is_a?(PAnyType)
274
- end
275
-
276
- # Produces the tuple entry at the given index given a tuple type, its from/to constraints on the last
277
- # type, and an index.
278
- # Produces nil if the index is out of bounds
279
- # from must be less than to, and from may not be less than 0
280
- #
281
- # @api private
282
- #
283
- def tuple_entry_at(tuple_t, to, index)
284
- regular = (tuple_t.types.size - 1)
285
- if index < regular
286
- tuple_t.types[index]
287
- elsif index < regular + to
288
- # in the varargs part
289
- tuple_t.types[-1]
290
- else
291
- nil
292
- end
293
- end
294
-
295
- # Applies a transformation by sending the given _method_ and _method_args_ to each of the types of the given array
296
- # and collecting the results in a new array. If all transformation calls returned the type instance itself (i.e. no
297
- # transformation took place), then this method will return `self`. If a transformation did occur, then this method
298
- # will either return the transformed array or in case a block was given, the result of calling a given block with
299
- # the transformed array.
300
- #
301
- # @param types [Array<PAnyType>] the array of types to transform
302
- # @param method [Symbol] The method to call on each type
303
- # @param method_args [Object] The arguments to pass to the method, if any
304
- # @return [Object] self, the transformed array, or the result of calling a given block with the transformed array
305
- # @yieldparam altered_types [Array<PAnyType>] the altered type array
306
- # @api private
307
- def alter_type_array(types, method, *method_args)
308
- modified = false
309
- modified_types = types.map do |t|
310
- t_mod = t.send(method, *method_args)
311
- modified = !t.equal?(t_mod) unless modified
312
- t_mod
313
- end
314
- if modified
315
- block_given? ? yield(modified_types) : modified_types
316
- else
317
- self
318
- end
319
- end
320
- end
321
-
322
- # @abstract Encapsulates common behavior for a type that contains one type
323
- # @api public
324
- class PTypeWithContainedType < PAnyType
325
- attr_reader :type
326
-
327
- def initialize(type)
328
- @type = type
329
- end
330
-
331
- def accept(visitor, guard)
332
- super
333
- @type.accept(visitor, guard) unless @type.nil?
334
- end
335
-
336
- def generalize
337
- if @type.nil?
338
- self.class::DEFAULT
339
- else
340
- ge_type = @type.generalize
341
- @type.equal?(ge_type) ? self : self.class.new(ge_type)
342
- end
343
- end
344
-
345
- def normalize(guard = nil)
346
- if @type.nil?
347
- self.class::DEFAULT
348
- else
349
- ne_type = @type.normalize(guard)
350
- @type.equal?(ne_type) ? self : self.class.new(ne_type)
351
- end
352
- end
353
-
354
- def hash
355
- self.class.hash ^ @type.hash
356
- end
357
-
358
- def eql?(o)
359
- self.class == o.class && @type == o.type
360
- end
361
- end
362
-
363
- # The type of types.
364
- # @api public
365
- #
366
- class PType < PTypeWithContainedType
367
- def instance?(o, guard = nil)
368
- if o.is_a?(PAnyType)
369
- type.nil? || type.assignable?(o, guard)
370
- else
371
- assignable?(TypeCalculator.infer(o), guard)
372
- end
373
- end
374
-
375
- def iterable?(guard = nil)
376
- case @type
377
- when PEnumType
378
- true
379
- when PIntegerType
380
- @type.finite_range?
381
- else
382
- false
383
- end
384
- end
385
-
386
- def iterable_type(guard = nil)
387
- # The types PIntegerType and PEnumType are Iterable
388
- case @type
389
- when PEnumType
390
- # @type describes the element type perfectly since the iteration is made over the
391
- # contained choices.
392
- PIterableType.new(@type)
393
- when PIntegerType
394
- # @type describes the element type perfectly since the iteration is made over the
395
- # specified range.
396
- @type.finite_range? ? PIterableType.new(@type) : nil
397
- else
398
- nil
399
- end
400
- end
401
-
402
- def eql?(o)
403
- self.class == o.class && @type == o.type
404
- end
405
-
406
- def simple_name
407
- # since this the class is inconsistently named PType and not PTypeType
408
- 'Type'
409
- end
410
-
411
- DEFAULT = PType.new(nil)
412
-
413
- protected
414
-
415
- # @api private
416
- def _assignable?(o, guard)
417
- return false unless o.is_a?(PType)
418
- return true if @type.nil? # wide enough to handle all types
419
- return false if o.type.nil? # wider than t
420
- @type.assignable?(o.type, guard)
421
- end
422
- end
423
-
424
- class PNotUndefType < PTypeWithContainedType
425
- def initialize(type = nil)
426
- super(type.class == PAnyType ? nil : type)
427
- end
428
-
429
- def instance?(o, guard = nil)
430
- !(o.nil? || o == :undef) && (@type.nil? || @type.instance?(o, guard))
431
- end
432
-
433
- def normalize(guard = nil)
434
- n = super
435
- if n.type.nil?
436
- n
437
- else
438
- if n.type.is_a?(POptionalType)
439
- # No point in having an optional in a NotUndef
440
- PNotUndefType.new(n.type.type).normalize
441
- elsif !n.type.assignable?(PUndefType::DEFAULT)
442
- # THe type is NotUndef anyway, so it can be stripped of
443
- n.type
444
- else
445
- n
446
- end
447
- end
448
- end
449
-
450
- def new_function(loader)
451
- # If only NotUndef, then use Unit's null converter
452
- if type.nil?
453
- PUnitType.new_function(self.class, loader)
454
- else
455
- type.new_function(loader)
456
- end
457
- end
458
-
459
- DEFAULT = PNotUndefType.new
460
-
461
- protected
462
-
463
- # @api private
464
- def _assignable?(o, guard)
465
- o.is_a?(PAnyType) && !o.assignable?(PUndefType::DEFAULT, guard) && (@type.nil? || @type.assignable?(o, guard))
466
- end
467
- end
468
-
469
- # @api public
470
- #
471
- class PUndefType < PAnyType
472
- def instance?(o, guard = nil)
473
- o.nil? || o == :undef
474
- end
475
-
476
- # @api private
477
- def callable_args?(callable_t, guard)
478
- # if callable_t is Optional (or indeed PUndefType), this means that 'missing callable' is accepted
479
- callable_t.assignable?(DEFAULT, guard)
480
- end
481
-
482
- DEFAULT = PUndefType.new
483
-
484
- protected
485
- # @api private
486
- def _assignable?(o, guard)
487
- o.is_a?(PUndefType)
488
- end
489
- end
490
-
491
- # A type private to the type system that describes "ignored type" - i.e. "I am what you are"
492
- # @api private
493
- #
494
- class PUnitType < PAnyType
495
- def instance?(o, guard = nil)
496
- true
497
- end
498
-
499
- # A "null" implementation - that simply returns the given argument
500
- def self.new_function(_, loader)
501
- @new_function ||= Puppet::Functions.create_loaded_function(:new_unit, loader) do
502
- dispatch :from_args do
503
- param 'Any', :from
504
- end
505
-
506
- def from_args(from)
507
- from
508
- end
509
- end
510
- end
511
-
512
- DEFAULT = PUnitType.new
513
-
514
- protected
515
- # @api private
516
- def _assignable?(o, guard)
517
- true
518
- end
519
- end
520
-
521
- # @api public
522
- #
523
- class PDefaultType < PAnyType
524
- def instance?(o, guard = nil)
525
- o == :default
526
- end
527
-
528
- DEFAULT = PDefaultType.new
529
-
530
- protected
531
- # @api private
532
- def _assignable?(o, guard)
533
- o.is_a?(PDefaultType)
534
- end
535
- end
536
-
537
- # A flexible data type, being assignable to its subtypes as well as PArrayType and PHashType with element type assignable to PDataType.
538
- #
539
- # @api public
540
- #
541
- class PDataType < PAnyType
542
- def eql?(o)
543
- self.class == o.class || o == PVariantType::DATA
544
- end
545
-
546
- def instance?(o, guard = nil)
547
- PVariantType::DATA.instance?(o, guard)
548
- end
549
-
550
- DEFAULT = PDataType.new
551
-
552
- protected
553
-
554
- # Data is assignable by other Data and by Array[Data] and Hash[Scalar, Data]
555
- # @api private
556
- def _assignable?(o, guard)
557
- # We cannot put the NotUndefType[Data] in the @data_variant_t since that causes an endless recursion
558
- case o
559
- when Types::PDataType
560
- true
561
- when Types::PNotUndefType
562
- assignable?(o.type || PUndefType::DEFAULT, guard)
563
- else
564
- PVariantType::DATA.assignable?(o, guard)
565
- end
566
- end
567
- end
568
-
569
- # Type that is PDataType compatible, but is not a PCollectionType.
570
- # @api public
571
- #
572
- class PScalarType < PAnyType
573
-
574
- def instance?(o, guard = nil)
575
- assignable?(TypeCalculator.infer(o), guard)
576
- end
577
-
578
- DEFAULT = PScalarType.new
579
-
580
- protected
581
-
582
- # @api private
583
- def _assignable?(o, guard)
584
- o.is_a?(PScalarType)
585
- end
586
- end
587
-
588
- # A string type describing the set of strings having one of the given values
589
- # @api public
590
- #
591
- class PEnumType < PScalarType
592
- attr_reader :values
593
-
594
- def initialize(values)
595
- @values = values.uniq.sort.freeze
596
- end
597
-
598
- # Returns Enumerator if no block is given, otherwise, calls the given
599
- # block with each of the strings for this enum
600
- def each(&block)
601
- r = Iterable.on(self)
602
- block_given? ? r.each(&block) : r
603
- end
604
-
605
- def iterable?(guard = nil)
606
- true
607
- end
608
-
609
- def iterable_type(guard = nil)
610
- # An instance of an Enum is a String
611
- PStringType::ITERABLE_TYPE
612
- end
613
-
614
- def hash
615
- @values.hash
616
- end
617
-
618
- def eql?(o)
619
- self.class == o.class && @values == o.values
620
- end
621
-
622
- DEFAULT = PEnumType.new(EMPTY_ARRAY)
623
-
624
- protected
625
-
626
- # @api private
627
- def _assignable?(o, guard)
628
- return true if self == o
629
- svalues = values
630
- if svalues.empty?
631
- return true if o.is_a?(PStringType) || o.is_a?(PEnumType) || o.is_a?(PPatternType)
632
- end
633
- case o
634
- when PStringType
635
- # if the set of strings are all found in the set of enums
636
- !o.values.empty? && o.values.all? { |s| svalues.any? { |e| e == s }}
637
- when PEnumType
638
- !o.values.empty? && o.values.all? { |s| svalues.any? {|e| e == s }}
639
- else
640
- false
641
- end
642
- end
643
- end
644
-
645
- # @api public
646
- #
647
- class PNumericType < PScalarType
648
- def initialize(from, to = Float::INFINITY)
649
- from = -Float::INFINITY if from.nil? || from == :default
650
- to = Float::INFINITY if to.nil? || to == :default
651
- raise ArgumentError, "'from' must be less or equal to 'to'. Got (#{from}, #{to}" if from.is_a?(Numeric) && to.is_a?(Numeric) && from > to
652
- @from = from
653
- @to = to
654
- end
655
-
656
- # Checks if this numeric range intersects with another
657
- #
658
- # @param o [PNumericType] the range to compare with
659
- # @return [Boolean] `true` if this range intersects with the other range
660
- # @api public
661
- def intersect?(o)
662
- self.class == o.class && !(@to < o.numeric_from || o.numeric_to < @from)
663
- end
664
-
665
- # Returns the lower bound of the numeric range or `nil` if no lower bound is set.
666
- # @return [Float,Integer]
667
- def from
668
- @from == -Float::INFINITY ? nil : @from
669
- end
670
-
671
- # Returns the upper bound of the numeric range or `nil` if no upper bound is set.
672
- # @return [Float,Integer]
673
- def to
674
- @to == Float::INFINITY ? nil : @to
675
- end
676
-
677
- # Same as #from but will return `-Float::Infinity` instead of `nil` if no lower bound is set.
678
- # @return [Float,Integer]
679
- def numeric_from
680
- @from
681
- end
682
-
683
- # Same as #to but will return `Float::Infinity` instead of `nil` if no lower bound is set.
684
- # @return [Float,Integer]
685
- def numeric_to
686
- @to
687
- end
688
-
689
- def hash
690
- @from.hash ^ @to.hash
691
- end
692
-
693
- def eql?(o)
694
- self.class == o.class && @from == o.numeric_from && @to == o.numeric_to
695
- end
696
-
697
- def instance?(o, guard = nil)
698
- o.is_a?(Numeric) && o >= @from && o <= @to
699
- end
700
-
701
- def unbounded?
702
- @from == -Float::INFINITY && @to == Float::INFINITY
703
- end
704
-
705
- def self.new_function(_, loader)
706
- @new_function ||= Puppet::Functions.create_loaded_function(:new_numeric, loader) do
707
- local_types do
708
- type 'Convertible = Variant[Undef, Integer, Float, Boolean, String]'
709
- type 'NamedArgs = Struct[{from => Convertible}]'
710
- end
711
-
712
- dispatch :from_args do
713
- param 'Convertible', :from
714
- end
715
-
716
- dispatch :from_hash do
717
- param 'NamedArgs', :hash_args
718
- end
719
- def from_args(from)
720
- case from
721
- when NilClass
722
- throw :undefined_value
723
- when Float
724
- from
725
- when Integer
726
- from
727
- when TrueClass
728
- 1
729
- when FalseClass
730
- 0
731
- when String
732
- begin
733
- if from[0] == '0' && (from[1].downcase == 'b' || from[1].downcase == 'x')
734
- Integer(from)
735
- else
736
- Puppet::Pops::Utils.to_n(from)
737
- end
738
- rescue TypeError => e
739
- raise TypeConversionError.new(e.message)
740
- rescue ArgumentError => e
741
- raise TypeConversionError.new(e.message)
742
- end
743
- else
744
- t = Puppet::Pops::Types::TypeCalculator.singleton.infer(from).generalize
745
- raise TypeConversionError.new("Value of type '#{t}' cannot be converted to Numeric")
746
- end
747
- end
748
-
749
- def from_hash(args_hash)
750
- from_args(args_hash['from'])
751
- end
752
- end
753
- end
754
-
755
- DEFAULT = PNumericType.new(-Float::INFINITY)
756
-
757
- protected
758
-
759
- # @api_private
760
- def _assignable?(o, guard)
761
- return false unless o.is_a?(self.class)
762
- # If o min and max are within the range of t
763
- @from <= o.numeric_from && @to >= o.numeric_to
764
- end
765
- end
766
-
767
- # @api public
768
- #
769
- class PIntegerType < PNumericType
770
- # Will respond `true` for any range that is bounded at both ends.
771
- #
772
- # @return [Boolean] `true` if the type describes a finite range.
773
- def finite_range?
774
- @from != -Float::INFINITY && @to != Float::INFINITY
775
- end
776
-
777
- def generalize
778
- DEFAULT
779
- end
780
-
781
- def instance?(o, guard = nil)
782
- o.is_a?(Integer) && o >= numeric_from && o <= numeric_to
783
- end
784
-
785
- # Checks if this range is adjacent to the given range
786
- #
787
- # @param o [PIntegerType] the range to compare with
788
- # @return [Boolean] `true` if this range is adjacent to the other range
789
- # @api public
790
- def adjacent?(o)
791
- o.is_a?(PIntegerType) && (@to + 1 == o.from || o.to + 1 == @from)
792
- end
793
-
794
- # Concatenates this range with another range provided that the ranges intersect or
795
- # are adjacent. When that's not the case, this method will return `nil`
796
- #
797
- # @param o [PIntegerType] the range to concatenate with this range
798
- # @return [PIntegerType,nil] the concatenated range or `nil` when the ranges were apart
799
- # @api public
800
- def merge(o)
801
- if intersect?(o) || adjacent?(o)
802
- min = @from <= o.numeric_from ? @from : o.numeric_from
803
- max = @to >= o.numeric_to ? @to : o.numeric_to
804
- PIntegerType.new(min, max)
805
- else
806
- nil
807
- end
808
- end
809
-
810
- def iterable?(guard = nil)
811
- true
812
- end
813
-
814
- def iterable_type(guard = nil)
815
- # It's unknown if the iterable will be a range (min, max) or a "times" (0, max)
816
- PIterableType.new(PIntegerType::DEFAULT)
817
- end
818
-
819
- # Returns Float.Infinity if one end of the range is unbound
820
- def size
821
- return Float::INFINITY if @from == -Float::INFINITY || @to == Float::INFINITY
822
- 1+(to-from).abs
823
- end
824
-
825
- # Returns the range as an array ordered so the smaller number is always first.
826
- # The number may be Infinity or -Infinity.
827
- def range
828
- [@from, @to]
829
- end
830
-
831
- # Returns Enumerator if no block is given
832
- # Returns nil if size is infinity (does not yield)
833
- def each(&block)
834
- r = Iterable.on(self)
835
- block_given? ? r.each(&block) : r
836
- end
837
-
838
- # Returns a range where both to and from are positive numbers. Negative
839
- # numbers are converted to zero
840
- # @return [PIntegerType] a positive range
841
- def to_size
842
- @from >= 0 ? self : PIntegerType.new(0, @to < 0 ? 0 : @to)
843
- end
844
-
845
- def new_function(loader)
846
- @@new_function ||= Puppet::Functions.create_loaded_function(:new, loader) do
847
- local_types do
848
- type 'Radix = Variant[Default, Integer[2,2], Integer[8,8], Integer[10,10], Integer[16,16]]'
849
- type 'Convertible = Variant[Undef, Integer, Float, Boolean, String]'
850
- type 'NamedArgs = Struct[{from => Convertible, Optional[radix] => Radix}]'
851
- end
852
-
853
- dispatch :from_args do
854
- param 'Convertible', :from
855
- optional_param 'Radix', :radix
856
- end
857
-
858
- dispatch :from_hash do
859
- param 'NamedArgs', :hash_args
860
- end
861
-
862
- def from_args(from, radix = :default)
863
- case from
864
- when NilClass
865
- throw :undefined_value
866
- when Float
867
- from.to_i
868
- when Integer
869
- from
870
- when TrueClass
871
- 1
872
- when FalseClass
873
- 0
874
- when String
875
- begin
876
- radix == :default ? Integer(from) : Integer(from, assert_radix(radix))
877
- rescue TypeError => e
878
- raise TypeConversionError.new(e.message)
879
- rescue ArgumentError => e
880
- raise TypeConversionError.new(e.message)
881
- end
882
- else
883
- t = Puppet::Pops::Types::TypeCalculator.singleton.infer(from).generalize
884
- raise TypeConversionError.new("Value of type '#{t}' cannot be converted to an Integer")
885
- end
886
- end
887
-
888
- def from_hash(args_hash)
889
- from = args_hash['from']
890
- radix = args_hash['radix'] || :default
891
- from_args(from, radix)
892
- end
893
-
894
- def assert_radix(radix)
895
- case radix
896
- when 2, 8, 10, 16, :default
897
- else
898
- raise ArgumentError.new("Illegal radix: '#{radix}', expected 2, 8, 10, 16, or default")
899
- end
900
- radix
901
- end
902
-
903
- end
904
- end
905
-
906
- DEFAULT = PIntegerType.new(-Float::INFINITY)
907
- end
908
-
909
- # @api public
910
- #
911
- class PFloatType < PNumericType
912
- def generalize
913
- DEFAULT
914
- end
915
-
916
- def instance?(o, guard = nil)
917
- o.is_a?(Float) && o >= numeric_from && o <= numeric_to
918
- end
919
-
920
- # Concatenates this range with another range provided that the ranges intersect. When that's not the case, this
921
- # method will return `nil`
922
- #
923
- # @param o [PFloatType] the range to concatenate with this range
924
- # @return [PFloatType,nil] the concatenated range or `nil` when the ranges were apart
925
- # @api public
926
- def merge(o)
927
- if intersect?(o)
928
- min = @from <= o.from ? @from : o.from
929
- max = @to >= o.to ? @to : o.to
930
- PFloatType.new(min, max)
931
- else
932
- nil
933
- end
934
- end
935
-
936
- # Returns a new function that produces a Float value
937
- #
938
- def self.new_function(_, loader)
939
- @new_function ||= Puppet::Functions.create_loaded_function(:new_float, loader) do
940
- local_types do
941
- type 'Convertible = Variant[Undef, Integer, Float, Boolean, String]'
942
- type 'NamedArgs = Struct[{from => Convertible}]'
943
- end
944
-
945
- dispatch :from_args do
946
- param 'Convertible', :from
947
- end
948
-
949
- dispatch :from_hash do
950
- param 'NamedArgs', :hash_args
951
- end
952
-
953
- def from_args(from)
954
- case from
955
- when NilClass
956
- throw :undefined_value
957
- when Float
958
- from
959
- when Integer
960
- Float(from)
961
- when TrueClass
962
- 1.0
963
- when FalseClass
964
- 0.0
965
- when String
966
- begin
967
- # support a binary as float
968
- if from[0] == '0' && from[1].downcase == 'b'
969
- from = Integer(from)
970
- end
971
- Float(from)
972
- rescue TypeError => e
973
- raise TypeConversionError.new(e.message)
974
- rescue ArgumentError => e
975
- raise TypeConversionError.new(e.message)
976
- end
977
- else
978
- t = Puppet::Pops::Types::TypeCalculator.singleton.infer(from).generalize
979
- raise TypeConversionError.new("Value of type '#{t}' cannot be converted to Float")
980
- end
981
- end
982
-
983
- def from_hash(args_hash)
984
- from_args(args_hash['from'])
985
- end
986
- end
987
- end
988
-
989
- DEFAULT = PFloatType.new(-Float::INFINITY)
990
- end
991
-
992
- # @api public
993
- #
994
- class PCollectionType < PAnyType
995
- attr_reader :element_type, :size_type
996
-
997
- def initialize(element_type, size_type = nil)
998
- @size_type = size_type
999
- if !size_type.nil? && size_type.from == 0 && size_type.to == 0
1000
- @element_type = PUnitType::DEFAULT
1001
- else
1002
- @element_type = element_type
1003
- end
1004
- end
1005
-
1006
- def accept(visitor, guard)
1007
- super
1008
- @size_type.accept(visitor, guard) unless @size_type.nil?
1009
- @element_type.accept(visitor, guard) unless @element_type.nil?
1010
- end
1011
-
1012
- def generalize
1013
- if @element_type.nil?
1014
- DEFAULT
1015
- else
1016
- ge_type = @element_type.generalize
1017
- @size_type.nil? && @element_type.equal?(ge_type) ? self : self.class.new(ge_type, nil)
1018
- end
1019
- end
1020
-
1021
- def normalize(guard = nil)
1022
- if @element_type.nil?
1023
- DEFAULT
1024
- else
1025
- ne_type = @element_type.normalize(guard)
1026
- @element_type.equal?(ne_type) ? self : self.class.new(ne_type, @size_type)
1027
- end
1028
- end
1029
-
1030
- def instance?(o, guard = nil)
1031
- assignable?(TypeCalculator.infer(o), guard)
1032
- end
1033
-
1034
- # Returns an array with from (min) size to (max) size
1035
- def size_range
1036
- (@size_type || DEFAULT_SIZE).range
1037
- end
1038
-
1039
- def has_empty_range?
1040
- from, to = size_range
1041
- from == 0 && to == 0
1042
- end
1043
-
1044
- def hash
1045
- @element_type.hash ^ @size_type.hash
1046
- end
1047
-
1048
- def iterable?(guard = nil)
1049
- true
1050
- end
1051
-
1052
- def iterable_type(guard = nil)
1053
- @element_type.nil? ? PIterableType::DEFAULT : PIterableType.new(@element_type)
1054
- end
1055
-
1056
- def eql?(o)
1057
- self.class == o.class && @element_type == o.element_type && @size_type == o.size_type
1058
- end
1059
-
1060
-
1061
- DEFAULT_SIZE = PIntegerType.new(0)
1062
- ZERO_SIZE = PIntegerType.new(0, 0)
1063
- DEFAULT = PCollectionType.new(nil)
1064
-
1065
- protected
1066
-
1067
- # @api private
1068
- #
1069
- def _assignable?(o, guard)
1070
- case o
1071
- when PCollectionType
1072
- (@size_type || DEFAULT_SIZE).assignable?(o.size_type || DEFAULT_SIZE, guard)
1073
- when PTupleType
1074
- # compute the tuple's min/max size, and check if that size matches
1075
- size_s = size_type || DEFAULT_SIZE
1076
- size_o = o.size_type
1077
- if size_o.nil?
1078
- type_count = o.types.size
1079
- size_o = PIntegerType.new(type_count, type_count)
1080
- end
1081
- size_s.assignable?(size_o)
1082
- when PStructType
1083
- from = to = o.elements.size
1084
- (@size_type || DEFAULT_SIZE).assignable?(PIntegerType.new(from, to), guard)
1085
- else
1086
- false
1087
- end
1088
- end
1089
- end
1090
-
1091
- class PIterableType < PTypeWithContainedType
1092
- def element_type
1093
- @type
1094
- end
1095
-
1096
- def instance?(o, guard = nil)
1097
- if @type.nil? || @type.assignable?(PAnyType::DEFAULT, guard)
1098
- # Any element_type will do
1099
- case o
1100
- when Iterable, String, Hash, Array, Range, PEnumType
1101
- true
1102
- when Integer
1103
- o >= 0
1104
- when PIntegerType
1105
- o.finite_range?
1106
- else
1107
- false
1108
- end
1109
- else
1110
- assignable?(TypeCalculator.infer(o), guard)
1111
- end
1112
- end
1113
-
1114
- def iterable?(guard = nil)
1115
- true
1116
- end
1117
-
1118
- def iterable_type(guard = nil)
1119
- self
1120
- end
1121
-
1122
- DEFAULT = PIterableType.new(nil)
1123
-
1124
- protected
1125
-
1126
- # @api private
1127
- def _assignable?(o, guard)
1128
- if @type.nil? || @type.assignable?(PAnyType::DEFAULT, guard)
1129
- # Don't request the iterable_type. Since this Iterable accepts Any element, it is enough that o is iterable.
1130
- o.iterable?
1131
- else
1132
- o = o.iterable_type
1133
- o.nil? || o.element_type.nil? ? false : @type.assignable?(o.element_type, guard)
1134
- end
1135
- end
1136
- end
1137
-
1138
- # @api public
1139
- #
1140
- class PIteratorType < PTypeWithContainedType
1141
- def element_type
1142
- @type
1143
- end
1144
-
1145
- def instance?(o, guard = nil)
1146
- o.is_a?(Iterable) && (@type.nil? || @type.assignable?(o.element_type, guard))
1147
- end
1148
-
1149
- def iterable?(guard = nil)
1150
- true
1151
- end
1152
-
1153
- def iterable_type(guard = nil)
1154
- @type.nil? ? PIterableType::DEFAULT : PIterableType.new(@type)
1155
- end
1156
-
1157
- DEFAULT = PIteratorType.new(nil)
1158
-
1159
- protected
1160
-
1161
- # @api private
1162
- def _assignable?(o, guard)
1163
- o.is_a?(PIteratorType) && (@type.nil? || @type.assignable?(o.element_type, guard))
1164
- end
1165
- end
1166
-
1167
- # @api public
1168
- #
1169
- class PStringType < PScalarType
1170
- attr_reader :size_type, :values
1171
-
1172
- def initialize(size_type, values = EMPTY_ARRAY)
1173
- @size_type = size_type
1174
- @values = values.sort.freeze
1175
- end
1176
-
1177
- def accept(visitor, guard)
1178
- super
1179
- @size_type.accept(visitor, guard) unless @size_type.nil?
1180
- end
1181
-
1182
- def generalize
1183
- DEFAULT
1184
- end
1185
-
1186
- def hash
1187
- @size_type.hash ^ @values.hash
1188
- end
1189
-
1190
- def iterable?(guard = nil)
1191
- true
1192
- end
1193
-
1194
- def iterable_type(guard = nil)
1195
- ITERABLE_TYPE
1196
- end
1197
-
1198
- def eql?(o)
1199
- self.class == o.class && @size_type == o.size_type && @values == o.values
1200
- end
1201
-
1202
- def instance?(o, guard = nil)
1203
- # true if size compliant
1204
- if o.is_a?(String) && (@size_type.nil? || @size_type.instance?(o.size, guard))
1205
- @values.empty? || @values.include?(o)
1206
- else
1207
- false
1208
- end
1209
- end
1210
-
1211
- def self.new_function(_, loader)
1212
- @new_function ||= Puppet::Functions.create_loaded_function(:new_string, loader) do
1213
- local_types do
1214
- type 'Format = Pattern[/^%([\s\+\-#0\[\{<\(\|]*)([1-9][0-9]*)?(?:\.([0-9]+))?([a-zA-Z])/]'
1215
- type 'ContainerFormat = Struct[{
1216
- Optional[format] => String,
1217
- Optional[separator] => String,
1218
- Optional[separator2] => String,
1219
- Optional[string_formats] => Hash[Type, Format]
1220
- }]'
1221
- type 'TypeMap = Hash[Type, Variant[Format, ContainerFormat]]'
1222
- type 'Convertible = Any'
1223
- type 'Formats = Variant[Default, String[1], TypeMap]'
1224
- end
1225
-
1226
- dispatch :from_args do
1227
- param 'Convertible', :from
1228
- optional_param 'Formats', :string_formats
1229
- end
1230
-
1231
- def from_args(from, formats = :default)
1232
- StringConverter.singleton.convert(from, formats)
1233
- end
1234
- end
1235
- end
1236
-
1237
- DEFAULT = PStringType.new(nil)
1238
- NON_EMPTY = PStringType.new(PIntegerType.new(1))
1239
-
1240
- # Iterates over each character of the string
1241
- ITERABLE_TYPE = PIterableType.new(PStringType.new(PIntegerType.new(1,1)))
1242
-
1243
- protected
1244
-
1245
- # @api private
1246
- def _assignable?(o, guard)
1247
- if values.empty?
1248
- # A general string is assignable by any other string or pattern restricted string
1249
- # if the string has a size constraint it does not match since there is no reasonable way
1250
- # to compute the min/max length a pattern will match. For enum, it is possible to test that
1251
- # each enumerator value is within range
1252
- case o
1253
- when PStringType
1254
- # true if size compliant
1255
- (@size_type || PCollectionType::DEFAULT_SIZE).assignable?(
1256
- o.size_type || PCollectionType::DEFAULT_SIZE, guard)
1257
-
1258
- when PPatternType
1259
- # true if size constraint is at least 0 to +Infinity (which is the same as the default)
1260
- @size_type.nil? || @size_type.assignable?(PCollectionType::DEFAULT_SIZE, guard)
1261
-
1262
- when PEnumType
1263
- if o.values.empty?
1264
- # enum represents all enums, and thus all strings, a sized constrained string can thus not
1265
- # be assigned any enum (unless it is max size).
1266
- @size_type.nil? || @size_type.assignable?(PCollectionType::DEFAULT_SIZE, guard)
1267
- else
1268
- # true if all enum values are within range
1269
- orange = o.values.map(&:size).minmax
1270
- srange = (@size_type || PCollectionType::DEFAULT_SIZE).range
1271
- # If o min and max are within the range of t
1272
- srange[0] <= orange[0] && srange[1] >= orange[1]
1273
- end
1274
- else
1275
- # no other type matches string
1276
- false
1277
- end
1278
- elsif o.is_a?(PStringType)
1279
- # A specific string acts as a set of strings - must have exactly the same strings
1280
- # In this case, size does not matter since the definition is very precise anyway
1281
- values == o.values
1282
- else
1283
- # All others are false, since no other type describes the same set of specific strings
1284
- false
1285
- end
1286
- end
1287
- end
1288
-
1289
- # @api public
1290
- #
1291
- class PRegexpType < PScalarType
1292
- attr_reader :pattern
1293
-
1294
- def initialize(pattern)
1295
- if pattern.is_a?(Regexp)
1296
- @regexp = pattern
1297
- @pattern = pattern.source
1298
- else
1299
- @pattern = pattern
1300
- end
1301
- end
1302
-
1303
- def regexp
1304
- @regexp ||= Regexp.new(@pattern || '')
1305
- end
1306
-
1307
- def hash
1308
- @pattern.hash
1309
- end
1310
-
1311
- def eql?(o)
1312
- self.class == o.class && @pattern == o.pattern
1313
- end
1314
-
1315
- DEFAULT = PRegexpType.new(nil)
1316
-
1317
- protected
1318
-
1319
- # @api private
1320
- #
1321
- def _assignable?(o, guard)
1322
- o.is_a?(PRegexpType) && (@pattern.nil? || @pattern == o.pattern)
1323
- end
1324
- end
1325
-
1326
- # Represents a subtype of String that narrows the string to those matching the patterns
1327
- # If specified without a pattern it is basically the same as the String type.
1328
- #
1329
- # @api public
1330
- #
1331
- class PPatternType < PScalarType
1332
- attr_reader :patterns
1333
-
1334
- def initialize(patterns)
1335
- @patterns = patterns.freeze
1336
- end
1337
-
1338
- def accept(visitor, guard)
1339
- super
1340
- @patterns.each { |p| p.accept(visitor, guard) }
1341
- end
1342
-
1343
- def hash
1344
- @patterns.hash
1345
- end
1346
-
1347
- def eql?(o)
1348
- self.class == o.class && @patterns.size == o.patterns.size && (@patterns - o.patterns).empty?
1349
- end
1350
-
1351
- DEFAULT = PPatternType.new(EMPTY_ARRAY)
1352
-
1353
- protected
1354
-
1355
- # @api private
1356
- #
1357
- def _assignable?(o, guard)
1358
- return true if self == o
1359
- case o
1360
- when PStringType, PEnumType
1361
- if o.values.empty?
1362
- # Strings / Enums (unknown which ones) cannot all match a pattern, but if there is no pattern it is ok
1363
- # (There should really always be a pattern, but better safe than sorry).
1364
- @patterns.empty?
1365
- else
1366
- # all strings in String/Enum type must match one of the patterns in Pattern type,
1367
- # or Pattern represents all Patterns == all Strings
1368
- regexps = @patterns.map { |p| p.regexp }
1369
- regexps.empty? || o.values.all? { |v| regexps.any? {|re| re.match(v) } }
1370
- end
1371
- when PPatternType
1372
- @patterns.empty?
1373
- else
1374
- false
1375
- end
1376
- end
1377
- end
1378
-
1379
- # @api public
1380
- #
1381
- class PBooleanType < PScalarType
1382
-
1383
- def instance?(o, guard = nil)
1384
- o == true || o == false
1385
- end
1386
-
1387
- def self.new_function(_, loader)
1388
- @new_function ||= Puppet::Functions.create_loaded_function(:new_boolean, loader) do
1389
- dispatch :from_args do
1390
- param 'Variant[Undef, Integer, Float, Boolean, String]', :from
1391
- end
1392
-
1393
- def from_args(from)
1394
- from = from.downcase if from.is_a?(String)
1395
- case from
1396
- when NilClass
1397
- throw :undefined_value
1398
- when Float
1399
- from != 0.0
1400
- when Integer
1401
- from != 0
1402
- when true, false
1403
- from
1404
- when 'false', 'no', 'n'
1405
- false
1406
- when 'true', 'yes', 'y'
1407
- true
1408
- else
1409
- raise TypeConversionError.new("Value '#{from}' of type '#{from.class}' cannot be converted to Boolean")
1410
- end
1411
- end
1412
- end
1413
- end
1414
-
1415
- DEFAULT = PBooleanType.new
1416
-
1417
- protected
1418
-
1419
- # @api private
1420
- #
1421
- def _assignable?(o, guard)
1422
- o.is_a?(PBooleanType)
1423
- end
1424
- end
1425
-
1426
- # @api public
1427
- #
1428
- # @api public
1429
- #
1430
- class PStructElement < TypedModelObject
1431
- attr_accessor :key_type, :value_type
1432
-
1433
- def accept(visitor, guard)
1434
- @key_type.accept(visitor, guard)
1435
- @value_type.accept(visitor, guard)
1436
- end
1437
-
1438
- def hash
1439
- value_type.hash ^ key_type.hash
1440
- end
1441
-
1442
- def name
1443
- k = key_type
1444
- k = k.optional_type if k.is_a?(POptionalType)
1445
- k.values[0]
1446
- end
1447
-
1448
- def initialize(key_type, value_type)
1449
- @key_type = key_type
1450
- @value_type = value_type
1451
- end
1452
-
1453
- def generalize
1454
- gv_type = @value_type.generalize
1455
- @value_type.equal?(gv_type) ? self : PStructElement.new(@key_type, gv_type)
1456
- end
1457
-
1458
- def normalize(guard = nil)
1459
- nv_type = @value_type.normalize(guard)
1460
- @value_type.equal?(nv_type) ? self : PStructElement.new(@key_type, nv_type)
1461
- end
1462
-
1463
- def <=>(o)
1464
- self.name <=> o.name
1465
- end
1466
-
1467
- def eql?(o)
1468
- self == o
1469
- end
1470
-
1471
- def ==(o)
1472
- self.class == o.class && value_type == o.value_type && key_type == o.key_type
1473
- end
1474
- end
1475
-
1476
- # @api public
1477
- #
1478
- class PStructType < PAnyType
1479
- include Enumerable
1480
-
1481
- def initialize(elements)
1482
- @elements = elements.sort.freeze
1483
- end
1484
-
1485
- def accept(visitor, guard)
1486
- super
1487
- @elements.each { |elem| elem.accept(visitor, guard) }
1488
- end
1489
-
1490
- def each
1491
- if block_given?
1492
- elements.each { |elem| yield elem }
1493
- else
1494
- elements.to_enum
1495
- end
1496
- end
1497
-
1498
- def generalize
1499
- if @elements.empty?
1500
- DEFAULT
1501
- else
1502
- alter_type_array(@elements, :generalize) { |altered| PStructType.new(altered) }
1503
- end
1504
- end
1505
-
1506
- def normalize(guard = nil)
1507
- if @elements.empty?
1508
- DEFAULT
1509
- else
1510
- alter_type_array(@elements, :normalize, guard) { |altered| PStructType.new(altered) }
1511
- end
1512
- end
1513
-
1514
- def hashed_elements
1515
- @hashed ||= @elements.reduce({}) {|memo, e| memo[e.name] = e; memo }
1516
- end
1517
-
1518
- def hash
1519
- @elements.hash
1520
- end
1521
-
1522
- def iterable?(guard = nil)
1523
- true
1524
- end
1525
-
1526
- def iterable_type(guard = nil)
1527
- if self == DEFAULT
1528
- PIterableType.new(PHashType::DEFAULT_KEY_PAIR_TUPLE)
1529
- else
1530
- tc = TypeCalculator.singleton
1531
- PIterableType.new(
1532
- PTupleType.new([
1533
- PVariantType.maybe_create(@elements.map {|se| se.key_type }),
1534
- PVariantType.maybe_create(@elements.map {|se| se.value_type })],
1535
- PHashType::KEY_PAIR_TUPLE_SIZE))
1536
- end
1537
- end
1538
-
1539
- def eql?(o)
1540
- self.class == o.class && @elements == o.elements
1541
- end
1542
-
1543
- def elements
1544
- @elements
1545
- end
1546
-
1547
- def instance?(o, guard = nil)
1548
- return false unless o.is_a?(Hash)
1549
- matched = 0
1550
- @elements.all? do |e|
1551
- key = e.name
1552
- v = o[key]
1553
- if v.nil? && !o.include?(key)
1554
- # Entry is missing. Only OK when key is optional
1555
- e.key_type.assignable?(PUndefType::DEFAULT, guard)
1556
- else
1557
- matched += 1
1558
- e.value_type.instance?(v, guard)
1559
- end
1560
- end && matched == o.size
1561
- end
1562
-
1563
- def new_function(loader)
1564
- # Simply delegate to Hash type and let the higher level assertion deal with
1565
- # compliance with the Struct type regarding the produced result.
1566
- PHashType.new_function(self, loader)
1567
- end
1568
-
1569
- DEFAULT = PStructType.new(EMPTY_ARRAY)
1570
-
1571
- protected
1572
-
1573
- # @api private
1574
- def _assignable?(o, guard)
1575
- if o.is_a?(Types::PStructType)
1576
- h2 = o.hashed_elements
1577
- matched = 0
1578
- elements.all? do |e1|
1579
- e2 = h2[e1.name]
1580
- if e2.nil?
1581
- e1.key_type.assignable?(PUndefType::DEFAULT, guard)
1582
- else
1583
- matched += 1
1584
- e1.key_type.assignable?(e2.key_type, guard) && e1.value_type.assignable?(e2.value_type, guard)
1585
- end
1586
- end && matched == h2.size
1587
- elsif o.is_a?(Types::PHashType)
1588
- required = 0
1589
- required_elements_assignable = elements.all? do |e|
1590
- key_type = e.key_type
1591
- if key_type.assignable?(PUndefType::DEFAULT)
1592
- # Element is optional so Hash does not need to provide it
1593
- true
1594
- else
1595
- required += 1
1596
- if e.value_type.assignable?(o.element_type, guard)
1597
- # Hash must have something that is assignable. We don't care about the name or size of the key though
1598
- # because we have no instance of a hash to compare against.
1599
- key_type.generalize.assignable?(o.key_type)
1600
- else
1601
- false
1602
- end
1603
- end
1604
- end
1605
- if required_elements_assignable
1606
- size_o = o.size_type || PCollectionType::DEFAULT_SIZE
1607
- PIntegerType.new(required, elements.size).assignable?(size_o, guard)
1608
- else
1609
- false
1610
- end
1611
- else
1612
- false
1613
- end
1614
- end
1615
- end
1616
-
1617
- # @api public
1618
- #
1619
- class PTupleType < PAnyType
1620
- include Enumerable
1621
-
1622
- # If set, describes min and max required of the given types - if max > size of
1623
- # types, the last type entry repeats
1624
- #
1625
- attr_reader :size_type
1626
-
1627
- attr_reader :types
1628
-
1629
- def accept(visitor, guard)
1630
- super
1631
- @size_type.accept(visitor, guard) unless @size_type.nil?
1632
- @types.each { |elem| elem.accept(visitor, guard) }
1633
- end
1634
-
1635
- # @api private
1636
- def callable_args?(callable_t, guard)
1637
- unless size_type.nil?
1638
- raise ArgumentError, 'Callable tuple may not have a size constraint when used as args'
1639
- end
1640
-
1641
- params_tuple = callable_t.param_types
1642
- param_block_t = callable_t.block_type
1643
- arg_types = @types
1644
- arg_block_t = arg_types.last
1645
- if arg_block_t.kind_of_callable?(true, guard)
1646
- # Can't pass a block to a callable that doesn't accept one
1647
- return false if param_block_t.nil?
1648
-
1649
- # Check that the block is of the right tyṕe
1650
- return false unless param_block_t.assignable?(arg_block_t, guard)
1651
-
1652
- # Check other arguments
1653
- arg_count = arg_types.size - 1
1654
- params_size_t = params_tuple.size_type || PIntegerType.new(*params_tuple.size_range)
1655
- return false unless params_size_t.assignable?(PIntegerType.new(arg_count, arg_count), guard)
1656
-
1657
- ctypes = params_tuple.types
1658
- arg_count.times do |index|
1659
- return false unless (ctypes[index] || ctypes[-1]).assignable?(arg_types[index], guard)
1660
- end
1661
- return true
1662
- end
1663
-
1664
- # Check that tuple is assignable and that the block (if declared) is optional
1665
- params_tuple.assignable?(self, guard) && (param_block_t.nil? || param_block_t.assignable?(PUndefType::DEFAULT, guard))
1666
- end
1667
-
1668
- def initialize(types, size_type = nil)
1669
- @types = types
1670
- @size_type = size_type.nil? ? nil : size_type.to_size
1671
- end
1672
-
1673
- # Returns Enumerator for the types if no block is given, otherwise, calls the given
1674
- # block with each of the types in this tuple
1675
- def each
1676
- if block_given?
1677
- types.each { |x| yield x }
1678
- else
1679
- types.to_enum
1680
- end
1681
- end
1682
-
1683
- def generalize
1684
- if self == DEFAULT
1685
- DEFAULT
1686
- else
1687
- alter_type_array(@types, :generalize) { |altered_types| PTupleType.new(altered_types, @size_type) }
1688
- end
1689
- end
1690
-
1691
- def normalize(guard = nil)
1692
- if self == DEFAULT
1693
- DEFAULT
1694
- else
1695
- alter_type_array(@types, :normalize, guard) { |altered_types| PTupleType.new(altered_types, @size_type) }
1696
- end
1697
- end
1698
-
1699
- def instance?(o, guard = nil)
1700
- return false unless o.is_a?(Array)
1701
- # compute the tuple's min/max size, and check if that size matches
1702
- size_t = size_type || PIntegerType.new(*size_range)
1703
-
1704
- return false unless size_t.instance?(o.size, guard)
1705
- o.each_with_index do |element, index|
1706
- return false unless (types[index] || types[-1]).instance?(element, guard)
1707
- end
1708
- true
1709
- end
1710
-
1711
- def iterable?(guard = nil)
1712
- true
1713
- end
1714
-
1715
- def iterable_type(guard = nil)
1716
- PIterableType.new(PVariantType.maybe_create(types))
1717
- end
1718
-
1719
- # Returns the number of elements accepted [min, max] in the tuple
1720
- def size_range
1721
- if @size_type.nil?
1722
- types_size = @types.size
1723
- types_size == 0 ? [0, Float::INFINITY] : [types_size, types_size]
1724
- else
1725
- @size_type.range
1726
- end
1727
- end
1728
-
1729
- # Returns the number of accepted occurrences [min, max] of the last type in the tuple
1730
- # The defaults is [1,1]
1731
- #
1732
- def repeat_last_range
1733
- if @size_type.nil?
1734
- return [1, 1]
1735
- end
1736
- types_size = @types.size
1737
- from, to = @size_type.range
1738
- min = from - (types_size-1)
1739
- min = min <= 0 ? 0 : min
1740
- max = to - (types_size-1)
1741
- [min, max]
1742
- end
1743
-
1744
- def hash
1745
- @size_type.hash ^ @types.hash
1746
- end
1747
-
1748
- def eql?(o)
1749
- self.class == o.class && @types == o.types && @size_type == o.size_type
1750
- end
1751
-
1752
- def new_function(loader)
1753
- # Simply delegate to Array type and let the higher level assertion deal with
1754
- # compliance with the Tuple type regarding the produced result.
1755
- PArrayType.new_function(self, loader)
1756
- end
1757
-
1758
- DATA = PTupleType.new([PDataType::DEFAULT], PCollectionType::DEFAULT_SIZE)
1759
- DEFAULT = PTupleType.new(EMPTY_ARRAY)
1760
-
1761
- protected
1762
-
1763
- # @api private
1764
- def _assignable?(o, guard)
1765
- return true if self == o
1766
- return false unless o.is_a?(PTupleType) || o.is_a?(PArrayType)
1767
- s_types = types
1768
- size_s = size_type || PIntegerType.new(*size_range)
1769
-
1770
- if o.is_a?(PTupleType)
1771
- size_o = o.size_type || PIntegerType.new(*o.size_range)
1772
- return false unless size_s.assignable?(size_o, guard)
1773
- unless s_types.empty?
1774
- o_types = o.types
1775
- return false if o_types.empty?
1776
- o_types.size.times do |index|
1777
- return false unless (s_types[index] || s_types[-1]).assignable?(o_types[index], guard)
1778
- end
1779
- end
1780
- else
1781
- size_o = o.size_type || PCollectionType::DEFAULT_SIZE
1782
- return false unless size_s.assignable?(size_o, guard)
1783
- unless s_types.empty?
1784
- o_entry = o.element_type
1785
- # Array of anything can not be assigned (unless tuple is tuple of anything) - this case
1786
- # was handled at the top of this method.
1787
- #
1788
- return false if o_entry.nil?
1789
- [s_types.size, size_o.range[1]].min.times { |index| return false unless (s_types[index] || s_types[-1]).assignable?(o_entry, guard) }
1790
- end
1791
- end
1792
- true
1793
- end
1794
- end
1795
-
1796
- # @api public
1797
- #
1798
- class PCallableType < PAnyType
1799
- # Types of parameters as a Tuple with required/optional count, or an Integer with min (required), max count
1800
- # @return [PTupleType] the tuple representing the parameter types
1801
- attr_reader :param_types
1802
-
1803
- # Although being an abstract type reference, only Callable, or all Callables wrapped in
1804
- # Optional or Variant are supported
1805
- # If not set, the meaning is that block is not supported.
1806
- # @return [PAnyType|nil] the block type
1807
- attr_reader :block_type
1808
-
1809
- # @param param_types [PTupleType]
1810
- # @param block_type [PAnyType|nil]
1811
- def initialize(param_types, block_type = nil)
1812
- @param_types = param_types
1813
- @block_type = block_type
1814
- end
1815
-
1816
- def accept(visitor, guard)
1817
- super
1818
- @param_types.accept(visitor, guard) unless @param_types.nil?
1819
- @block_type.accept(visitor, guard) unless @block_type.nil?
1820
- end
1821
-
1822
- def generalize
1823
- if self == DEFAULT
1824
- DEFAULT
1825
- else
1826
- params_t = @param_types.nil? ? nil : @param_types.generalize
1827
- block_t = @block_type.nil? ? nil : @block_type.generalize
1828
- @param_types.equal?(params_t) && @block_type.equal?(block_t) ? self : PCallableType.new(params_t, block_t)
1829
- end
1830
- end
1831
-
1832
- def normalize(guard = nil)
1833
- if self == DEFAULT
1834
- DEFAULT
1835
- else
1836
- params_t = @param_types.nil? ? nil : @param_types.normalize(guard)
1837
- block_t = @block_type.nil? ? nil : @block_type.normalize(guard)
1838
- @param_types.equal?(params_t) && @block_type.equal?(block_t) ? self : PCallableType.new(params_t, block_t)
1839
- end
1840
- end
1841
-
1842
- def instance?(o, guard = nil)
1843
- assignable?(TypeCalculator.infer(o), guard)
1844
- end
1845
-
1846
- # @api private
1847
- def callable_args?(required_callable_t, guard)
1848
- # If the required callable is euqal or more specific than self, self is acceptable arguments
1849
- required_callable_t.assignable?(self, guard)
1850
- end
1851
-
1852
- def kind_of_callable?(optional=true, guard = nil)
1853
- true
1854
- end
1855
-
1856
- # Returns the number of accepted arguments [min, max]
1857
- def size_range
1858
- @param_types.nil? ? nil : @param_types.size_range
1859
- end
1860
-
1861
- # Returns the number of accepted arguments for the last parameter type [min, max]
1862
- #
1863
- def last_range
1864
- @param_types.nil? ? nil : @param_types.repeat_last_range
1865
- end
1866
-
1867
- # Range [0,0], [0,1], or [1,1] for the block
1868
- #
1869
- def block_range
1870
- case block_type
1871
- when POptionalType
1872
- [0,1]
1873
- when PVariantType, PCallableType
1874
- [1,1]
1875
- else
1876
- [0,0]
1877
- end
1878
- end
1879
-
1880
- def hash
1881
- @param_types.hash ^ @block_type.hash
1882
- end
1883
-
1884
- def eql?(o)
1885
- self.class == o.class && @param_types == o.param_types && @block_type == o.block_type
1886
- end
1887
-
1888
- DEFAULT = PCallableType.new(nil)
1889
-
1890
- protected
1891
-
1892
- # @api private
1893
- def _assignable?(o, guard)
1894
- return false unless o.is_a?(PCallableType)
1895
- # nil param_types means, any other Callable is assignable
1896
- return true if @param_types.nil?
1897
-
1898
- # NOTE: these tests are made in reverse as it is calling the callable that is constrained
1899
- # (it's lower bound), not its upper bound
1900
- other_param_types = o.param_types
1901
-
1902
- return false if other_param_types.nil? || !other_param_types.assignable?(@param_types, guard)
1903
- # names are ignored, they are just information
1904
- # Blocks must be compatible
1905
- this_block_t = @block_type || PUndefType::DEFAULT
1906
- that_block_t = o.block_type || PUndefType::DEFAULT
1907
- that_block_t.assignable?(this_block_t, guard)
1908
- end
1909
- end
1910
-
1911
- # @api public
1912
- #
1913
- class PArrayType < PCollectionType
1914
-
1915
- # @api private
1916
- def callable_args?(callable, guard = nil)
1917
- param_t = callable.param_types
1918
- block_t = callable.block_type
1919
- # does not support calling with a block, but have to check that callable is ok with missing block
1920
- (param_t.nil? || param_t.assignable?(self, guard)) && (block_t.nil? || block_t.assignable(PUndefType::DEFAULT, guard))
1921
- end
1922
-
1923
- def generalize
1924
- if self == DATA
1925
- self
1926
- else
1927
- super
1928
- end
1929
- end
1930
-
1931
- def normalize(guard = nil)
1932
- if self == DATA
1933
- self
1934
- else
1935
- super
1936
- end
1937
- end
1938
-
1939
- def instance?(o, guard = nil)
1940
- return false unless o.is_a?(Array)
1941
- element_t = element_type
1942
- return false unless element_t.nil? || o.all? {|element| element_t.instance?(element, guard) }
1943
- size_t = size_type
1944
- size_t.nil? || size_t.instance?(o.size, guard)
1945
- end
1946
-
1947
- # Returns a new function that produces an Array
1948
- #
1949
- def self.new_function(_, loader)
1950
- @new_function ||= Puppet::Functions.create_loaded_function(:new_array, loader) do
1951
-
1952
- dispatch :from_args do
1953
- param 'Any', :from
1954
- optional_param 'Boolean', :wrap
1955
- end
1956
-
1957
- def from_args(from, wrap = false)
1958
- case from
1959
- when NilClass
1960
- if wrap
1961
- [nil]
1962
- else
1963
- throw :undefined_value
1964
- end
1965
- when Array
1966
- from
1967
- when Hash
1968
- wrap ? [from] : from.to_a
1969
- else
1970
- if wrap
1971
- [from]
1972
- else
1973
- if PIterableType::DEFAULT.instance?(from)
1974
- Iterable.on(from).to_a
1975
- else
1976
- t = Puppet::Pops::Types::TypeCalculator.singleton.infer(from).generalize
1977
- raise TypeConversionError.new("Value of type '#{t}' cannot be converted to Array")
1978
- end
1979
- end
1980
- end
1981
- end
1982
- end
1983
- end
1984
-
1985
- DATA = PArrayType.new(PDataType::DEFAULT, DEFAULT_SIZE)
1986
- DEFAULT = PArrayType.new(nil)
1987
- EMPTY = PArrayType.new(PUnitType::DEFAULT, ZERO_SIZE)
1988
-
1989
- protected
1990
-
1991
- # Array is assignable if o is an Array and o's element type is assignable, or if o is a Tuple
1992
- # @api private
1993
- def _assignable?(o, guard)
1994
- s_entry = element_type
1995
- if o.is_a?(PTupleType)
1996
- # If s_entry is nil, this Array type has no opinion on element types. Therefore any
1997
- # tuple can be assigned.
1998
- return true if s_entry.nil?
1999
-
2000
- o_types = o.types
2001
- size_s = size_type || DEFAULT_SIZE
2002
- size_o = o.size_type
2003
- if size_o.nil?
2004
- type_count = o_types.size
2005
- size_o = PIntegerType.new(type_count, type_count)
2006
- end
2007
- size_s.assignable?(size_o) && o_types.all? { |ot| s_entry.assignable?(ot, guard) }
2008
- elsif o.is_a?(PArrayType)
2009
- super && (s_entry.nil? || s_entry.assignable?(o.element_type, guard))
2010
- else
2011
- false
2012
- end
2013
- end
2014
- end
2015
-
2016
- # @api public
2017
- #
2018
- class PHashType < PCollectionType
2019
- attr_accessor :key_type
2020
-
2021
- def initialize(key_type, value_type, size_type = nil)
2022
- super(value_type, size_type)
2023
- if !size_type.nil? && size_type.from == 0 && size_type.to == 0
2024
- @key_type = PUnitType::DEFAULT
2025
- else
2026
- @key_type = key_type
2027
- end
2028
- end
2029
-
2030
- def accept(visitor, guard)
2031
- super
2032
- @key_type.accept(visitor, guard) unless @key_type.nil?
2033
- end
2034
-
2035
- def generalize
2036
- if self == DEFAULT || self == DATA || self == EMPTY
2037
- self
2038
- else
2039
- key_t = @key_type
2040
- key_t = key_t.generalize unless key_t.nil?
2041
- value_t = @element_type
2042
- value_t = value_t.generalize unless value_t.nil?
2043
- @size_type.nil? && @key_type.equal?(key_t) && @element_type.equal?(value_t) ? self : PHashType.new(key_t, value_t, nil)
2044
- end
2045
- end
2046
-
2047
- def normalize(guard = nil)
2048
- if self == DEFAULT || self == DATA || self == EMPTY
2049
- self
2050
- else
2051
- key_t = @key_type
2052
- key_t = key_t.normalize(guard) unless key_t.nil?
2053
- value_t = @element_type
2054
- value_t = value_t.normalize(guard) unless value_t.nil?
2055
- @size_type.nil? && @key_type.equal?(key_t) && @element_type.equal?(value_t) ? self : PHashType.new(key_t, value_t, nil)
2056
- end
2057
- end
2058
-
2059
- def hash
2060
- super ^ @key_type.hash
2061
- end
2062
-
2063
- def instance?(o, guard = nil)
2064
- return false unless o.is_a?(Hash)
2065
- key_t = key_type
2066
- element_t = element_type
2067
- if (key_t.nil? || o.keys.all? {|key| key_t.instance?(key, guard) }) &&
2068
- (element_t.nil? || o.values.all? {|value| element_t.instance?(value, guard) })
2069
- size_t = size_type
2070
- size_t.nil? || size_t.instance?(o.size, guard)
2071
- else
2072
- false
2073
- end
2074
- end
2075
-
2076
- def iterable?(guard = nil)
2077
- true
2078
- end
2079
-
2080
- def iterable_type(guard = nil)
2081
- if self == DEFAULT || self == EMPTY
2082
- PIterableType.new(DEFAULT_KEY_PAIR_TUPLE)
2083
- else
2084
- PIterableType.new(PTupleType.new([@key_type, @element_type], KEY_PAIR_TUPLE_SIZE))
2085
- end
2086
- end
2087
-
2088
- def eql?(o)
2089
- super && @key_type == o.key_type
2090
- end
2091
-
2092
- def is_the_empty_hash?
2093
- self == EMPTY
2094
- end
2095
-
2096
- # Returns a new function that produces a Hash
2097
- #
2098
- def self.new_function(_, loader)
2099
- @new_function ||= Puppet::Functions.create_loaded_function(:new_hash, loader) do
2100
- local_types do
2101
- type 'KeyValueArray = Array[Tuple[Any,Any],1]'
2102
- end
2103
-
2104
- dispatch :from_tuples do
2105
- param 'KeyValueArray', :from
2106
- end
2107
-
2108
- dispatch :from_array do
2109
- param 'Any', :from
2110
- end
2111
-
2112
- def from_tuples(tuple_array)
2113
- Hash[tuple_array]
2114
- end
2115
-
2116
- def from_array(from)
2117
- case from
2118
- when NilClass
2119
- throw :undefined_value
2120
- when Array
2121
- if from.size == 0
2122
- {}
2123
- else
2124
- unless from.size % 2 == 0
2125
- raise TypeConversionError.new("odd number of arguments for Hash")
2126
- end
2127
- Hash[*from]
2128
- end
2129
- when Hash
2130
- from
2131
- else
2132
- if PIterableType::DEFAULT.instance?(from)
2133
- Hash[*Iterable.on(from).to_a]
2134
- else
2135
- t = Puppet::Pops::Types::TypeCalculator.singleton.infer(from).generalize
2136
- raise TypeConversionError.new("Value of type '#{t}' cannot be converted to Hash")
2137
- end
2138
- end
2139
- end
2140
- end
2141
- end
2142
-
2143
- DEFAULT = PHashType.new(nil, nil)
2144
- KEY_PAIR_TUPLE_SIZE = PIntegerType.new(2,2)
2145
- DEFAULT_KEY_PAIR_TUPLE = PTupleType.new([PUnitType::DEFAULT, PUnitType::DEFAULT], KEY_PAIR_TUPLE_SIZE)
2146
- DATA = PHashType.new(PScalarType::DEFAULT, PDataType::DEFAULT, DEFAULT_SIZE)
2147
- EMPTY = PHashType.new(PUnitType::DEFAULT, PUnitType::DEFAULT, PIntegerType.new(0, 0))
2148
-
2149
- protected
2150
-
2151
- # Hash is assignable if o is a Hash and o's key and element types are assignable
2152
- # @api private
2153
- def _assignable?(o, guard)
2154
- case o
2155
- when PHashType
2156
- size_s = size_type
2157
- return true if (size_s.nil? || size_s.from == 0) && o.is_the_empty_hash?
2158
- return false unless (key_type.nil? || key_type.assignable?(o.key_type, guard)) && (element_type.nil? || element_type.assignable?(o.element_type, guard))
2159
- super
2160
- when PStructType
2161
- # hash must accept String as key type
2162
- # hash must accept all value types
2163
- # hash must accept the size of the struct
2164
- o_elements = o.elements
2165
- (size_type || DEFAULT_SIZE).instance?(o_elements.size, guard) &&
2166
- o_elements.all? {|e| (key_type.nil? || key_type.instance?(e.name, guard)) && (element_type.nil? || element_type.assignable?(e.value_type, guard)) }
2167
- else
2168
- false
2169
- end
2170
- end
2171
- end
2172
-
2173
- # A flexible type describing an any? of other types
2174
- # @api public
2175
- #
2176
- class PVariantType < PAnyType
2177
- include Enumerable
2178
-
2179
- attr_reader :types
2180
-
2181
- # Checks if the number of unique types in the given array is greater than one, and if so
2182
- # creates a Variant with those types and returns it. If only one unique type is found,
2183
- # that type is instead returned.
2184
- #
2185
- # @param types [Array<PAnyType>] the variants
2186
- # @return [PAnyType] the resulting type
2187
- # @api public
2188
- def self.maybe_create(types)
2189
- types = types.uniq
2190
- types.size == 1 ? types[0] : new(types)
2191
- end
2192
-
2193
- # @param types [Array[PAnyType]] the variants
2194
- def initialize(types)
2195
- @types = types.freeze
2196
- end
2197
-
2198
- def accept(visitor, guard)
2199
- super
2200
- @types.each { |t| t.accept(visitor, guard) }
2201
- end
2202
-
2203
- def each
2204
- if block_given?
2205
- types.each { |t| yield t }
2206
- else
2207
- types.to_enum
2208
- end
2209
- end
2210
-
2211
- def generalize
2212
- if self == DEFAULT || self == DATA
2213
- self
2214
- else
2215
- alter_type_array(@types, :generalize) { |altered| PVariantType.maybe_create(altered) }
2216
- end
2217
- end
2218
-
2219
- def normalize(guard = nil)
2220
- if self == DEFAULT || self == DATA || @types.empty?
2221
- self
2222
- else
2223
- # Normalize all contained types
2224
- modified = false
2225
- types = alter_type_array(@types, :normalize, guard)
2226
- if types == self
2227
- types = @types
2228
- else
2229
- modified = true
2230
- end
2231
-
2232
- if types.size == 1
2233
- types[0]
2234
- elsif types.any? { |t| t.is_a?(PUndefType) }
2235
- # Undef entry present. Use an OptionalType with a normalized Variant of all types that are not Undef
2236
- POptionalType.new(PVariantType.maybe_create(types.reject { |ot| ot.is_a?(PUndefType) }).normalize(guard)).normalize(guard)
2237
- else
2238
- # Merge all variants into this one
2239
- types = types.map do |t|
2240
- if t.is_a?(PVariantType)
2241
- modified = true
2242
- t.types
2243
- else
2244
- t
2245
- end
2246
- end
2247
- types.flatten! if modified
2248
- size_before_merge = types.size
2249
-
2250
- types = swap_not_undefs(types)
2251
- types = swap_optionals(types)
2252
- types = merge_enums(types)
2253
- types = merge_patterns(types)
2254
- types = merge_int_ranges(types)
2255
- types = merge_float_ranges(types)
2256
- types = merge_version_ranges(types)
2257
-
2258
- if types.size == 1
2259
- types[0]
2260
- else
2261
- modified || types.size != size_before_merge ? PVariantType.maybe_create(types) : self
2262
- end
2263
- end
2264
- end
2265
- end
2266
-
2267
- def hash
2268
- @types.hash
2269
- end
2270
-
2271
- def instance?(o, guard = nil)
2272
- # instance of variant if o is instance? of any of variant's types
2273
- @types.any? { |type| type.instance?(o, guard) }
2274
- end
2275
-
2276
- def really_instance?(o, guard = nil)
2277
- @types.inject(-1) do |memo, type|
2278
- ri = type.really_instance?(o, guard)
2279
- memo = ri if ri > memo
2280
- memo
2281
- end
2282
- end
2283
-
2284
- def kind_of_callable?(optional = true, guard = nil)
2285
- @types.all? { |type| type.kind_of_callable?(optional, guard) }
2286
- end
2287
-
2288
- def resolved?
2289
- @types.all? { |type| type.resolved? }
2290
- end
2291
-
2292
- def eql?(o)
2293
- o = DATA if o.is_a?(PDataType)
2294
- self.class == o.class && @types.size == o.types.size && (@types - o.types).empty?
2295
- end
2296
-
2297
- # Variant compatible with the Data type.
2298
- DATA = PVariantType.new([PHashType::DATA, PArrayType::DATA, PScalarType::DEFAULT, PUndefType::DEFAULT, PTupleType::DATA])
2299
-
2300
- DEFAULT = PVariantType.new(EMPTY_ARRAY)
2301
-
2302
- protected
2303
-
2304
- # @api private
2305
- def _assignable?(o, guard)
2306
- # Data is a specific variant
2307
- o = DATA if o.is_a?(PDataType)
2308
- if o.is_a?(PVariantType)
2309
- # A variant is assignable if all of its options are assignable to one of this type's options
2310
- return true if self == o
2311
- o.types.all? do |other|
2312
- # if the other is a Variant, all of its options, but be assignable to one of this type's options
2313
- other = other.is_a?(PDataType) ? DATA : other
2314
- if other.is_a?(PVariantType)
2315
- assignable?(other, guard)
2316
- else
2317
- types.any? {|option_t| option_t.assignable?(other, guard) }
2318
- end
2319
- end
2320
- else
2321
- # A variant is assignable if o is assignable to any of its types
2322
- types.any? { |option_t| option_t.assignable?(o, guard) }
2323
- end
2324
- end
2325
-
2326
- # @api private
2327
- def swap_optionals(array)
2328
- if array.size > 1
2329
- parts = array.partition {|t| t.is_a?(POptionalType) }
2330
- optionals = parts[0]
2331
- if optionals.size > 1
2332
- others = parts[1]
2333
- others << POptionalType.new(PVariantType.maybe_create(optionals.map { |optional| optional.type }).normalize)
2334
- array = others
2335
- end
2336
- end
2337
- array
2338
- end
2339
-
2340
- # @api private
2341
- def swap_not_undefs(array)
2342
- if array.size > 1
2343
- parts = array.partition {|t| t.is_a?(PNotUndefType) }
2344
- not_undefs = parts[0]
2345
- if not_undefs.size > 1
2346
- others = parts[1]
2347
- others << PNotUndefType.new(PVariantType.maybe_create(not_undefs.map { |not_undef| not_undef.type }).normalize)
2348
- array = others
2349
- end
2350
- end
2351
- array
2352
- end
2353
-
2354
- # @api private
2355
- def merge_enums(array)
2356
- if array.size > 1
2357
- parts = array.partition {|t| t.is_a?(PEnumType) || t.is_a?(PStringType) && !t.values.empty? }
2358
- enums = parts[0]
2359
- if enums.size > 1
2360
- others = parts[1]
2361
- others << PEnumType.new(enums.map { |enum| enum.values }.flatten.uniq)
2362
- array = others
2363
- end
2364
- end
2365
- array
2366
- end
2367
-
2368
- # @api private
2369
- def merge_patterns(array)
2370
- if array.size > 1
2371
- parts = array.partition {|t| t.is_a?(PPatternType) }
2372
- patterns = parts[0]
2373
- if patterns.size > 1
2374
- others = parts[1]
2375
- others << PPatternType.new(patterns.map { |pattern| pattern.patterns }.flatten.uniq)
2376
- array = others
2377
- end
2378
- end
2379
- array
2380
- end
2381
-
2382
- # @api private
2383
- def merge_int_ranges(array)
2384
- if array.size > 1
2385
- parts = array.partition {|t| t.is_a?(PIntegerType) }
2386
- ranges = parts[0]
2387
- array = merge_ranges(ranges) + parts[1] if ranges.size > 1
2388
- end
2389
- array
2390
- end
2391
-
2392
- def merge_float_ranges(array)
2393
- if array.size > 1
2394
- parts = array.partition {|t| t.is_a?(PFloatType) }
2395
- ranges = parts[0]
2396
- array = merge_ranges(ranges) + parts[1] if ranges.size > 1
2397
- end
2398
- array
2399
- end
2400
-
2401
- def merge_version_ranges(array)
2402
- if array.size > 1
2403
- parts = array.partition {|t| t.is_a?(PSemVerType) }
2404
- ranges = parts[0]
2405
- array = [PSemVerType.new(*ranges.map(&:ranges).flatten)] + parts[1] if ranges.size > 1
2406
- end
2407
- array
2408
- end
2409
-
2410
- # @api private
2411
- def merge_ranges(ranges)
2412
- result = []
2413
- until ranges.empty?
2414
- unmerged = []
2415
- x = ranges.pop
2416
- result << ranges.inject(x) do |memo, y|
2417
- merged = memo.merge(y)
2418
- if merged.nil?
2419
- unmerged << y
2420
- else
2421
- memo = merged
2422
- end
2423
- memo
2424
- end
2425
- ranges = unmerged
2426
- end
2427
- result
2428
- end
2429
- end
2430
-
2431
- # Abstract representation of a type that can be placed in a Catalog.
2432
- # @api public
2433
- #
2434
- class PCatalogEntryType < PAnyType
2435
-
2436
- DEFAULT = PCatalogEntryType.new
2437
-
2438
- def instance?(o, guard = nil)
2439
- assignable?(TypeCalculator.infer(o), guard)
2440
- end
2441
-
2442
- protected
2443
- # @api private
2444
- def _assignable?(o, guard)
2445
- o.is_a?(PCatalogEntryType)
2446
- end
2447
- end
2448
-
2449
- # Represents a (host-) class in the Puppet Language.
2450
- # @api public
2451
- #
2452
- class PHostClassType < PCatalogEntryType
2453
- attr_reader :class_name
2454
-
2455
- NAME = 'Class'.freeze
2456
-
2457
- def initialize(class_name)
2458
- @class_name = class_name
2459
- end
2460
-
2461
- def hash
2462
- 11 ^ @class_name.hash
2463
- end
2464
- def eql?(o)
2465
- self.class == o.class && @class_name == o.class_name
2466
- end
2467
-
2468
- def simple_name
2469
- NAME
2470
- end
2471
-
2472
- DEFAULT = PHostClassType.new(nil)
2473
-
2474
- protected
2475
-
2476
- # @api private
2477
- def _assignable?(o, guard)
2478
- return false unless o.is_a?(PHostClassType)
2479
- # Class = Class[name}, Class[name] != Class
2480
- return true if @class_name.nil?
2481
- # Class[name] = Class[name]
2482
- @class_name == o.class_name
2483
- end
2484
- end
2485
-
2486
- # Represents a Resource Type in the Puppet Language
2487
- # @api public
2488
- #
2489
- class PResourceType < PCatalogEntryType
2490
- attr_reader :type_name, :title, :downcased_name
2491
-
2492
- def initialize(type_name, title = nil)
2493
- @type_name = type_name.freeze
2494
- @title = title.freeze
2495
- @downcased_name = type_name.nil? ? nil : @type_name.downcase.freeze
2496
- end
2497
-
2498
- def eql?(o)
2499
- self.class == o.class && @downcased_name == o.downcased_name && @title == o.title
2500
- end
2501
-
2502
- def hash
2503
- @downcased_name.hash ^ @title.hash
2504
- end
2505
-
2506
- DEFAULT = PResourceType.new(nil)
2507
-
2508
- protected
2509
-
2510
- # @api private
2511
- def _assignable?(o, guard)
2512
- o.is_a?(PResourceType) && (@downcased_name.nil? || @downcased_name == o.downcased_name && (@title.nil? || @title == o.title))
2513
- end
2514
- end
2515
-
2516
- # Represents a type that accept PUndefType instead of the type parameter
2517
- # required_type - is a short hand for Variant[T, Undef]
2518
- # @api public
2519
- #
2520
- class POptionalType < PTypeWithContainedType
2521
- def optional_type
2522
- @type
2523
- end
2524
-
2525
- def kind_of_callable?(optional=true, guard = nil)
2526
- optional && !@type.nil? && @type.kind_of_callable?(optional, guard)
2527
- end
2528
-
2529
- def instance?(o, guard = nil)
2530
- PUndefType::DEFAULT.instance?(o, guard) || (!@type.nil? && @type.instance?(o, guard))
2531
- end
2532
-
2533
- def normalize(guard = nil)
2534
- n = super
2535
- if n.type.nil?
2536
- n
2537
- else
2538
- if n.type.is_a?(PNotUndefType)
2539
- # No point in having an NotUndef in an Optional
2540
- POptionalType.new(n.type.type).normalize
2541
- elsif n.type.assignable?(PUndefType::DEFAULT)
2542
- # THe type is Optional anyway, so it can be stripped of
2543
- n.type
2544
- else
2545
- n
2546
- end
2547
- end
2548
- end
2549
-
2550
- def new_function(loader)
2551
- optional_type.new_function(loader)
2552
- end
2553
-
2554
- DEFAULT = POptionalType.new(nil)
2555
-
2556
- protected
2557
-
2558
- # @api private
2559
- def _assignable?(o, guard)
2560
- return true if o.is_a?(PUndefType)
2561
- return true if @type.nil?
2562
- if o.is_a?(POptionalType)
2563
- @type.assignable?(o.optional_type, guard)
2564
- else
2565
- @type.assignable?(o, guard)
2566
- end
2567
- end
2568
- end
2569
-
2570
- class PTypeReferenceType < PAnyType
2571
- attr_reader :type_string
2572
-
2573
- def initialize(type_string)
2574
- @type_string = type_string
2575
- end
2576
-
2577
- def callable?(args)
2578
- false
2579
- end
2580
-
2581
- def instance?(o, guard = nil)
2582
- false
2583
- end
2584
-
2585
- def hash
2586
- @type_string.hash
2587
- end
2588
-
2589
- def eql?(o)
2590
- super && o.type_string == @type_string
2591
- end
2592
-
2593
- def resolve(type_parser, loader)
2594
- type_parser.parse(@type_string, loader)
2595
- end
2596
-
2597
- protected
2598
-
2599
- def _assignable?(o, guard)
2600
- # A type must be assignable to itself or a lot of unit tests will break
2601
- o == self
2602
- end
2603
-
2604
- DEFAULT = PTypeReferenceType.new('UnresolvedReference')
2605
- end
2606
-
2607
- # Describes a named alias for another Type.
2608
- # The alias is created with a name and an unresolved type expression. The type expression may
2609
- # in turn contain other aliases (including the alias that contains it) which means that an alias
2610
- # might contain self recursion. Whether or not that is the case is computed and remembered when the alias
2611
- # is resolved since guarding against self recursive constructs is relatively expensive.
2612
- #
2613
- # @api public
2614
- class PTypeAliasType < PAnyType
2615
- attr_reader :name
2616
-
2617
- # @param name [String] The name of the type
2618
- # @param type_expr [Model::PopsObject] The expression that describes the aliased type
2619
- # @param resolved_type [PAnyType] the resolve type (only used for the DEFAULT initialization)
2620
- def initialize(name, type_expr, resolved_type = nil)
2621
- @name = name
2622
- @type_expr = type_expr
2623
- @resolved_type = resolved_type
2624
- @self_recursion = false
2625
- end
2626
-
2627
- def assignable?(o, guard = nil)
2628
- if @self_recursion
2629
- guard ||= RecursionGuard.new
2630
- return true if guard.add_this(self) == RecursionGuard::SELF_RECURSION_IN_BOTH
2631
- end
2632
- super(o, guard)
2633
- end
2634
-
2635
- # Returns the resolved type. The type must have been resolved by a call prior to calls to this
2636
- # method or an error will be raised.
2637
- #
2638
- # @return [PAnyType] The resolved type of this alias.
2639
- # @raise [Puppet::Error] unless the type has been resolved prior to calling this method
2640
- def resolved_type
2641
- raise Puppet::Error, "Reference to unresolved type #{@name}" unless @resolved_type
2642
- @resolved_type
2643
- end
2644
-
2645
- def callable_args?(callable, guard)
2646
- guarded_recursion(guard, false) { |g| resolved_type.callable_args?(callable, g) }
2647
- end
2648
-
2649
- def check_self_recursion(originator)
2650
- resolved_type.check_self_recursion(originator) unless originator.equal?(self)
2651
- end
2652
-
2653
- def kind_of_callable?(optional=true, guard = nil)
2654
- guarded_recursion(guard, false) { |g| resolved_type.kind_of_callable?(optional, g) }
2655
- end
2656
-
2657
- def instance?(o, guard = nil)
2658
- really_instance?(o, guard) == 1
2659
- end
2660
-
2661
- def iterable?(guard = nil)
2662
- guarded_recursion(guard, false) { |g| resolved_type.iterable?(g) }
2663
- end
2664
-
2665
- def iterable_type(guard = nil)
2666
- guarded_recursion(guard, nil) { |g| resolved_type.iterable_type(g) }
2667
- end
2668
-
2669
- def hash
2670
- @name.hash
2671
- end
2672
-
2673
- # Acceptor used when checking for self recursion and that a type contains
2674
- # something other than aliases or type references
2675
- #
2676
- # @api private
2677
- class AssertOtherTypeAcceptor
2678
- def initialize
2679
- @other_type_detected = false
2680
- end
2681
-
2682
- def visit(type, _)
2683
- unless type.is_a?(PTypeAliasType) || type.is_a?(PVariantType) || type.is_a?(PTypeReferenceType)
2684
- @other_type_detected = true
2685
- end
2686
- end
2687
-
2688
- def other_type_detected?
2689
- @other_type_detected
2690
- end
2691
- end
2692
-
2693
- # Acceptor used when re-checking for self recursion after a self recursion has been detected
2694
- #
2695
- # @api private
2696
- class AssertSelfRecursionStatusAcceptor
2697
- def visit(type, _)
2698
- type.set_self_recursion_status if type.is_a?(PTypeAliasType)
2699
- end
2700
- end
2701
-
2702
- def set_self_recursion_status
2703
- return if @self_recursion || @resolved_type.is_a?(PTypeReferenceType)
2704
- @self_recursion = true
2705
- guard = RecursionGuard.new
2706
- accept(NoopTypeAcceptor::INSTANCE, guard)
2707
- @self_recursion = guard.recursive_this?(self)
2708
- when_self_recursion_detected if @self_recursion # no difference
2709
- end
2710
-
2711
- # Called from the TypeParser once it has found a type using the Loader. The TypeParser will
2712
- # interpret the contained expression and the resolved type is remembered. This method also
2713
- # checks and remembers if the resolve type contains self recursion.
2714
- #
2715
- # @param type_parser [TypeParser] type parser that will interpret the type expression
2716
- # @param loader [Loader::Loader] loader to use when loading type aliases
2717
- # @return [PTypeAliasType] the receiver of the call, i.e. `self`
2718
- # @api private
2719
- def resolve(type_parser, loader)
2720
- if @resolved_type.nil?
2721
- # resolved to PTypeReferenceType::DEFAULT during resolve to avoid endless recursion
2722
- @resolved_type = PTypeReferenceType::DEFAULT
2723
- @self_recursion = true # assumed while it being found out below
2724
- begin
2725
- @resolved_type = type_parser.interpret(@type_expr, loader).normalize
2726
-
2727
- # Find out if this type is recursive. A recursive type has performance implications
2728
- # on several methods and this knowledge is used to avoid that for non-recursive
2729
- # types.
2730
- guard = RecursionGuard.new
2731
- real_type_asserter = AssertOtherTypeAcceptor.new
2732
- accept(real_type_asserter, guard)
2733
- unless real_type_asserter.other_type_detected?
2734
- raise ArgumentError, "Type alias '#{name}' cannot be resolved to a real type"
2735
- end
2736
- @self_recursion = guard.recursive_this?(self)
2737
- # All aliases involved must re-check status since this alias is now resolved
2738
- if @self_recursion
2739
- accept(AssertSelfRecursionStatusAcceptor.new, RecursionGuard.new)
2740
- when_self_recursion_detected
2741
- end
2742
- rescue
2743
- @resolved_type = nil
2744
- raise
2745
- end
2746
- else
2747
- # An alias may appoint an Object type that isn't resolved yet. The default type
2748
- # reference is used to prevent endless recursion and should not be resolved here.
2749
- @resolved_type.resolve(type_parser, loader) unless @resolved_type.equal?(PTypeReferenceType::DEFAULT)
2750
- end
2751
- self
2752
- end
2753
-
2754
- def eql?(o)
2755
- super && o.name == @name
2756
- end
2757
-
2758
- def accept(visitor, guard)
2759
- guarded_recursion(guard, nil) do |g|
2760
- super(visitor, g)
2761
- resolved_type.accept(visitor, g)
2762
- end
2763
- end
2764
-
2765
- def self_recursion?
2766
- @self_recursion
2767
- end
2768
-
2769
- # Returns the expanded string the form of the alias, e.g. <alias name> = <resolved type>
2770
- #
2771
- # @return [String] the expanded form of this alias
2772
- # @api public
2773
- def to_s
2774
- TypeFormatter.singleton.alias_expanded_string(self)
2775
- end
2776
-
2777
- # Delegates to resolved type
2778
- def respond_to_missing?(name, include_private)
2779
- resolved_type.respond_to?(name, include_private)
2780
- end
2781
-
2782
- # Delegates to resolved type
2783
- def method_missing(name, *arguments, &block)
2784
- resolved_type.send(name, *arguments, &block)
2785
- end
2786
-
2787
- # @api private
2788
- def really_instance?(o, guard = nil)
2789
- if @self_recursion
2790
- guard ||= RecursionGuard.new
2791
- guard.add_that(o)
2792
- return 0 if guard.add_this(self) == RecursionGuard::SELF_RECURSION_IN_BOTH
2793
- end
2794
- resolved_type.really_instance?(o, guard)
2795
- end
2796
-
2797
- protected
2798
-
2799
- def _assignable?(o, guard)
2800
- resolved_type.assignable?(o, guard)
2801
- end
2802
-
2803
- def new_function(loader)
2804
- resolved_type.new_function(loader)
2805
- end
2806
-
2807
- private
2808
-
2809
- def guarded_recursion(guard, dflt)
2810
- if @self_recursion
2811
- guard ||= RecursionGuard.new
2812
- (guard.add_this(self) & RecursionGuard::SELF_RECURSION_IN_THIS) == 0 ? yield(guard) : dflt
2813
- else
2814
- yield(guard)
2815
- end
2816
- end
2817
-
2818
- def when_self_recursion_detected
2819
- if @resolved_type.is_a?(PVariantType)
2820
- # Drop variants that are not real types
2821
- resolved_types = @resolved_type.types
2822
- real_types = resolved_types.select do |type|
2823
- next false if type == self
2824
- real_type_asserter = AssertOtherTypeAcceptor.new
2825
- accept(real_type_asserter, RecursionGuard.new)
2826
- real_type_asserter.other_type_detected?
2827
- end
2828
- if real_types.size != resolved_types.size
2829
- if real_types.size == 1
2830
- @resolved_type = real_types[0]
2831
- else
2832
- @resolved_type = PVariantType.maybe_create(real_types)
2833
- end
2834
- # Drop self recursion status in case it's not self recursive anymore
2835
- guard = RecursionGuard.new
2836
- accept(NoopTypeAcceptor::INSTANCE, guard)
2837
- @self_recursion = guard.recursive_this?(self)
2838
- end
2839
- end
2840
- @resolved_type.check_self_recursion(self) if @self_recursion
2841
- end
2842
-
2843
- DEFAULT = PTypeAliasType.new('UnresolvedAlias', nil, PTypeReferenceType::DEFAULT)
2844
- end
2845
- end
2846
- end
2847
-
2848
- require 'puppet/pops/pcore'
2849
-
2850
- require_relative 'puppet_object'
2851
- require_relative 'p_object_type'
2852
- require_relative 'p_runtime_type'
2853
- require_relative 'p_sem_ver_type'
2854
- require_relative 'p_sem_ver_range_type'
2855
- require_relative 'implementation_registry'