Class: Shef::SoloSession
- Inherits:
-
ShefSession
- Object
- ShefSession
- Shef::SoloSession
- Defined in:
- lib/chef/shef/shef_session.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ShefSession
#client, #compile, #node, #node_attributes, #recipe, #run_context
Instance Method Summary collapse
Methods inherited from ShefSession
#cookbook_loader, #initialize, inspect, #node_built?, #reset!, #resource_collection, #save_node, session_type
Constructor Details
This class inherits a constructor from Shef::ShefSession
Instance Method Details
#definitions ⇒ Object
166 167 168 |
# File 'lib/chef/shef/shef_session.rb', line 166 def definitions @run_context.definitions end |
#rebuild_context ⇒ Object
170 171 172 173 174 175 176 177 |
# File 'lib/chef/shef/shef_session.rb', line 170 def rebuild_context @run_status = Chef::RunStatus.new(@node, @events) Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::FileSystemFileVendor.new(manifest, Chef::Config[:cookbook_path]) } cookbook_collection = Chef::CookbookCollection.new(Chef::CookbookLoader.new(Chef::Config[:cookbook_path])) @run_context = Chef::RunContext.new(node, cookbook_collection, @events) @run_context.load(Chef::RunList::RunListExpansionFromDisk.new("_default", [])) @run_status.run_context = run_context end |