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

Instance Method Summary collapse

Methods inherited from ShefSession

#collection, #initialize, inspect, #node_built?, #reset!, #save_node

Constructor Details

This class inherits a constructor from Shef::ShefSession

Instance Method Details

#cookbook_loaderObject



135
136
137
# File 'lib/chef/shef/shef_session.rb', line 135

def cookbook_loader
  @compile.cookbook_loader
end

#definitionsObject



131
132
133
# File 'lib/chef/shef/shef_session.rb', line 131

def definitions
  @compile.definitions
end

#rebuild_collectionObject



139
140
141
142
143
144
145
# File 'lib/chef/shef/shef_session.rb', line 139

def rebuild_collection
  @compile = Chef::Compile.new(@client.node)
  
  @collection = @compile.collection
  @collection << @recipe.collection.all_resources
  @collection
end