Module: Jerakia::Lookup::Plugin::Hiera
- Defined in:
- lib/jerakia/lookup/plugin/hiera.rb
Instance Method Summary collapse
Instance Method Details
#autorun ⇒ Object
12 13 14 15 |
# File 'lib/jerakia/lookup/plugin/hiera.rb', line 12 def autorun request.key.prepend("#{request.namespace.join('::')}::") request.namespace=[] end |
#calling_module ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/jerakia/lookup/plugin/hiera.rb', line 21 def calling_module if request.namespace.length > 0 request.namespace[0] else Jerakia.log.error("hiera_compat plugin tried to use calling_module but there is no namespace declared. Ensure that calling_module is called before hiera_compat in the policy") end end |