class Jerakia::Lookup::Plugin

This plugin reformats the lookup key according to a puppet's Hiera system, so instead of looking up <key> in <path>/<namespace>.yaml we lookup <namespace>::<key> in <path>.yaml

This is a useful plugin for people wanting to test drive Jerakia but maintain an existing hiera filesystem layout and naming convention within the source data.

Attributes

config[R]
lookup[R]

Public Class Methods

new(lookup, config) click to toggle source
# File lib/jerakia/lookup/plugin.rb, line 5
def initialize(lookup, config)
  @lookup = lookup
  @config = config
end

Public Instance Methods

activate(name) click to toggle source
# File lib/jerakia/lookup/plugin.rb, line 10
def activate(name)
  instance_eval "extend Jerakia::Lookup::Plugin::#{name.to_s.capitalize}"
end
request() click to toggle source
# File lib/jerakia/lookup/plugin.rb, line 19
def request
  lookup.request
end
scope() click to toggle source
# File lib/jerakia/lookup/plugin.rb, line 15
def scope
  lookup.scope
end