Class: Chef::RunContext
- Inherits:
-
Object
- Object
- Chef::RunContext
- Defined in:
- lib/cheffish/recipe_dsl.rb
Instance Method Summary collapse
Instance Method Details
#cheffish ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/cheffish/recipe_dsl.rb', line 107 def cheffish node.run_state[:cheffish] ||= begin run_data = Cheffish::ChefRunData.new(config) events.register(Cheffish::ChefRunListener.new(node)) run_data end end |
#config ⇒ Object
115 116 117 |
# File 'lib/cheffish/recipe_dsl.rb', line 115 def config node.run_state[:chef_config] ||= Cheffish.profiled_config(Chef::Config) end |