class Jerakia::Scope

Default scope handler, this handler creates the scope using the key value pairs from the metadata of the request object

This is by far the simplest scope handler, others can be more complex and build the scope.value hash from MCollective, PuppetDB or other data sources

The server scope handler can store and retrieve scope data server side

Attributes

handler[R]
request[R]
value[R]

Public Class Methods

new(req) click to toggle source
# File lib/jerakia/scope.rb, line 6
def initialize(req)
  @value = {}
  @handler ||= req.scope || :metadata
  @request = req
  Jerakia::Util.autoload('scope', @handler)
  instance_eval "extend Jerakia::Scope::#{@handler.to_s.capitalize}"
  create
end