class Shell::StandAloneSession
Public Instance Methods
rebuild_context()
click to toggle source
# File lib/chef/shell/shell_session.rb, line 148 def rebuild_context cookbook_collection = Chef::CookbookCollection.new({}) @run_context = Chef::RunContext.new(@node, cookbook_collection, @events) # no recipes @run_context.load(Chef::RunList::RunListExpansionFromDisk.new("_default", [])) # empty recipe list end
Private Instance Methods
rebuild_node()
click to toggle source
# File lib/chef/shell/shell_session.rb, line 156 def rebuild_node Chef::Config[:solo_legacy_mode] = true @client = Chef::Client.new(json_configuration, Chef::Config[:shell_config]) @client.run_ohai @client.load_node @client.build_node end