    # File lib/chef/shef/shef_session.rb, line 191
        def rebuild_context
          @run_status = Chef::RunStatus.new(@node)
          Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::RemoteFileVendor.new(manifest, Chef::REST.new(Chef::Config[:server_url])) }
          cookbook_hash = @client.sync_cookbooks
          @run_context = Chef::RunContext.new(node, Chef::CookbookCollection.new(cookbook_hash))
          @run_context.load(Chef::RunList::RunListExpansionFromAPI.new("_default", []))
          @run_status.run_context = run_context
        end