Files

Class/Module Index [+]

Quicksearch

Shell::ClientSession

Public Instance Methods

rebuild_context() click to toggle source
# File lib/chef/shell/shell_session.rb, line 202
def rebuild_context
  @run_status = Chef::RunStatus.new(@node, @events)
  Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::RemoteFileVendor.new(manifest, Chef::REST.new(Chef::Config[:server_url])) }
  cookbook_hash = @client.sync_cookbooks
  cookbook_collection = Chef::CookbookCollection.new(cookbook_hash)
  @run_context = Chef::RunContext.new(node, cookbook_collection, @events) 
  @run_context.load(Chef::RunList::RunListExpansionFromAPI.new("_default", []))
  @run_status.run_context = run_context
end
save_node() click to toggle source
# File lib/chef/shell/shell_session.rb, line 198
def save_node
  @client.save_node
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.