Class: Fog::Connection Deprecated

Inherits:
XML::Connection
  • Object
show all
Defined in:
lib/fog/core/deprecated/connection.rb

Overview

Deprecated.

Use Fog::Core::Connection or XML::SAXParserConnection if you require the response body to be parsed.

The Connection class is a wrapper around an instance of Excon::Connection supporting #request and #reset only.

#request includes an option to perform SAX parsing for XML APIs.

Instance Method Summary collapse

Instance Method Details

#request(params, &block) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/fog/core/deprecated/connection.rb', line 15

def request(params, &block)
  if params.key?(:parser)
    Fog::Logger.deprecation("Fog::Connection is deprecated use Fog::XML::Connection instead [light_black](#{caller.first})[/]")
  else
    Fog::Logger.deprecation("Fog::Connection is deprecated use Fog::Core::Connection instead [light_black](#{caller.first})[/]")
  end
  super(params)
end