diff options
Diffstat (limited to 'lib/chef/monkey_patches')
-rw-r--r-- | lib/chef/monkey_patches/net_http.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/chef/monkey_patches/net_http.rb b/lib/chef/monkey_patches/net_http.rb deleted file mode 100644 index 5955f1c6d2..0000000000 --- a/lib/chef/monkey_patches/net_http.rb +++ /dev/null @@ -1,22 +0,0 @@ - -# Module gets mixed in to Net::HTTP exception classes so we can attach our -# RESTRequest object to them and get the request parameters back out later. -module ChefNetHTTPExceptionExtensions - attr_accessor :chef_rest_request -end - -require "net/http" unless defined?(Net::HTTP) -module Net - class HTTPError < Net::ProtocolError - include ChefNetHTTPExceptionExtensions - end - class HTTPRetriableError < Net::ProtoRetriableError - include ChefNetHTTPExceptionExtensions - end - class HTTPClientException < Net::ProtoServerError - include ChefNetHTTPExceptionExtensions - end - class HTTPFatalError < Net::ProtoFatalError - include ChefNetHTTPExceptionExtensions - end -end |