Sha256: a5bed1190850b91db8065b3b573bb807a17dfa405fe9c3ac94fb8ad0ef0ac8b2
Contents?: true
Size: 715 Bytes
Versions: 420
Compression:
Stored size: 715 Bytes
Contents
require 'puppet/plugins/binding_schemes' module PuppetX module Awesome2 # A binding scheme that echos its path # 'echo:/quick/brown/fox' becomes key '::quick::brown::fox' => 'echo: quick brown fox'. # (silly class for testing loading of extension) # class EchoSchemeHandler < Puppet::Plugins::BindingSchemes::BindingsSchemeHandler def contributed_bindings(uri, scope, composer) factory = ::Puppet::Pops::Binder::BindingsFactory bindings = factory.named_bindings("echo") bindings.bind.name(uri.path.gsub(/\//, '::')).to("echo: #{uri.path.gsub(/\//, ' ').strip!}") factory.contributed_bindings("echo", bindings.model) ### , nil) end end end end
Version data entries
420 entries across 420 versions & 1 rubygems