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

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

Instance Method Summary collapse

Instance Method Details

#autorunObject


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

def autorun
  unless request.namespace.empty?
    request.key.prepend("#{request.namespace.join('::')}::")
  end
  request.namespace = []
end

#calling_moduleObject


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

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

#rewrite_lookupObject


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

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