puppet-retrospec 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -3
- data/README.md +8 -0
- data/VERSION +1 -1
- data/bin/retrospec +7 -0
- data/lib/retrospec.rb +1 -0
- data/lib/retrospec/helpers.rb +1 -1
- data/lib/retrospec/version.rb +2 -2
- data/puppet-retrospec.gemspec +1268 -9
- data/vendor/gems/puppet-3.7.3/COMMITTERS.md +244 -0
- data/vendor/gems/puppet-3.7.3/CONTRIBUTING.md +91 -0
- data/vendor/gems/puppet-3.7.3/Gemfile +102 -0
- data/vendor/gems/puppet-3.7.3/LICENSE +17 -0
- data/vendor/gems/puppet-3.7.3/README.md +76 -0
- data/vendor/gems/puppet-3.7.3/Rakefile +68 -0
- data/vendor/gems/puppet-3.7.3/bin/extlookup2hiera +56 -0
- data/vendor/gems/puppet-3.7.3/bin/puppet +8 -0
- data/vendor/gems/puppet-3.7.3/conf/auth.conf +120 -0
- data/vendor/gems/puppet-3.7.3/conf/fileserver.conf +42 -0
- data/vendor/gems/puppet-3.7.3/conf/tagmail.conf +16 -0
- data/vendor/gems/puppet-3.7.3/install.rb +429 -0
- data/vendor/gems/puppet-3.7.3/lib/hiera/backend/puppet_backend.rb +103 -0
- data/vendor/gems/puppet-3.7.3/lib/hiera/scope.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/hiera_puppet.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet.rb +277 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/agent.rb +121 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/agent/disabler.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/agent/locker.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application.rb +513 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/agent.rb +480 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/apply.rb +299 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/ca.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/catalog.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/cert.rb +277 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate_request.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate_revocation_list.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/config.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/describe.rb +254 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/device.rb +238 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/doc.rb +273 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/face_base.rb +250 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/facts.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/file.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/filebucket.rb +184 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/help.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/indirection_base.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/inspect.rb +179 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_data.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_listener.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_probe.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/key.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/kick.rb +351 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/man.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/master.rb +304 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/module.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/node.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/parser.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/plugin.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/queue.rb +161 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/report.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/resource.rb +228 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/resource_type.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/secret_agent.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/application/status.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/bindings.rb +147 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/coercion.rb +40 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/configurer.rb +305 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/downloader.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/downloader_factory.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/fact_handler.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine.rb +80 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/any.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/exists.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/false.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/feature.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/true.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine/variable.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confine_collection.rb +50 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/confiner.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/context.rb +101 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/context/trusted_information.rb +56 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/daemon.rb +182 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/data_binding.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/defaults.rb +2084 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/dsl.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/dsl/resource_api.rb +120 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/dsl/resource_type_api.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/environments.rb +434 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/error.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/dot.rb +326 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/base.rb +472 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/grammar.ry +248 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/makefile +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/parser.rb +400 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/common.rb +385 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure/generator.rb +394 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure/parser.rb +318 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/version.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/ca.rb +254 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/catalog.rb +130 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/catalog/select.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate.rb +160 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_request.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_revocation_list.rb +58 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/config.rb +119 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/facts.rb +81 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/file.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/file/download.rb +57 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/file/store.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/help.rb +194 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/action.erb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/face.erb +111 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/global.erb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/man.erb +152 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_data.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_listener.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_probe.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/key.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/man.rb +99 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/build.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/changes.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/generate.rb +251 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/install.rb +145 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/list.rb +275 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/search.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/uninstall.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/upgrade.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/node.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/node/clean.rb +159 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/parser.rb +160 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/plugin.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/report.rb +54 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/resource.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/resource_type.rb +81 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/secret_agent.rb +54 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/face/status.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/base.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/eventlog.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/external_facts.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/libuser.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/msgpack.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/pe_license.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/pson.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rack.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rails.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rdoc1.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rubygems.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/selinux.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/ssh.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/stomp.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/feature/zlib.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket/dipper.rb +119 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket/file.rb +157 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_collection.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_collection/lookup.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/base.rb +95 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/configuration.rb +109 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/configuration/parser.rb +121 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/content.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/fileset.rb +172 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/metadata.rb +199 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount.rb +39 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/file.rb +121 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/modules.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/pluginfacts.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/plugins.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/terminus_helper.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/terminus_selector.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system.rb +366 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file18.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file19.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file19windows.rb +107 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file_impl.rb +145 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/memory_file.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/memory_impl.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/path_pattern.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/uniquefile.rb +190 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/forge.rb +226 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/forge/cache.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/forge/errors.rb +112 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/forge/repository.rb +182 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions.rb +555 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/assert_type.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/each.rb +111 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/epp.rb +54 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/filter.rb +113 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/import.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/inline_epp.rb +88 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/map.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/match.rb +102 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/reduce.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/slice.rb +126 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/functions/with.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/key.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/prioritizer.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/random_prioritizer.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/rb_tree_map.rb +388 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/relationship_graph.rb +246 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/sequential_prioritizer.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/simple_graph.rb +566 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/graph/title_hash_prioritizer.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/active_record.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/active_record.rb +39 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/compiler.rb +182 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/json.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/msgpack.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/queue.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/rest.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/static_compiler.rb +214 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/store_configs.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/yaml.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/ca.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/disabled_ca.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/file.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/rest.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/ca.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/disabled_ca.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/file.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/memory.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/rest.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/ca.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/file.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/rest.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status/file.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status/rest.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/code.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/couch.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/data_binding/hiera.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/data_binding/none.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/direct_file_server.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/envelope.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/errors.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/exec.rb +38 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/face.rb +139 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/active_record.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/couch.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/facter.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/inventory_active_record.rb +110 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/inventory_service.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/memory.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/network_device.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/rest.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/store_configs.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/yaml.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/file.rb +142 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/rest.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/selector.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/file.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/file_server.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/rest.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/selector.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/file.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/file_server.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/rest.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/selector.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_server.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/hiera.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/indirection.rb +336 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data/local.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data/rest.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/rest.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe/local.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe/rest.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/json.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/ca.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/disabled_ca.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/file.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/memory.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/ldap.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/memory.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/msgpack.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/active_record.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/exec.rb +69 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/ldap.rb +257 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/memory.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/msgpack.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/plain.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/rest.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/store_configs.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/write_only_yaml.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/yaml.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/none.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/plain.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/queue.rb +80 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/msgpack.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/processor.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/rest.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/yaml.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/request.rb +317 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/active_record.rb +104 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/ral.rb +64 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/rest.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/store_configs.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/validator.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type/parser.rb +101 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type/rest.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/rest.rb +267 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/run/local.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/run/rest.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/ssl_file.rb +180 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status/local.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status/rest.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/store_configs.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/terminus.rb +169 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/yaml.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface.rb +235 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action.rb +374 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action_builder.rb +149 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action_manager.rb +101 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/documentation.rb +342 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/face_collection.rb +125 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option.rb +150 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option_builder.rb +93 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option_manager.rb +99 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/loaders.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/metatype/manager.rb +184 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module.rb +339 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool.rb +194 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/application.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/builder.rb +148 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/checksummer.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/installer.rb +353 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/searcher.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/uninstaller.rb +117 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/unpacker.rb +100 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/upgrader.rb +279 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/checksums.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/contents_description.rb +84 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/dependency.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/base.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/installer.rb +95 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/shared.rb +188 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/uninstaller.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/upgrader.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/install_directory.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/installed_modules.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/local_tarball.rb +90 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/metadata.rb +209 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/modulefile.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/shared_behaviors.rb +180 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/tests/init.pp.erb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar/gnu.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar/mini.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/auth_config_parser.rb +84 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/authconfig.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/authentication.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/authorization.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/authstore.rb +282 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/client_request.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/format.rb +110 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/format_handler.rb +105 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/format_support.rb +124 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/formats.rb +216 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api.rb +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v1.rb +222 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2/authorization.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2/environments.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/compression.rb +118 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/connection.rb +240 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/error.rb +69 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/factory.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/handler.rb +186 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/issues.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/memory_response.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/nocache_pool.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/pool.rb +120 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/rack.rb +33 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/rack/rest.rb +138 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/request.rb +56 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/response.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/route.rb +100 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/session.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/site.rb +39 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/webrick.rb +129 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/webrick/rest.rb +104 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/http_pool.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/resolver.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/rest_controller.rb +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/rights.rb +219 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/network/server.rb +39 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/node.rb +184 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/node/environment.rb +595 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/node/facts.rb +155 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter.rb +585 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/boolean.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/package_options.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/path.rb +57 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/value.rb +93 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/value_collection.rb +211 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast.rb +129 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/arithmetic_operator.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/astarray.rb +50 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/asthash.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/block_expression.rb +40 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/boolean_operator.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/branch.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/caseopt.rb +52 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/casestatement.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/collection.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/collexpr.rb +109 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/comparison_operator.rb +38 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/definition.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/else.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/function.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/hostclass.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/ifstatement.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/in_operator.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/lambda.rb +135 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/leaf.rb +232 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/match_operator.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/method_call.rb +77 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/minus.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/node.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/nop.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/pops_bridge.rb +242 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/relationship.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_defaults.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_instance.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_override.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_reference.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resourceparam.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/selector.rb +50 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/top_level_construct.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/vardef.rb +38 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/code_merger.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/collector.rb +177 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/compiler.rb +625 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/e4_parser_adapter.rb +81 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/files.rb +137 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions.rb +262 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/assert_type.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/contain.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/create_resources.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/defined.rb +73 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/digest.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/each.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/epp.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/extlookup.rb +153 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/fail.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/file.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/filter.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/fqdn_rand.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/generate.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_array.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_hash.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_include.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/include.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/inline_epp.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/inline_template.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/lookup.rb +144 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/map.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/match.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/md5.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/realize.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/reduce.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/regsubst.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/require.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/search.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/sha1.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/shellquote.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/slice.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/split.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/sprintf.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/tag.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/tagged.rb +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/template.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/versioncmp.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/with.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/grammar.ra +806 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/lexer.rb +608 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/makefile +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/methods.rb +69 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser.rb +2559 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser_factory.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser_support.rb +195 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/relationship.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/resource.rb +275 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/resource/param.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/scope.rb +906 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/templatewrapper.rb +127 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/type_loader.rb +152 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/parser/yaml_trimmer.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops.rb +118 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/adaptable.rb +190 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/adapters.rb +109 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/binder.rb +393 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/binder_issues.rb +122 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_checker.rb +197 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_composer.rb +175 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_factory.rb +805 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_label_provider.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_loader.rb +88 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model.rb +68 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model_dumper.rb +187 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model_meta.rb +215 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_validator_factory.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/binder_config.rb +107 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/binder_config_checker.rb +142 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/diagnostic_producer.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/issues.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/injector.rb +767 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/injector_entry.rb +57 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/key_factory.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/lookup.rb +199 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/producers.rb +826 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/module_scheme.rb +84 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/symbolic_scheme.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/system_bindings.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/containment.rb +104 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/access_operator.rb +596 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/callable_mismatch_describer.rb +175 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/callable_signature.rb +100 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/closure.rb +228 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/compare_operator.rb +172 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/epp_evaluator.rb +88 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/evaluator_impl.rb +1115 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/external_syntax_support.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/relationship_operator.rb +157 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/runtime3_support.rb +599 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/dispatch.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/dispatcher.rb +70 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/function.rb +77 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/issue_reporter.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/issues.rb +548 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/label_provider.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/base_loader.rb +102 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/dependency_loader.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/gem_support.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/loader.rb +180 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/loader_paths.rb +118 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/module_loaders.rb +256 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/null_loader.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/ruby_function_instantiator.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/simple_environment_loader.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/static_loader.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/uri_helper.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loaders.rb +231 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/ast_transformer.rb +643 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/ast_tree_dumper.rb +386 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/factory.rb +1055 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model.rb +114 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_label_provider.rb +106 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_meta.rb +576 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_tree_dumper.rb +407 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/tree_dumper.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/code_merger.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/egrammar.ra +757 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/eparser.rb +2655 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/epp_parser.rb +51 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/epp_support.rb +247 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/evaluating_parser.rb +140 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/heredoc_support.rb +139 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/interpolation_support.rb +231 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/lexer2.rb +696 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/lexer_support.rb +113 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/locatable.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/locator.rb +291 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/parser_support.rb +242 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/slurp_support.rb +95 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/patterns.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/semantic_error.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/class_loader.rb +129 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/enumeration.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_calculator.rb +1703 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_factory.rb +432 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_parser.rb +475 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/types.rb +397 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/types_meta.rb +223 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/utils.rb +142 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation.rb +432 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation/checker4_0.rb +760 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation/validator_factory_4_0.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/visitable.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/pops/visitor.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property.rb +617 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property/boolean.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property/ensure.rb +105 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property/keyvalue.rb +95 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property/list.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/property/ordered_list.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider.rb +651 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/aixobject.rb +392 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/augeas/augeas.rb +509 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/cisco.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/command.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/computer/computer.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/confine.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/cron/crontab.rb +260 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec.rb +100 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/posix.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/shell.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/windows.rb +55 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/file/posix.rb +136 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/file/windows.rb +104 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/aix.rb +141 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/directoryservice.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/groupadd.rb +85 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/ldap.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/pw.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/windows_adsi.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/host/parsed.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/interface/cisco.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/ldap.rb +137 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/macauthorization/macauthorization.rb +309 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mailalias/aliases.rb +39 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/maillist/mailman.rb +108 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mcx/mcxcontent.rb +172 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mount.rb +58 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mount/parsed.rb +123 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/naginator.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice.rb +292 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/directoryservice.rb +588 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/objectadd.rb +33 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/pw.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/network_device.rb +68 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package.rb +52 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aix.rb +152 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/appdmg.rb +106 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/apple.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/apt.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aptitude.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aptrpm.rb +83 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/blastwave.rb +111 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/dpkg.rb +165 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/fink.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/freebsd.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/gem.rb +135 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/hpux.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/macports.rb +107 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/msi.rb +125 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/nim.rb +280 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/openbsd.rb +228 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/opkg.rb +76 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pacman.rb +234 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pip.rb +119 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkg.rb +201 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgdmg.rb +149 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgin.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgutil.rb +186 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/portage.rb +149 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/ports.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/portupgrade.rb +241 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/rpm.rb +187 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/rug.rb +52 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/sun.rb +132 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/sunfreeware.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/up2date.rb +40 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/urpmi.rb +55 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows.rb +113 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/exe_package.rb +70 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/msi_package.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/package.rb +92 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/yum.rb +199 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/yumhelper.py +159 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/zypper.rb +90 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/parsedfile.rb +459 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +558 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/selboolean/getsetsebool.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/selmodule/semodule.rb +134 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/base.rb +106 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/bsd.rb +51 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/daemontools.rb +194 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/debian.rb +64 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/freebsd.rb +143 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/gentoo.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/init.rb +169 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/launchd.rb +353 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openbsd.rb +342 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openrc.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openwrt.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/redhat.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/runit.rb +111 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/service.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/smf.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/src.rb +120 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/systemd.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/upstart.rb +355 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/windows.rb +106 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/ssh_authorized_key/parsed.rb +105 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/sshkey/parsed.rb +40 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/aix.rb +369 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/directoryservice.rb +685 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/hpux.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/ldap.rb +128 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/pw.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/user_role_add.rb +210 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/useradd.rb +231 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/windows_adsi.rb +99 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/vlan/cisco.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/yumrepo/inifile.rb +300 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zfs/zfs.rb +83 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zone/solaris.rb +361 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zpool/zpool.rb +120 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails.rb +139 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/benchmark.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/001_add_created_at_to_all_tables.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/003_add_environment_to_host.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/004_add_inventory_service_tables.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/schema.rb +136 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/fact_name.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/fact_value.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/host.rb +258 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/inventory_fact.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/inventory_node.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/param_name.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/param_value.rb +74 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/puppet_tag.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/resource.rb +235 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/resource_tag.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/rails/source_file.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/configuration.rb +73 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/function.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/indirection.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/metaparameter.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/providers.rb +119 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/report.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reference/type.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/relationship.rb +103 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports/http.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports/log.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports/rrdgraph.rb +128 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports/store.rb +68 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/reports/tagmail.rb +179 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource.rb +605 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb +554 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource/status.rb +155 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type.rb +413 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type_collection.rb +230 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type_collection_helper.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/run.rb +109 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/job.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/scheduler.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/splay_job.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/timer.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings.rb +1442 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/array_setting.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/autosign_setting.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/base_setting.rb +195 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/boolean_setting.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/config_file.rb +139 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/directory_setting.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/duration_setting.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/enum_setting.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/environment_conf.rb +175 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/errors.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/file_or_directory_setting.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/file_setting.rb +234 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/ini_file.rb +171 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/path_setting.rb +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/priority_setting.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/string_setting.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/terminus_setting.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/ttl_setting.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/settings/value_translator.rb +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/base.rb +140 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority.rb +517 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority/autosign_command.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority/interface.rb +178 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_factory.rb +219 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_request.rb +299 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_request_attributes.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_revocation_list.rb +110 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_signer.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/configuration.rb +64 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/digest.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/host.rb +372 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/inventory.rb +55 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/key.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/oids.rb +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator/default_validator.rb +175 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator/no_validator.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/status.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/test/test_helper.rb +243 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction.rb +370 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/additional_resource_generator.rb +126 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/event.rb +107 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/event_manager.rb +122 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/report.rb +383 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb +251 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type.rb +2452 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/augeas.rb +201 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/component.rb +77 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/computer.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/cron.rb +488 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/exec.rb +592 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file.rb +933 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/checksum.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/content.rb +241 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/ctime.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/ensure.rb +189 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/group.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/mode.rb +168 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/mtime.rb +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/owner.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/selcontext.rb +124 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/source.rb +259 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/target.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/type.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/filebucket.rb +122 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/group.rb +188 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/host.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/interface.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/k5login.rb +88 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/macauthorization.rb +167 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/mailalias.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/maillist.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/mcx.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/mount.rb +286 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_command.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_contact.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_contactgroup.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_host.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostdependency.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostescalation.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostextinfo.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostgroup.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_service.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_servicedependency.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_serviceescalation.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_serviceextinfo.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_servicegroup.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_timeperiod.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/notify.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/package.rb +466 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/resources.rb +187 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/router.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/schedule.rb +469 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/scheduled_task.rb +169 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/selboolean.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/selmodule.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/service.rb +234 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/ssh_authorized_key.rb +153 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/sshkey.rb +73 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/stage.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/tidy.rb +324 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/user.rb +698 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/vlan.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/whit.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/yumrepo.rb +363 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/zfs.rb +150 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/zone.rb +382 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/type/zpool.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util.rb +554 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/autoload.rb +231 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/backups.rb +86 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/cacher.rb +74 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/checksums.rb +202 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/classgen.rb +236 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/colors.rb +217 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line.rb +199 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line/puppet_option_parser.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line/trollop.rb +824 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/constant_inflector.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/diff.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/docs.rb +128 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/errors.rb +106 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/execution.rb +327 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/execution_stub.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/feature.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/file_watcher.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/fileparsing.rb +376 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/filetype.rb +303 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/http_proxy.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/inifile.rb +341 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/inline_docs.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instance_loader.rb +81 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation.rb +152 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/data.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/indirection_probe.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/instrumentable.rb +136 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listener.rb +72 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listeners/log.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listeners/performance.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/json_lockfile.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap.rb +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/connection.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/generator.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/manager.rb +278 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/libuser.conf +15 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/libuser.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/limits.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/lockfile.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/log.rb +343 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/destination.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/destinations.rb +232 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/rate_limited_logger.rb +40 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/logging.rb +181 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/metaid.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/methodhelper.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/metric.rb +210 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/monkey_patches.rb +225 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/monkey_patches/lines.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/nagios_maker.rb +85 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/base.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco.rb +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/device.rb +267 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/facts.rb +72 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/interface.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/config.rb +93 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/ipcalc.rb +68 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/base.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/ssh.rb +122 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/telnet.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/package.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/pidlock.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/platform.rb +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/plugins.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/posix.rb +137 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/aggregate.rb +85 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/around_profiler.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/logging.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/object_counts.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/wall_clock.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/provider_features.rb +184 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/pson.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/queue.rb +96 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/queue/stomp.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/cache_accumulator.rb +65 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/collection_merger.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/reference_serializer.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/rdoc.rb +96 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/reference.rb +124 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/resource_template.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/retryaction.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/rubygems.rb +75 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/run_mode.rb +82 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/selinux.rb +222 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/ssl.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/storage.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/suidmanager.rb +191 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/symbolic_file_mode.rb +144 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/tag_set.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/tagging.rb +56 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/terminal.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/user_attr.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/warnings.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/watched_file.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/change_watcher.rb +33 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/periodic_watcher.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/timer.rb +19 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/access_control_entry.rb +84 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/access_control_list.rb +113 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/adsi.rb +430 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/api_types.rb +255 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/com.rb +224 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/error.rb +83 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/file.rb +401 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/process.rb +354 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/registry.rb +80 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/root_certs.rb +108 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/security.rb +920 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/security_descriptor.rb +62 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/sid.rb +162 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/string.rb +16 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/taskscheduler.rb +1241 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/user.rb +292 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/yaml.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/util/zaml.rb +419 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor.rb +57 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_pathspec.rb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_rgen.rb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_safe_yaml.rb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_semantic.rb +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/CHANGELOG.md +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/LICENSE +201 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/PUPPET_README.md +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/README.md +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec.rb +121 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/gitignorespec.rb +275 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/regexspec.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/spec.rb +14 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/require_vendored.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/CHANGELOG +197 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/MIT-LICENSE +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/PUPPET_README.md +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/README.rdoc +78 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/Rakefile +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/TODO +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/anounce.txt +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/design_rationale.txt +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/ea_support.rb +54 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/id_store.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel.rb +562 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_generator.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb +103 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_to_uml13_ea.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel.rb +559 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel_ext.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/metamodel_generator.rb +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/mmgen.rb +28 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/templates/annotations.tpl +37 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/templates/metamodel_generator.tpl +172 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/array_extensions.rb +45 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore.rb +218 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_builder_methods.rb +81 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_ext.rb +69 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_interface.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_to_ruby.rb +167 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ruby_to_ecore.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/environment.rb +129 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/dump_file_cache.rb +63 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/fragmented_model.rb +140 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/model_fragment.rb +289 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_instantiator.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_xml_instantiator.rb +66 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/default_xml_instantiator.rb +117 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/ecore_xml_instantiator.rb +169 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_instantiator.rb +126 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.rb +331 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.y +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/nodebased_xml_instantiator.rb +137 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/qualified_name_resolver.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/reference_resolver.rb +128 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/resolution_helper.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/xmi11_instantiator.rb +168 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder.rb +224 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_extensions.rb +556 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_runtime.rb +174 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/constant_order_helper.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/data_types.rb +77 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/annotation.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/feature.rb +168 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/module_extension.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder.rb +32 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/builder_context.rb +334 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/model_serializer.rb +225 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/reference_resolver.rb +156 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/json_serializer.rb +121 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/opposite_reference_filter.rb +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/qualified_name_provider.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi11_serializer.rb +116 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi20_serializer.rb +71 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xml_serializer.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language.rb +297 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/directory_template_container.rb +83 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/output_handler.rb +87 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/template_container.rb +234 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/template_helper.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/transformer.rb +475 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/auto_class_creator.rb +61 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/cached_glob.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/file_cache_map.rb +124 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/file_change_detector.rb +84 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/method_delegation.rb +114 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator.rb +68 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator_base.rb +142 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_dumper.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/name_helper.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/pattern_matcher.rb +329 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/transformers/ecore_to_uml13.rb +79 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/transformers/uml13_to_ecore.rb +127 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/array_extensions_test.rb +64 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ea_instantiator_test.rb +35 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ea_serializer_test.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ecore_self_test.rb +54 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/environment_test.rb +90 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/json_test.rb +171 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_builder_test.rb +1482 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_from_ecore_test.rb +57 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_order_test.rb +131 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test.rb +98 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/TestModel.rb +70 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel.ecore +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel_from_ecore.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/using_builtin_types.ecore +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/method_delegation_test.rb +178 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/builder_context_test.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/builder_test.rb +242 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/ecore_original.rb +163 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/ecore_original_regenerated.rb +163 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/reference_resolver_test.rb +156 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/serializer_test.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/test_model/statemachine1.rb +23 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder_test.rb +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_fragment_test.rb +30 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/output_handler_test.rb +58 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/qualified_name_provider_test.rb +48 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/qualified_name_resolver_test.rb +102 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/reference_resolver_test.rb +117 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/rgen_test.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test.rb +163 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result1.txt +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result2.txt +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result3.txt +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestDefaultIndent.out +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestTabIndent.out +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/a.tpl +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/b.tpl +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/code/array.tpl +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/content/author.tpl +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/content/chapter.tpl +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/local.tpl +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/test.tpl +8 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/evaluate_test/test.tpl +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/indent_string_test.tpl +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/index/c/cmod.tpl +1 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/index/chapter.tpl +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_backslash_r_test.tpl +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/no_indent.tpl +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/sub1/no_indent.tpl +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test.tpl +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test2.tpl +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test3.tpl +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/null_context_test.tpl +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1.tpl +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1/sub1.tpl +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/test.tpl +4 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/testout.txt +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/class_model_checker.rb +119 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.eap +0 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.xml +1029 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel_partial.xml +317 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ecore_model_checker.rb +101 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/manual_testmodel.xml +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/object_model_checker.rb +67 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/transformer_test.rb +254 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util/file_cache_map_test.rb +99 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util/pattern_matcher_test.rb +97 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util_test.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test.rb +160 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_ecore_model_checker.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_ecore_instantiator.rb +53 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_metamodel.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_to_ecore.rb +75 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/CHANGES.md +104 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/Gemfile +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/LICENSE.txt +22 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/PUPPET_README.md +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/README.md +179 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/Rakefile +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb +253 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/deep.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/date.rb +27 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/hexadecimal.rb +12 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/sexagesimal.rb +26 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_handler.rb +92 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_resolver.rb +52 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/resolver.rb +94 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/safe_to_ruby_visitor.rb +17 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_hack.rb +36 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_resolver.rb +38 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform.rb +41 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_boolean.rb +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_date.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_float.rb +33 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_integer.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_nil.rb +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_symbol.rb +13 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/transformation_map.rb +47 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/version.rb +3 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/run_specs_all_ruby_versions.sh +21 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/safe_yaml.gemspec +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.2.yaml +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.3.yaml +2 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/psych_resolver_spec.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/resolver_specs.rb +250 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/safe_yaml_spec.rb +702 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/spec_helper.rb +18 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb +29 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/syck_resolver_spec.rb +10 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb +11 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_date_spec.rb +34 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_float_spec.rb +42 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_integer_spec.rb +59 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_symbol_spec.rb +49 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml_patches.rb +9 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/Gemfile +20 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/PUPPET_README.md +6 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/Rakefile +69 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic.rb +7 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency.rb +181 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/graph.rb +60 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/graph_node.rb +117 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/module_release.rb +46 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/source.rb +25 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/unsatisfiable_graph.rb +31 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/version.rb +168 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/version_range.rb +424 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/spec_helper.rb +24 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_node_spec.rb +141 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_spec.rb +162 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/module_release_spec.rb +143 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/source_spec.rb +5 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/unsatisfiable_graph_spec.rb +44 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency_spec.rb +383 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/version_range_spec.rb +307 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/version_spec.rb +608 -0
- data/vendor/gems/puppet-3.7.3/lib/puppet/version.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppetx.rb +89 -0
- data/vendor/gems/puppet-3.7.3/lib/puppetx/puppet/bindings_scheme_handler.rb +130 -0
- data/vendor/gems/puppet-3.7.3/lib/puppetx/puppet/syntax_checker.rb +91 -0
- data/vendor/gems/puppet-3.7.3/lib/puppetx/puppetlabs/syntax_checkers/json.rb +37 -0
- data/vendor/gems/puppet-3.7.3/lib/semver.rb +124 -0
- data/vendor/gems/puppet-3.7.3/puppet-3.7.3.gemspec +3648 -0
- data/vendor/gems/puppet-3.7.3/tasks/benchmark.rake +144 -0
- data/vendor/gems/puppet-3.7.3/tasks/ci.rake +29 -0
- data/vendor/gems/puppet-3.7.3/tasks/manpages.rake +84 -0
- data/vendor/gems/puppet-3.7.3/tasks/memwalk.rake +195 -0
- data/vendor/gems/puppet-3.7.3/tasks/parallel.rake +408 -0
- data/vendor/gems/puppet-3.7.3/tasks/parser.rake +19 -0
- data/vendor/gems/puppet-3.7.3/tasks/yard.rake +59 -0
- metadata +1351 -35
@@ -0,0 +1,57 @@
|
|
1
|
+
# Represents an entry in the injectors internal data.
|
2
|
+
#
|
3
|
+
# @api public
|
4
|
+
#
|
5
|
+
class Puppet::Pops::Binder::InjectorEntry
|
6
|
+
# @return [Object] An opaque (comparable) object representing the precedence
|
7
|
+
# @api public
|
8
|
+
attr_reader :precedence
|
9
|
+
|
10
|
+
# @return [Puppet::Pops::Binder::Bindings::Binding] The binding for this entry
|
11
|
+
# @api public
|
12
|
+
attr_reader :binding
|
13
|
+
|
14
|
+
# @api private
|
15
|
+
attr_accessor :resolved
|
16
|
+
|
17
|
+
# @api private
|
18
|
+
attr_accessor :cached_producer
|
19
|
+
|
20
|
+
# @api private
|
21
|
+
def initialize(binding, precedence = 0)
|
22
|
+
@precedence = precedence.freeze
|
23
|
+
@binding = binding
|
24
|
+
@cached_producer = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
# Marks an overriding entry as resolved (if not an overriding entry, the marking has no effect).
|
28
|
+
# @api private
|
29
|
+
#
|
30
|
+
def mark_override_resolved()
|
31
|
+
@resolved = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# The binding is resolved if it is non-override, or if the override has been resolved
|
35
|
+
# @api private
|
36
|
+
#
|
37
|
+
def is_resolved?()
|
38
|
+
!binding.override || resolved
|
39
|
+
end
|
40
|
+
|
41
|
+
def is_abstract?
|
42
|
+
binding.abstract
|
43
|
+
end
|
44
|
+
|
45
|
+
def is_final?
|
46
|
+
binding.final
|
47
|
+
end
|
48
|
+
|
49
|
+
# Compares against another InjectorEntry by comparing precedence.
|
50
|
+
# @param injector_entry [InjectorEntry] entry to compare against.
|
51
|
+
# @return [Integer] 1, if this entry has higher precedence, 0 if equal, and -1 if given entry has higher precedence.
|
52
|
+
# @api public
|
53
|
+
#
|
54
|
+
def <=> (injector_entry)
|
55
|
+
precedence <=> injector_entry.precedence
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# The KeyFactory is responsible for creating keys used for lookup of bindings.
|
2
|
+
# @api public
|
3
|
+
#
|
4
|
+
class Puppet::Pops::Binder::KeyFactory
|
5
|
+
|
6
|
+
attr_reader :type_calculator
|
7
|
+
# @api public
|
8
|
+
def initialize(type_calculator = Puppet::Pops::Types::TypeCalculator.new())
|
9
|
+
@type_calculator = type_calculator
|
10
|
+
end
|
11
|
+
|
12
|
+
# @api public
|
13
|
+
def binding_key(binding)
|
14
|
+
named_key(binding.type, binding.name)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @api public
|
18
|
+
def named_key(type, name)
|
19
|
+
[(@type_calculator.assignable?(@type_calculator.data, type) ? @type_calculator.data : type), name]
|
20
|
+
end
|
21
|
+
|
22
|
+
# @api public
|
23
|
+
def data_key(name)
|
24
|
+
[@type_calculator.data, name]
|
25
|
+
end
|
26
|
+
|
27
|
+
# @api public
|
28
|
+
def is_contributions_key?(s)
|
29
|
+
return false unless s.is_a?(String)
|
30
|
+
s.start_with?('mc_')
|
31
|
+
end
|
32
|
+
|
33
|
+
# @api public
|
34
|
+
def multibind_contributions(multibind_id)
|
35
|
+
"mc_#{multibind_id}"
|
36
|
+
end
|
37
|
+
|
38
|
+
# @api public
|
39
|
+
def multibind_contribution_key_to_id(contributions_key)
|
40
|
+
# removes the leading "mc_" from the key to get the multibind_id
|
41
|
+
contributions_key[3..-1]
|
42
|
+
end
|
43
|
+
|
44
|
+
# @api public
|
45
|
+
def is_named?(key)
|
46
|
+
key.is_a?(Array) && key[1] && !key[1].empty?
|
47
|
+
end
|
48
|
+
|
49
|
+
# @api public
|
50
|
+
def is_data?(key)
|
51
|
+
return false unless key.is_a?(Array) && key[0].is_a?(Puppet::Pops::Types::PAnyType)
|
52
|
+
type_calculator.assignable?(type_calculator.data(), key[0])
|
53
|
+
end
|
54
|
+
|
55
|
+
# @api public
|
56
|
+
def is_ruby?(key)
|
57
|
+
key.is_a?(Array) && key[0].is_a?(Puppet::Pops::Types::PRuntimeType) && key[0].runtime == :ruby
|
58
|
+
end
|
59
|
+
|
60
|
+
# Returns the type of the key
|
61
|
+
# @api public
|
62
|
+
#
|
63
|
+
def get_type(key)
|
64
|
+
return nil unless key.is_a?(Array)
|
65
|
+
key[0]
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,199 @@
|
|
1
|
+
# This class is the backing implementation of the Puppet function 'lookup'.
|
2
|
+
# See puppet/parser/functions/lookup.rb for documentation.
|
3
|
+
#
|
4
|
+
class Puppet::Pops::Binder::Lookup
|
5
|
+
|
6
|
+
def self.parse_lookup_args(args)
|
7
|
+
options = {}
|
8
|
+
pblock = if args[-1].respond_to?(:puppet_lambda)
|
9
|
+
args.pop
|
10
|
+
end
|
11
|
+
|
12
|
+
case args.size
|
13
|
+
when 1
|
14
|
+
# name, or all options
|
15
|
+
if args[ 0 ].is_a?(Hash)
|
16
|
+
options = to_symbolic_hash(args[ 0 ])
|
17
|
+
else
|
18
|
+
options[ :name ] = args[ 0 ]
|
19
|
+
end
|
20
|
+
|
21
|
+
when 2
|
22
|
+
# name and type, or name and options
|
23
|
+
if args[ 1 ].is_a?(Hash)
|
24
|
+
options = to_symbolic_hash(args[ 1 ])
|
25
|
+
options[:name] = args[ 0 ] # silently overwrite option with given name
|
26
|
+
else
|
27
|
+
options[:name] = args[ 0 ]
|
28
|
+
options[:type] = args[ 1 ]
|
29
|
+
end
|
30
|
+
|
31
|
+
when 3
|
32
|
+
# name, type, default (no options)
|
33
|
+
options[ :name ] = args[ 0 ]
|
34
|
+
options[ :type ] = args[ 1 ]
|
35
|
+
options[ :default ] = args[ 2 ]
|
36
|
+
else
|
37
|
+
raise Puppet::ParseError, "The lookup function accepts 1-3 arguments, got #{args.size}"
|
38
|
+
end
|
39
|
+
options[:pblock] = pblock
|
40
|
+
options
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.to_symbolic_hash(input)
|
44
|
+
names = [:name, :type, :default, :accept_undef, :extra, :override]
|
45
|
+
options = {}
|
46
|
+
names.each {|n| options[n] = undef_as_nil(input[n.to_s] || input[n]) }
|
47
|
+
options
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.type_mismatch(type_calculator, expected, got)
|
51
|
+
"has wrong type, expected #{type_calculator.string(expected)}, got #{type_calculator.string(got)}"
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.fail(msg)
|
55
|
+
raise Puppet::ParseError, "Function lookup() " + msg
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.fail_lookup(names)
|
59
|
+
name_part = if names.size == 1
|
60
|
+
"the name '#{names[0]}'"
|
61
|
+
else
|
62
|
+
"any of the names ['" + names.join(', ') + "']"
|
63
|
+
end
|
64
|
+
fail("did not find a value for #{name_part}")
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.validate_options(options, type_calculator)
|
68
|
+
type_parser = Puppet::Pops::Types::TypeParser.new
|
69
|
+
name_type = type_parser.parse('Variant[Array[String], String]')
|
70
|
+
|
71
|
+
if is_nil_or_undef?(options[:name]) || options[:name].is_a?(Array) && options[:name].empty?
|
72
|
+
fail ("requires a name, or array of names. Got nothing to lookup.")
|
73
|
+
end
|
74
|
+
|
75
|
+
t = type_calculator.infer(options[:name])
|
76
|
+
if ! type_calculator.assignable?(name_type, t)
|
77
|
+
fail("given 'name' argument, #{type_mismatch(type_calculator, options[:name], t)}")
|
78
|
+
end
|
79
|
+
|
80
|
+
# unless a type is already given (future case), parse the type (or default 'Data'), fails if invalid type is given
|
81
|
+
unless options[:type].is_a?(Puppet::Pops::Types::PAnyType)
|
82
|
+
options[:type] = type_parser.parse(options[:type] || 'Data')
|
83
|
+
end
|
84
|
+
|
85
|
+
# default value must comply with the given type
|
86
|
+
if options[:default]
|
87
|
+
t = type_calculator.infer(options[:default])
|
88
|
+
if ! type_calculator.assignable?(options[:type], t)
|
89
|
+
fail("'default' value #{type_mismatch(type_calculator, options[:type], t)}")
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
if options[:extra] && !options[:extra].is_a?(Hash)
|
94
|
+
# do not perform inference here, it is enough to know that it is not a hash
|
95
|
+
fail("'extra' value must be a Hash, got #{options[:extra].class}")
|
96
|
+
end
|
97
|
+
options[:extra] = {} unless options[:extra]
|
98
|
+
|
99
|
+
if options[:override] && !options[:override].is_a?(Hash)
|
100
|
+
# do not perform inference here, it is enough to know that it is not a hash
|
101
|
+
fail("'override' value must be a Hash, got #{options[:extra].class}")
|
102
|
+
end
|
103
|
+
options[:override] = {} unless options[:override]
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.nil_as_undef(x)
|
108
|
+
x.nil? ? :undef : x
|
109
|
+
end
|
110
|
+
|
111
|
+
def self.undef_as_nil(x)
|
112
|
+
is_nil_or_undef?(x) ? nil : x
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.is_nil_or_undef?(x)
|
116
|
+
x.nil? || x == :undef
|
117
|
+
end
|
118
|
+
|
119
|
+
# This is used as a marker - a value that cannot (at least not easily) by mistake be found in
|
120
|
+
# hiera data.
|
121
|
+
#
|
122
|
+
class PrivateNotFoundMarker; end
|
123
|
+
|
124
|
+
def self.search_for(scope, type, name, options)
|
125
|
+
# search in order, override, injector, hiera, then extra
|
126
|
+
if !(result = options[:override][name]).nil?
|
127
|
+
result
|
128
|
+
elsif !(result = scope.compiler.injector.lookup(scope, type, name)).nil?
|
129
|
+
result
|
130
|
+
else
|
131
|
+
result = scope.function_hiera([name, PrivateNotFoundMarker])
|
132
|
+
if !result.nil? && result != PrivateNotFoundMarker
|
133
|
+
result
|
134
|
+
else
|
135
|
+
options[:extra][name]
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# This is the method called from the puppet/parser/functions/lookup.rb
|
141
|
+
# @param args [Array] array following the puppet function call conventions
|
142
|
+
def self.lookup(scope, args)
|
143
|
+
type_calculator = Puppet::Pops::Types::TypeCalculator.new
|
144
|
+
options = parse_lookup_args(args)
|
145
|
+
validate_options(options, type_calculator)
|
146
|
+
names = [options[:name]].flatten
|
147
|
+
type = options[:type]
|
148
|
+
|
149
|
+
result_with_name = names.reduce([]) do |memo, name|
|
150
|
+
break memo if !memo[1].nil?
|
151
|
+
[name, search_for(scope, type, name, options)]
|
152
|
+
end
|
153
|
+
|
154
|
+
result = if result_with_name[1].nil?
|
155
|
+
# not found, use default (which may be nil), the default is already type checked
|
156
|
+
options[:default]
|
157
|
+
else
|
158
|
+
# injector.lookup is type-safe already do no need to type check the result
|
159
|
+
result_with_name[1]
|
160
|
+
end
|
161
|
+
|
162
|
+
# If a block is given it is called with :undef passed as 'nil' since the lookup function
|
163
|
+
# is available from 3x with --binder turned on, and the evaluation is always 4x.
|
164
|
+
# TODO PUPPET4: Simply pass the value
|
165
|
+
#
|
166
|
+
result = if pblock = options[:pblock]
|
167
|
+
result2 = case pblock.parameter_count
|
168
|
+
when 1
|
169
|
+
pblock.call(scope, undef_as_nil(result))
|
170
|
+
when 2
|
171
|
+
pblock.call(scope, result_with_name[ 0 ], undef_as_nil(result))
|
172
|
+
else
|
173
|
+
pblock.call(scope, result_with_name[ 0 ], undef_as_nil(result), undef_as_nil(options[ :default ]))
|
174
|
+
end
|
175
|
+
|
176
|
+
# if the given result was returned, there is no need to type-check it again
|
177
|
+
if !result2.equal?(result)
|
178
|
+
t = type_calculator.infer(undef_as_nil(result2))
|
179
|
+
if !type_calculator.assignable?(type, t)
|
180
|
+
fail "the value produced by the given code block #{type_mismatch(type_calculator, type, t)}"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
result2
|
184
|
+
else
|
185
|
+
result
|
186
|
+
end
|
187
|
+
|
188
|
+
# Finally, the result if nil must be acceptable or an error is raised
|
189
|
+
if is_nil_or_undef?(result) && !options[:accept_undef]
|
190
|
+
fail_lookup(names)
|
191
|
+
else
|
192
|
+
# Since the function may be used without future parser being in effect, nil is not handled in a good
|
193
|
+
# way, and should instead be turned into :undef.
|
194
|
+
# TODO PUPPET4: Simply return the result
|
195
|
+
#
|
196
|
+
Puppet[:parser] == 'future' ? result : nil_as_undef(result)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
@@ -0,0 +1,826 @@
|
|
1
|
+
# This module contains the various producers used by Puppet Bindings.
|
2
|
+
# The main (abstract) class is {Puppet::Pops::Binder::Producers::Producer} which documents the
|
3
|
+
# Producer API and serves as a base class for all other producers.
|
4
|
+
# It is required that custom producers inherit from this producer (directly or indirectly).
|
5
|
+
#
|
6
|
+
# The selection of a Producer is typically performed by the Innjector when it configures itself
|
7
|
+
# from a Bindings model where a {Puppet::Pops::Binder::Bindings::ProducerDescriptor} describes
|
8
|
+
# which producer to use. The configuration uses this to create the concrete producer.
|
9
|
+
# It is possible to describe that a particular producer class is to be used, and also to describe that
|
10
|
+
# a custom producer (derived from Producer) should be used. This is available for both regular
|
11
|
+
# bindings as well as multi-bindings.
|
12
|
+
#
|
13
|
+
#
|
14
|
+
# @api public
|
15
|
+
#
|
16
|
+
module Puppet::Pops::Binder::Producers
|
17
|
+
# Producer is an abstract base class representing the base contract for a bound producer.
|
18
|
+
# Typically, when a lookup is performed it is the value that is returned (via a producer), but
|
19
|
+
# it is also possible to lookup the producer, and ask it to produce the value (the producer may
|
20
|
+
# return a series of values, which makes this especially useful).
|
21
|
+
#
|
22
|
+
# When looking up a producer, it is of importance to only use the API of the Producer class
|
23
|
+
# unless it is known that a particular custom producer class has been bound.
|
24
|
+
#
|
25
|
+
# Custom Producers
|
26
|
+
# ----------------
|
27
|
+
# The intent is that this class is derived for custom producers that require additional
|
28
|
+
# options/arguments when producing an instance. Such a custom producer may raise an error if called
|
29
|
+
# with too few arguments, or may implement specific `produce` methods and always raise an
|
30
|
+
# error on #produce indicating that this producer requires custom calls and that it can not
|
31
|
+
# be used as an implicit producer.
|
32
|
+
#
|
33
|
+
# Features of Producer
|
34
|
+
# --------------------
|
35
|
+
# The Producer class is abstract, but offers the ability to transform the produced result
|
36
|
+
# by passing the option `:transformer` which should be a Puppet Lambda Expression taking one argument
|
37
|
+
# and producing the transformed (wanted) result.
|
38
|
+
#
|
39
|
+
# @abstract
|
40
|
+
# @api public
|
41
|
+
#
|
42
|
+
class Producer
|
43
|
+
# A Puppet 3 AST Lambda Expression
|
44
|
+
# @api public
|
45
|
+
#
|
46
|
+
attr_reader :transformer
|
47
|
+
|
48
|
+
# Creates a Producer.
|
49
|
+
# Derived classes should call this constructor to get support for transformer lambda.
|
50
|
+
#
|
51
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
52
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
53
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
54
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
55
|
+
# @api public
|
56
|
+
#
|
57
|
+
def initialize(injector, binding, scope, options)
|
58
|
+
if transformer_lambda = options[:transformer]
|
59
|
+
if transformer_lambda.is_a?(Proc)
|
60
|
+
raise ArgumentError, "Transformer Proc must take two arguments; scope, value." unless transformer_lambda.arity == 2
|
61
|
+
@transformer = transformer_lambda
|
62
|
+
else
|
63
|
+
raise ArgumentError, "Transformer must be a LambdaExpression" unless transformer_lambda.is_a?(Puppet::Pops::Model::LambdaExpression)
|
64
|
+
raise ArgumentError, "Transformer lambda must take one argument; value." unless transformer_lambda.parameters.size() == 1
|
65
|
+
@transformer = Puppet::Pops::Parser::EvaluatingParser.new.closure(transformer_lambda, scope)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Produces an instance.
|
71
|
+
# @param scope [Puppet::Parser:Scope] the scope to use for evaluation
|
72
|
+
# @param args [Object] arguments to custom producers, always empty for implicit productions
|
73
|
+
# @return [Object] the produced instance (should never be nil).
|
74
|
+
# @api public
|
75
|
+
#
|
76
|
+
def produce(scope, *args)
|
77
|
+
do_transformation(scope, internal_produce(scope))
|
78
|
+
end
|
79
|
+
|
80
|
+
# Returns the producer after possibly having recreated an internal/wrapped producer.
|
81
|
+
# This implementation returns `self`. A derived class may want to override this method
|
82
|
+
# to perform initialization/refresh of its internal state. This method is called when
|
83
|
+
# a producer is requested.
|
84
|
+
# @see Puppet::Pops::Binder::ProducerProducer for an example of implementation.
|
85
|
+
# @param scope [Puppet::Parser:Scope] the scope to use for evaluation
|
86
|
+
# @return [Puppet::Pops::Binder::Producer] the producer to use
|
87
|
+
# @api public
|
88
|
+
#
|
89
|
+
def producer(scope)
|
90
|
+
self
|
91
|
+
end
|
92
|
+
|
93
|
+
protected
|
94
|
+
|
95
|
+
# Derived classes should implement this method to do the production of a value
|
96
|
+
# @param scope [Puppet::Parser::Scope] the scope to use when performing lookup and evaluation
|
97
|
+
# @raise [NotImplementedError] this implementation always raises an error
|
98
|
+
# @abstract
|
99
|
+
# @api private
|
100
|
+
#
|
101
|
+
def internal_produce(scope)
|
102
|
+
raise NotImplementedError, "Producer-class '#{self.class.name}' should implement #internal_produce(scope)"
|
103
|
+
end
|
104
|
+
|
105
|
+
# Transforms the produced value if a transformer has been defined.
|
106
|
+
# @param scope [Puppet::Parser::Scope] the scope used for evaluation
|
107
|
+
# @param produced_value [Object, nil] the produced value (possibly nil)
|
108
|
+
# @return [Object] the transformed value if a transformer is defined, else the given `produced_value`
|
109
|
+
# @api private
|
110
|
+
#
|
111
|
+
def do_transformation(scope, produced_value)
|
112
|
+
return produced_value unless transformer
|
113
|
+
transformer.call(scope, produced_value)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# Abstract Producer holding a value
|
118
|
+
# @abstract
|
119
|
+
# @api public
|
120
|
+
#
|
121
|
+
class AbstractValueProducer < Producer
|
122
|
+
|
123
|
+
# @api public
|
124
|
+
attr_reader :value
|
125
|
+
|
126
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
127
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
128
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
129
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
130
|
+
# @option options [Puppet::Pops::Model::LambdaExpression, nil] :value (nil) the value to produce
|
131
|
+
# @api public
|
132
|
+
#
|
133
|
+
def initialize(injector, binding, scope, options)
|
134
|
+
super
|
135
|
+
# nil is ok here, as an abstract value producer may be used to signal "not found"
|
136
|
+
@value = options[:value]
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# Produces the same/singleton value on each production
|
141
|
+
# @api public
|
142
|
+
#
|
143
|
+
class SingletonProducer < AbstractValueProducer
|
144
|
+
protected
|
145
|
+
|
146
|
+
# @api private
|
147
|
+
def internal_produce(scope)
|
148
|
+
value()
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Produces a deep clone of its value on each production.
|
153
|
+
# @api public
|
154
|
+
#
|
155
|
+
class DeepCloningProducer < AbstractValueProducer
|
156
|
+
protected
|
157
|
+
|
158
|
+
# @api private
|
159
|
+
def internal_produce(scope)
|
160
|
+
case value
|
161
|
+
when Integer, Float, TrueClass, FalseClass, Symbol
|
162
|
+
# These are immutable
|
163
|
+
return value
|
164
|
+
when String
|
165
|
+
# ok if frozen, else fall through to default
|
166
|
+
return value() if value.frozen?
|
167
|
+
end
|
168
|
+
# The default: serialize/deserialize to get a deep copy
|
169
|
+
Marshal.load(Marshal.dump(value()))
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# This abstract producer class remembers the injector and binding.
|
174
|
+
# @abstract
|
175
|
+
# @api public
|
176
|
+
#
|
177
|
+
class AbstractArgumentedProducer < Producer
|
178
|
+
|
179
|
+
# @api public
|
180
|
+
attr_reader :injector
|
181
|
+
|
182
|
+
# @api public
|
183
|
+
attr_reader :binding
|
184
|
+
|
185
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
186
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
187
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
188
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
189
|
+
# @api public
|
190
|
+
#
|
191
|
+
def initialize(injector, binding, scope, options)
|
192
|
+
super
|
193
|
+
@injector = injector
|
194
|
+
@binding = binding
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# @api public
|
199
|
+
class InstantiatingProducer < AbstractArgumentedProducer
|
200
|
+
|
201
|
+
# @api public
|
202
|
+
attr_reader :the_class
|
203
|
+
|
204
|
+
# @api public
|
205
|
+
attr_reader :init_args
|
206
|
+
|
207
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
208
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
209
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
210
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
211
|
+
# @option options [String] :class_name The name of the class to create instance of
|
212
|
+
# @option options [Array<Object>] :init_args ([]) Optional arguments to class constructor
|
213
|
+
# @api public
|
214
|
+
#
|
215
|
+
def initialize(injector, binding, scope, options)
|
216
|
+
# Better do this, even if a transformation of a created instance is kind of an odd thing to do, one can imagine
|
217
|
+
# sending it to a function for further detailing.
|
218
|
+
#
|
219
|
+
super
|
220
|
+
class_name = options[:class_name]
|
221
|
+
raise ArgumentError, "Option 'class_name' must be given for an InstantiatingProducer" unless class_name
|
222
|
+
# get class by name
|
223
|
+
@the_class = Puppet::Pops::Types::ClassLoader.provide(class_name)
|
224
|
+
@init_args = options[:init_args] || []
|
225
|
+
raise ArgumentError, "Can not load the class #{class_name} specified in binding named: '#{binding.name}'" unless @the_class
|
226
|
+
end
|
227
|
+
|
228
|
+
protected
|
229
|
+
|
230
|
+
# Performs initialization the same way as Assisted Inject does (but handle arguments to
|
231
|
+
# constructor)
|
232
|
+
# @api private
|
233
|
+
#
|
234
|
+
def internal_produce(scope)
|
235
|
+
result = nil
|
236
|
+
# A class :inject method wins over an instance :initialize if it is present, unless a more specific
|
237
|
+
# constructor exists. (i.e do not pick :inject from superclass if class has a constructor).
|
238
|
+
#
|
239
|
+
if the_class.respond_to?(:inject)
|
240
|
+
inject_method = the_class.method(:inject)
|
241
|
+
initialize_method = the_class.instance_method(:initialize)
|
242
|
+
if inject_method.owner <= initialize_method.owner
|
243
|
+
result = the_class.inject(injector, scope, binding, *init_args)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
if result.nil?
|
247
|
+
result = the_class.new(*init_args)
|
248
|
+
end
|
249
|
+
result
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# @api public
|
254
|
+
class FirstFoundProducer < Producer
|
255
|
+
# @api public
|
256
|
+
attr_reader :producers
|
257
|
+
|
258
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
259
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
260
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
261
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
262
|
+
# @option options [Array<Puppet::Pops::Binder::Producers::Producer>] :producers list of producers to consult. Required.
|
263
|
+
# @api public
|
264
|
+
#
|
265
|
+
def initialize(injector, binding, scope, options)
|
266
|
+
super
|
267
|
+
@producers = options[:producers]
|
268
|
+
raise ArgumentError, "Option :producers' must be set to a list of producers." if @producers.nil?
|
269
|
+
raise ArgumentError, "Given 'producers' option is not an Array" unless @producers.is_a?(Array)
|
270
|
+
end
|
271
|
+
|
272
|
+
protected
|
273
|
+
|
274
|
+
# @api private
|
275
|
+
def internal_produce(scope)
|
276
|
+
# return the first produced value that is non-nil (unfortunately there is no such enumerable method)
|
277
|
+
producers.reduce(nil) {|memo, p| break memo unless memo.nil?; p.produce(scope)}
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# Evaluates a Puppet Expression and returns the result.
|
282
|
+
# This is typically used for strings with interpolated expressions.
|
283
|
+
# @api public
|
284
|
+
#
|
285
|
+
class EvaluatingProducer < Producer
|
286
|
+
# A Puppet 3 AST Expression
|
287
|
+
# @api public
|
288
|
+
#
|
289
|
+
attr_reader :expression
|
290
|
+
|
291
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
292
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
293
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
294
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
295
|
+
# @option options [Array<Puppet::Pops::Model::Expression>] :expression The expression to evaluate
|
296
|
+
# @api public
|
297
|
+
#
|
298
|
+
def initialize(injector, binding, scope, options)
|
299
|
+
super
|
300
|
+
@expression = options[:expression]
|
301
|
+
raise ArgumentError, "Option 'expression' must be given to an EvaluatingProducer." unless @expression
|
302
|
+
end
|
303
|
+
|
304
|
+
# @api private
|
305
|
+
def internal_produce(scope)
|
306
|
+
Puppet::Pops::Parser::EvaluatingParser.new.evaluate(scope, expression)
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
# @api public
|
311
|
+
class LookupProducer < AbstractArgumentedProducer
|
312
|
+
|
313
|
+
# @api public
|
314
|
+
attr_reader :type
|
315
|
+
|
316
|
+
# @api public
|
317
|
+
attr_reader :name
|
318
|
+
|
319
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
320
|
+
# @param binder [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
321
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
322
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
323
|
+
# @option options [Puppet::Pops::Types::PAnyType] :type The type to lookup
|
324
|
+
# @option options [String] :name ('') The name to lookup
|
325
|
+
# @api public
|
326
|
+
#
|
327
|
+
def initialize(injector, binder, scope, options)
|
328
|
+
super
|
329
|
+
@type = options[:type]
|
330
|
+
@name = options[:name] || ''
|
331
|
+
raise ArgumentError, "Option 'type' must be given in a LookupProducer." unless @type
|
332
|
+
end
|
333
|
+
|
334
|
+
protected
|
335
|
+
|
336
|
+
# @api private
|
337
|
+
def internal_produce(scope)
|
338
|
+
injector.lookup_type(scope, type, name)
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# @api public
|
343
|
+
class LookupKeyProducer < LookupProducer
|
344
|
+
|
345
|
+
# @api public
|
346
|
+
attr_reader :key
|
347
|
+
|
348
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
349
|
+
# @param binder [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
350
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
351
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
352
|
+
# @option options [Puppet::Pops::Types::PAnyType] :type The type to lookup
|
353
|
+
# @option options [String] :name ('') The name to lookup
|
354
|
+
# @option options [Puppet::Pops::Types::PAnyType] :key The key to lookup in the hash
|
355
|
+
# @api public
|
356
|
+
#
|
357
|
+
def initialize(injector, binder, scope, options)
|
358
|
+
super
|
359
|
+
@key = options[:key]
|
360
|
+
raise ArgumentError, "Option 'key' must be given in a LookupKeyProducer." if key.nil?
|
361
|
+
end
|
362
|
+
|
363
|
+
protected
|
364
|
+
|
365
|
+
# @api private
|
366
|
+
def internal_produce(scope)
|
367
|
+
|
368
|
+
result = super
|
369
|
+
result.is_a?(Hash) ? result[key] : nil
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# Produces the given producer, then uses that producer.
|
374
|
+
# @see ProducerProducer for the non singleton version
|
375
|
+
# @api public
|
376
|
+
#
|
377
|
+
class SingletonProducerProducer < Producer
|
378
|
+
|
379
|
+
# @api public
|
380
|
+
attr_reader :value_producer
|
381
|
+
|
382
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
383
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
384
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
385
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
386
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :producer_producer a producer of a value producer (required)
|
387
|
+
# @api public
|
388
|
+
#
|
389
|
+
def initialize(injector, binding, scope, options)
|
390
|
+
super
|
391
|
+
p = options[:producer_producer]
|
392
|
+
raise ArgumentError, "Option :producer_producer must be given in a SingletonProducerProducer" unless p
|
393
|
+
@value_producer = p.produce(scope)
|
394
|
+
end
|
395
|
+
|
396
|
+
protected
|
397
|
+
|
398
|
+
# @api private
|
399
|
+
def internal_produce(scope)
|
400
|
+
value_producer.produce(scope)
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
# A ProducerProducer creates a producer via another producer, and then uses this created producer
|
405
|
+
# to produce values. This is useful for custom production of series of values.
|
406
|
+
# On each request for a producer, this producer will reset its internal producer (i.e. restarting
|
407
|
+
# the series).
|
408
|
+
#
|
409
|
+
# @param producer_producer [#produce(scope)] the producer of the producer
|
410
|
+
#
|
411
|
+
# @api public
|
412
|
+
#
|
413
|
+
class ProducerProducer < Producer
|
414
|
+
|
415
|
+
# @api public
|
416
|
+
attr_reader :producer_producer
|
417
|
+
|
418
|
+
# @api public
|
419
|
+
attr_reader :value_producer
|
420
|
+
|
421
|
+
# Creates new ProducerProducer given a producer.
|
422
|
+
#
|
423
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
424
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
425
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
426
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
427
|
+
# @option options [Puppet::Pops::Binder::Producer] :producer_producer a producer of a value producer (required)
|
428
|
+
#
|
429
|
+
# @api public
|
430
|
+
#
|
431
|
+
def initialize(injector, binding, scope, options)
|
432
|
+
super
|
433
|
+
unless producer_producer = options[:producer_producer]
|
434
|
+
raise ArgumentError, "The option :producer_producer must be set in a ProducerProducer"
|
435
|
+
end
|
436
|
+
raise ArgumentError, "Argument must be a Producer" unless producer_producer.is_a?(Producer)
|
437
|
+
|
438
|
+
@producer_producer = producer_producer
|
439
|
+
@value_producer = nil
|
440
|
+
end
|
441
|
+
|
442
|
+
# Updates the internal state to use a new instance of the wrapped producer.
|
443
|
+
# @api public
|
444
|
+
#
|
445
|
+
def producer(scope)
|
446
|
+
@value_producer = @producer_producer.produce(scope)
|
447
|
+
self
|
448
|
+
end
|
449
|
+
|
450
|
+
protected
|
451
|
+
|
452
|
+
# Produces a value after having created an instance of the wrapped producer (if not already created).
|
453
|
+
# @api private
|
454
|
+
#
|
455
|
+
def internal_produce(scope, *args)
|
456
|
+
producer() unless value_producer
|
457
|
+
value_producer.produce(scope)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# This type of producer should only be created by the Injector.
|
462
|
+
#
|
463
|
+
# @api private
|
464
|
+
#
|
465
|
+
class AssistedInjectProducer < Producer
|
466
|
+
# An Assisted Inject Producer is created when a lookup is made of a type that is
|
467
|
+
# not bound. It does not support a transformer lambda.
|
468
|
+
# @note This initializer has a different signature than all others. Do not use in regular logic.
|
469
|
+
# @api private
|
470
|
+
#
|
471
|
+
def initialize(injector, clazz)
|
472
|
+
raise ArgumentError, "class must be given" unless clazz.is_a?(Class)
|
473
|
+
|
474
|
+
@injector = injector
|
475
|
+
@clazz = clazz
|
476
|
+
@inst = nil
|
477
|
+
end
|
478
|
+
|
479
|
+
def produce(scope, *args)
|
480
|
+
producer(scope, *args) unless @inst
|
481
|
+
@inst
|
482
|
+
end
|
483
|
+
|
484
|
+
# @api private
|
485
|
+
def producer(scope, *args)
|
486
|
+
@inst = nil
|
487
|
+
# A class :inject method wins over an instance :initialize if it is present, unless a more specific zero args
|
488
|
+
# constructor exists. (i.e do not pick :inject from superclass if class has a zero args constructor).
|
489
|
+
#
|
490
|
+
if @clazz.respond_to?(:inject)
|
491
|
+
inject_method = @clazz.method(:inject)
|
492
|
+
initialize_method = @clazz.instance_method(:initialize)
|
493
|
+
if inject_method.owner <= initialize_method.owner || initialize_method.arity != 0
|
494
|
+
@inst = @clazz.inject(@injector, scope, nil, *args)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
if @inst.nil?
|
498
|
+
unless args.empty?
|
499
|
+
raise ArgumentError, "Assisted Inject can not pass arguments to no-args constructor when there is no class inject method."
|
500
|
+
end
|
501
|
+
@inst = @clazz.new()
|
502
|
+
end
|
503
|
+
self
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
# Abstract base class for multibind producers.
|
508
|
+
# Is suitable as base class for custom implementations of multibind producers.
|
509
|
+
# @abstract
|
510
|
+
# @api public
|
511
|
+
#
|
512
|
+
class MultibindProducer < AbstractArgumentedProducer
|
513
|
+
attr_reader :contributions_key
|
514
|
+
|
515
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
516
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
517
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
518
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
519
|
+
#
|
520
|
+
# @api public
|
521
|
+
#
|
522
|
+
def initialize(injector, binding, scope, options)
|
523
|
+
super
|
524
|
+
@contributions_key = injector.key_factory.multibind_contributions(binding.id)
|
525
|
+
end
|
526
|
+
|
527
|
+
# @param expected [Array<Puppet::Pops::Types::PAnyType>, Puppet::Pops::Types::PAnyType] expected type or types
|
528
|
+
# @param actual [Object, Puppet::Pops::Types::PAnyType> the actual value (or its type)
|
529
|
+
# @return [String] a formatted string for inclusion as detail in an error message
|
530
|
+
# @api private
|
531
|
+
#
|
532
|
+
def type_error_detail(expected, actual)
|
533
|
+
tc = injector.type_calculator
|
534
|
+
expected = [expected] unless expected.is_a?(Array)
|
535
|
+
actual_t = tc.is_ptype?(actual) ? actual : tc.infer(actual)
|
536
|
+
expstrs = expected.collect {|t| tc.string(t) }
|
537
|
+
"expected: #{expstrs.join(', or ')}, got: #{tc.string(actual_t)}"
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# A configurable multibind producer for Array type multibindings.
|
542
|
+
#
|
543
|
+
# This implementation collects all contributions to the multibind and then combines them using the following rules:
|
544
|
+
#
|
545
|
+
# - all *unnamed* entries are added unless the option `:priority_on_unnamed` is set to true, in which case the unnamed
|
546
|
+
# contribution with the highest priority is added, and the rest are ignored (unless they have the same priority in which
|
547
|
+
# case an error is raised).
|
548
|
+
# - all *named* entries are handled the same way as *unnamed* but the option `:priority_on_named` controls their handling.
|
549
|
+
# - the option `:uniq` post processes the result to only contain unique entries
|
550
|
+
# - the option `:flatten` post processes the result by flattening all nested arrays.
|
551
|
+
# - If both `:flatten` and `:uniq` are true, flattening is done first.
|
552
|
+
#
|
553
|
+
# @note
|
554
|
+
# Collection accepts elements that comply with the array's element type, or the entire type (i.e. Array[element_type]).
|
555
|
+
# If the type is restrictive - e.g. Array[String] and an Array[String] is contributed, the result will not be type
|
556
|
+
# compliant without also using the `:flatten` option, and a type error will be raised. For an array with relaxed typing
|
557
|
+
# i.e. Array[Data], it is valid to produce a result such as `['a', ['b', 'c'], 'd']` and no flattening is required
|
558
|
+
# and no error is raised (but using the array needs to be aware of potential array, non-array entries.
|
559
|
+
# The use of the option `:flatten` controls how the result is flattened.
|
560
|
+
#
|
561
|
+
# @api public
|
562
|
+
#
|
563
|
+
class ArrayMultibindProducer < MultibindProducer
|
564
|
+
|
565
|
+
# @return [Boolean] whether the result should be made contain unique (non-equal) entries or not
|
566
|
+
# @api public
|
567
|
+
attr_reader :uniq
|
568
|
+
|
569
|
+
# @return [Boolean, Integer] If result should be flattened (true), or not (false), or flattened to given level (0 = none, -1 = all)
|
570
|
+
# @api public
|
571
|
+
attr_reader :flatten
|
572
|
+
|
573
|
+
# @return [Boolean] whether priority should be considered for named contributions
|
574
|
+
# @api public
|
575
|
+
attr_reader :priority_on_named
|
576
|
+
|
577
|
+
# @return [Boolean] whether priority should be considered for unnamed contributions
|
578
|
+
# @api public
|
579
|
+
attr_reader :priority_on_unnamed
|
580
|
+
|
581
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
582
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
583
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
584
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
585
|
+
# @option options [Boolean] :uniq (false) if collected result should be post-processed to contain only unique entries
|
586
|
+
# @option options [Boolean, Integer] :flatten (false) if collected result should be post-processed so all contained arrays
|
587
|
+
# are flattened. May be set to an Integer value to indicate the level of recursion (-1 is endless, 0 is none).
|
588
|
+
# @option options [Boolean] :priority_on_named (true) if highest precedented named element should win or if all should be included
|
589
|
+
# @option options [Boolean] :priority_on_unnamed (false) if highest precedented unnamed element should win or if all should be included
|
590
|
+
# @api public
|
591
|
+
#
|
592
|
+
def initialize(injector, binding, scope, options)
|
593
|
+
super
|
594
|
+
@uniq = !!options[:uniq]
|
595
|
+
@flatten = options[:flatten]
|
596
|
+
@priority_on_named = options[:priority_on_named].nil? ? true : options[:priority_on_name]
|
597
|
+
@priority_on_unnamed = !!options[:priority_on_unnamed]
|
598
|
+
|
599
|
+
case @flatten
|
600
|
+
when Integer
|
601
|
+
when true
|
602
|
+
@flatten = -1
|
603
|
+
when false
|
604
|
+
@flatten = nil
|
605
|
+
when NilClass
|
606
|
+
@flatten = nil
|
607
|
+
else
|
608
|
+
raise ArgumentError, "Option :flatten must be nil, Boolean, or an integer value" unless @flatten.is_a?(Integer)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
protected
|
613
|
+
|
614
|
+
# @api private
|
615
|
+
def internal_produce(scope)
|
616
|
+
seen = {}
|
617
|
+
included_keys = []
|
618
|
+
|
619
|
+
injector.get_contributions(scope, contributions_key).each do |element|
|
620
|
+
key = element[0]
|
621
|
+
entry = element[1]
|
622
|
+
|
623
|
+
name = entry.binding.name
|
624
|
+
existing = seen[name]
|
625
|
+
empty_name = name.nil? || name.empty?
|
626
|
+
if existing
|
627
|
+
if empty_name && priority_on_unnamed
|
628
|
+
if (seen[name] <=> entry) >= 0
|
629
|
+
raise ArgumentError, "Duplicate key (same priority) contributed to Array Multibinding '#{binding.name}' with unnamed entry."
|
630
|
+
end
|
631
|
+
next
|
632
|
+
elsif !empty_name && priority_on_named
|
633
|
+
if (seen[name] <=> entry) >= 0
|
634
|
+
raise ArgumentError, "Duplicate key (same priority) contributed to Array Multibinding '#{binding.name}', key: '#{name}'."
|
635
|
+
end
|
636
|
+
next
|
637
|
+
end
|
638
|
+
else
|
639
|
+
seen[name] = entry
|
640
|
+
end
|
641
|
+
included_keys << key
|
642
|
+
end
|
643
|
+
result = included_keys.collect do |k|
|
644
|
+
x = injector.lookup_key(scope, k)
|
645
|
+
assert_type(binding(), injector.type_calculator(), x)
|
646
|
+
x
|
647
|
+
end
|
648
|
+
|
649
|
+
result.flatten!(flatten) if flatten
|
650
|
+
result.uniq! if uniq
|
651
|
+
result
|
652
|
+
end
|
653
|
+
|
654
|
+
# @api private
|
655
|
+
def assert_type(binding, tc, value)
|
656
|
+
infered = tc.infer(value)
|
657
|
+
unless tc.assignable?(binding.type.element_type, infered) || tc.assignable?(binding.type, infered)
|
658
|
+
raise ArgumentError, ["Type Error: contribution to '#{binding.name}' does not match type of multibind, ",
|
659
|
+
"#{type_error_detail([binding.type.element_type, binding.type], value)}"].join()
|
660
|
+
end
|
661
|
+
end
|
662
|
+
end
|
663
|
+
|
664
|
+
# @api public
|
665
|
+
class HashMultibindProducer < MultibindProducer
|
666
|
+
|
667
|
+
# @return [Symbol] One of `:error`, `:merge`, `:append`, `:priority`, `:ignore`
|
668
|
+
# @api public
|
669
|
+
attr_reader :conflict_resolution
|
670
|
+
|
671
|
+
# @return [Boolean]
|
672
|
+
# @api public
|
673
|
+
attr_reader :uniq
|
674
|
+
|
675
|
+
# @return [Boolean, Integer] Flatten all if true, or none if false, or to given level (0 = none, -1 = all)
|
676
|
+
# @api public
|
677
|
+
attr_reader :flatten
|
678
|
+
|
679
|
+
# The hash multibind producer provides options to control conflict resolution.
|
680
|
+
# By default, the hash is produced using `:priority` resolution - the highest entry is selected, the rest are
|
681
|
+
# ignored unless they have the same priority which is an error.
|
682
|
+
#
|
683
|
+
# @param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates
|
684
|
+
# @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer
|
685
|
+
# @param scope [Puppet::Parser::Scope] The scope to use for evaluation
|
686
|
+
# @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value
|
687
|
+
# @option options [Symbol, String] :conflict_resolution (:priority) One of `:error`, `:merge`, `:append`, `:priority`, `:ignore`
|
688
|
+
# <ul><li> `ignore` the first found highest priority contribution is used, the rest are ignored</li>
|
689
|
+
# <li>`error` any duplicate key is an error</li>
|
690
|
+
# <li>`append` element type must be compatible with Array, makes elements be arrays and appends all found</li>
|
691
|
+
# <li>`merge` element type must be compatible with hash, merges hashes with retention of highest priority hash content</li>
|
692
|
+
# <li>`priority` the first found highest priority contribution is used, duplicates with same priority raises and error, the rest are
|
693
|
+
# ignored.</li></ul>
|
694
|
+
# @option options [Boolean, Integer] :flatten (false) If appended should be flattened. Also see {#flatten}.
|
695
|
+
# @option options [Boolean] :uniq (false) If appended result should be made unique.
|
696
|
+
#
|
697
|
+
# @api public
|
698
|
+
#
|
699
|
+
def initialize(injector, binding, scope, options)
|
700
|
+
super
|
701
|
+
@conflict_resolution = options[:conflict_resolution].nil? ? :priority : options[:conflict_resolution]
|
702
|
+
@uniq = !!options[:uniq]
|
703
|
+
@flatten = options[:flatten]
|
704
|
+
|
705
|
+
unless [:error, :merge, :append, :priority, :ignore].include?(@conflict_resolution)
|
706
|
+
raise ArgumentError, "Unknown conflict_resolution for Multibind Hash: '#{@conflict_resolution}."
|
707
|
+
end
|
708
|
+
|
709
|
+
case @flatten
|
710
|
+
when Integer
|
711
|
+
when true
|
712
|
+
@flatten = -1
|
713
|
+
when false
|
714
|
+
@flatten = nil
|
715
|
+
when NilClass
|
716
|
+
@flatten = nil
|
717
|
+
else
|
718
|
+
raise ArgumentError, "Option :flatten must be nil, Boolean, or an integer value" unless @flatten.is_a?(Integer)
|
719
|
+
end
|
720
|
+
|
721
|
+
if uniq || flatten || conflict_resolution.to_s == 'append'
|
722
|
+
etype = binding.type.element_type
|
723
|
+
unless etype.class == Puppet::Pops::Types::PDataType || etype.is_a?(Puppet::Pops::Types::PArrayType)
|
724
|
+
detail = []
|
725
|
+
detail << ":uniq" if uniq
|
726
|
+
detail << ":flatten" if flatten
|
727
|
+
detail << ":conflict_resolution => :append" if conflict_resolution.to_s == 'append'
|
728
|
+
raise ArgumentError, ["Options #{detail.join(', and ')} cannot be used with a Multibind ",
|
729
|
+
"of type #{injector.type_calculator.string(binding.type)}"].join()
|
730
|
+
end
|
731
|
+
end
|
732
|
+
end
|
733
|
+
|
734
|
+
protected
|
735
|
+
|
736
|
+
# @api private
|
737
|
+
def internal_produce(scope)
|
738
|
+
seen = {}
|
739
|
+
included_entries = []
|
740
|
+
|
741
|
+
injector.get_contributions(scope, contributions_key).each do |element|
|
742
|
+
key = element[0]
|
743
|
+
entry = element[1]
|
744
|
+
|
745
|
+
name = entry.binding.name
|
746
|
+
raise ArgumentError, "A Hash Multibind contribution to '#{binding.name}' must have a name." if name.nil? || name.empty?
|
747
|
+
|
748
|
+
existing = seen[name]
|
749
|
+
if existing
|
750
|
+
case conflict_resolution.to_s
|
751
|
+
when 'priority'
|
752
|
+
# skip if duplicate has lower prio
|
753
|
+
if (comparison = (seen[name] <=> entry)) <= 0
|
754
|
+
raise ArgumentError, "Internal Error: contributions not given in decreasing precedence order" unless comparison == 0
|
755
|
+
raise ArgumentError, "Duplicate key (same priority) contributed to Hash Multibinding '#{binding.name}', key: '#{name}'."
|
756
|
+
end
|
757
|
+
next
|
758
|
+
|
759
|
+
when 'ignore'
|
760
|
+
# skip, ignore conflict if prio is the same
|
761
|
+
next
|
762
|
+
|
763
|
+
when 'error'
|
764
|
+
raise ArgumentError, "Duplicate key contributed to Hash Multibinding '#{binding.name}', key: '#{name}'."
|
765
|
+
|
766
|
+
end
|
767
|
+
else
|
768
|
+
seen[name] = entry
|
769
|
+
end
|
770
|
+
included_entries << [key, entry]
|
771
|
+
end
|
772
|
+
result = {}
|
773
|
+
included_entries.each do |element|
|
774
|
+
k = element[ 0 ]
|
775
|
+
entry = element[ 1 ]
|
776
|
+
x = injector.lookup_key(scope, k)
|
777
|
+
name = entry.binding.name
|
778
|
+
assert_type(binding(), injector.type_calculator(), name, x)
|
779
|
+
if result[ name ]
|
780
|
+
merge(result, name, result[ name ], x)
|
781
|
+
else
|
782
|
+
result[ name ] = conflict_resolution().to_s == 'append' ? [x] : x
|
783
|
+
end
|
784
|
+
end
|
785
|
+
result
|
786
|
+
end
|
787
|
+
|
788
|
+
# @api private
|
789
|
+
def merge(result, name, higher, lower)
|
790
|
+
case conflict_resolution.to_s
|
791
|
+
when 'append'
|
792
|
+
unless higher.is_a?(Array)
|
793
|
+
higher = [higher]
|
794
|
+
end
|
795
|
+
tmp = higher + [lower]
|
796
|
+
tmp.flatten!(flatten) if flatten
|
797
|
+
tmp.uniq! if uniq
|
798
|
+
result[name] = tmp
|
799
|
+
|
800
|
+
when 'merge'
|
801
|
+
result[name] = lower.merge(higher)
|
802
|
+
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
806
|
+
# @api private
|
807
|
+
def assert_type(binding, tc, key, value)
|
808
|
+
unless tc.instance?(binding.type.key_type, key)
|
809
|
+
raise ArgumentError, ["Type Error: key contribution to #{binding.name}['#{key}'] ",
|
810
|
+
"is incompatible with key type: #{tc.label(binding.type)}, ",
|
811
|
+
type_error_detail(binding.type.key_type, key)].join()
|
812
|
+
end
|
813
|
+
|
814
|
+
if key.nil? || !key.is_a?(String) || key.empty?
|
815
|
+
raise ArgumentError, "Entry contributing to multibind hash with id '#{binding.id}' must have a name."
|
816
|
+
end
|
817
|
+
|
818
|
+
unless tc.instance?(binding.type.element_type, value)
|
819
|
+
raise ArgumentError, ["Type Error: value contribution to #{binding.name}['#{key}'] ",
|
820
|
+
"is incompatible, ",
|
821
|
+
type_error_detail(binding.type.element_type, value)].join()
|
822
|
+
end
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
826
|
+
end
|