chef/lib/chef/provider/http_request.rb
# Send a DELETE request to @new_resource.url
Send a DELETE request to @new_resource.url
Send a DELETE request to @new_resource . url
def action_delete
        converge_by("#{@new_resource} DELETE to #{@new_resource.url}") do
          body = @rest.run_request(
            :DELETE,
            @rest.create_url("#{@new_resource.url}"),
            @new_resource.headers,
            false,
            10,
            false
          )
          @new_resource.updated_by_last_action(true)
          Chef::Log.info("#{@new_resource} DELETE to #{@new_resource.url} successful")
          Chef::Log.debug("#{@new_resource} DELETE request response: #{body}")
        end
      end
def action_delete converge_by ( "#{@new_resource} DELETE to #{@new_resource.url}" ) do body = @rest . run_request ( :DELETE , @rest . create_url ( "#{@new_resource.url}" ) , @new_resource . headers , false , 10 , false ) @new_resource . updated_by_last_action ( true ) Chef :: Log . info ( "#{@new_resource} DELETE to #{@new_resource.url} successful" ) Chef :: Log . debug ( "#{@new_resource} DELETE request response: #{body}" ) end end
Send a DELETE request to @new_resource.url
Send a DELETE request to @new_resource . url