Module: Jerakia::Lookup::Plugin::Hiera

Defined in:
lib/jerakia/lookup/plugin/hiera.rb

Instance Method Summary collapse

Instance Method Details

#autorunObject



12
13
14
15
16
17
# File 'lib/jerakia/lookup/plugin/hiera.rb', line 12

def autorun
  if request.namespace.length > 0
    request.key.prepend("#{request.namespace.join('::')}::")
  end
  request.namespace=[]
end

#calling_moduleObject



23
24
25
# File 'lib/jerakia/lookup/plugin/hiera.rb', line 23

def calling_module
  request.key.split('::')[0]
end

#rewrite_lookupObject



19
20
21
# File 'lib/jerakia/lookup/plugin/hiera.rb', line 19

def rewrite_lookup
  Jerakia.log.debug("DEPRECATION NOTICE: The use of plugin.hiera.rewrite_lookup is now deprecated and is automatically executed when the plugin is loaded")
end