Class: Shef::SoloSession

Inherits:
ShefSession show all
Defined in:
lib/chef/shef/shef_session.rb

Direct Known Subclasses

ClientSession

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

#definitionsObject



155
156
157
# File 'lib/chef/shef/shef_session.rb', line 155

def definitions
  @run_context.definitions
end

#rebuild_contextObject



159
160
161
# File 'lib/chef/shef/shef_session.rb', line 159

def rebuild_context
  @run_context = Chef::RunContext.new(@node, Chef::CookbookCollection.new(Chef::CookbookLoader.new))
end