Class: Chef::RunContext

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

Instance Method Summary collapse

Instance Method Details

#cheffishObject



103
104
105
106
107
108
109
# File 'lib/cheffish/recipe_dsl.rb', line 103

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

#configObject



111
112
113
# File 'lib/cheffish/recipe_dsl.rb', line 111

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