Module: ChefDK::Generator::TemplateHelper

Defined in:
lib/chef-dk/generator.rb

Class Method Summary collapse

Class Method Details

.delegate_to_app_context(name) ⇒ Object



50
51
52
53
54
# File 'lib/chef-dk/generator.rb', line 50

def self.delegate_to_app_context(name)
  define_method(name) do
    ChefDK::Generator.context.public_send(name)
  end
end