Class: Chef::RunContext

Inherits:
Object
  • Object
show all
Defined in:
lib/cheffish/recipe_dsl.rb

Instance Method Summary collapse

Instance Method Details

#cheffishObject



106
107
108
109
110
111
112
# File 'lib/cheffish/recipe_dsl.rb', line 106

def cheffish
  node.run_state[:cheffish] ||= begin
    run_data = Cheffish::ChefRunData.new(config)
    events.register(Cheffish::ChefRunListener.new(node))
    run_data
  end
end

#configObject



114
115
116
# File 'lib/cheffish/recipe_dsl.rb', line 114

def config
  node.run_state[:chef_config] ||= Cheffish.profiled_config(Chef::Config)
end