Class: Chef::RunContext

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

Instance Method Summary collapse

Instance Method Details

#cheffishObject



113
114
115
116
117
118
119
# File 'lib/cheffish/recipe_dsl.rb', line 113

def cheffish
  @cheffish ||= begin
    run_data = Cheffish::ChefRunData.new(config)
    events.register(Cheffish::ChefRunListener.new(self))
    run_data
  end
end

#configObject



121
122
123
# File 'lib/cheffish/recipe_dsl.rb', line 121

def config
  @config ||= Cheffish.profiled_config(Chef::Config)
end