Class: Shef::StandAloneSession
- Inherits:
-
ShefSession
- Object
- ShefSession
- Shef::StandAloneSession
- Defined in:
- lib/chef/shef/shef_session.rb
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, #definitions, #initialize, inspect, #node_built?, #reset!, #resource_collection, #save_node, session_type
Constructor Details
This class inherits a constructor from Shef::ShefSession
Instance Method Details
#rebuild_context ⇒ Object
139 140 141 142 |
# File 'lib/chef/shef/shef_session.rb', line 139 def rebuild_context @run_context = Chef::RunContext.new(@node, {}) # no recipes @run_context.load(Chef::RunList::RunListExpansionFromDisk.new("_default", [])) # empty recipe list end |