Sha256: 33b5ea517e0de8046abd07ed363e714e1c8e2dd4221d55bef0066daf49cd67b7

Contents?: true

Size: 690 Bytes

Versions: 129

Compression:

Stored size: 690 Bytes

Contents

# The module is named after the author, to ensure that names under PuppetX namespace
# does not clash.
#
require 'puppet_x'

module PuppetX::Thallgren
  class SampleModuleData < Puppet::Plugins::DataProviders::ModuleDataProvider
    def initialize()
      @data = {
        'metawcp::b' => 'module_b',
        'metawcp::c' => 'module_c',
        'metawcp::e' => { 'k1' => 'module_e1', 'k2' => 'module_e2' },
        'metawcp::f' => { 'k1' => { 's1' => 'module_f11', 's3' => 'module_f13' },  'k2' => { 's1' => 'module_f21', 's2' => 'module_f22' }},
      }
    end

    def lookup(name, scope, merge)
      throw :no_such_key unless @data.include?(name)
      @data[name]
    end
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
puppet-4.10.12 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.12-x86-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.12-x64-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.12-universal-darwin spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.11 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.11-x86-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.11-x64-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.11-universal-darwin spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.10 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.10-x86-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.10-x64-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.10-universal-darwin spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.9 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.9-x86-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.9-x64-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.9-universal-darwin spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.8 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.8-x86-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.8-x64-mingw32 spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb
puppet-4.10.8-universal-darwin spec/fixtures/unit/functions/lookup_fixture/environments/production/modules/metawcp/lib/puppet_x/thallgren/sample_module_data.rb