def upload_cookbooks!
      return if @cookbooks_uploaded
      loader = Chef::CookbookLoader.new(Chef::Config[:cookbook_path])
      loader.load_cookbooks
      cookbook_uploader_for(loader).upload_cookbooks
      @cookbooks_uploaded = true
    end
def upload_cookbooks!
      return if @cookbooks_uploaded
      loader = Chef::CookbookLoader.new(Chef::Config[:cookbook_path])
      loader.load_cookbooks
      cookbook_uploader_for(loader).upload_cookbooks
      @cookbooks_uploaded = true
    end
Upload the cookbooks to the Chef Server.