Sha256: 880e70cdd35a7b70406bdd3ffed4d95a4a280c292a3096c11b9363acf2db349b

Contents?: true

Size: 724 Bytes

Versions: 198

Compression:

Stored size: 724 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!}")
        result = factory.contributed_bindings("echo", bindings.model) ### , nil)
      end
    end
  end
end

Version data entries

198 entries across 198 versions & 1 rubygems

Version Path
puppet-5.3.7 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.7-x86-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.7-x64-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.7-universal-darwin spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.12 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.12-x86-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.12-x64-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.12-universal-darwin spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.11 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.11-x86-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.11-x64-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-4.10.11-universal-darwin spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.6 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.6-x86-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.6-x64-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.3.6-universal-darwin spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.4.0 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.4.0-x86-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.4.0-x64-mingw32 spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb
puppet-5.4.0-universal-darwin spec/fixtures/unit/pops/binder/bindings_composer/ok/modules/awesome2/lib/puppet_x/awesome2/echo_scheme_handler.rb