Sha256: c6a1406778d2b94cdf3b4fe1932025a62a2b8167020e11ba947df0ecf7584896

Contents?: true

Size: 882 Bytes

Versions: 15

Compression:

Stored size: 882 Bytes

Contents

require "fog/xml"

module Fog
  # @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.
  #
  # @see https://github.com/geemus/excon/blob/master/lib/excon/connection.rb
  #
  class Connection < Fog::XML::Connection
    def request(params, &block)
      if params.key?(:parser)
        Fog::Logger.deprecation("Fog::XML::Connection is deprecated use Fog::XML::Connection instead [light_black](#{caller.first})[/]")
      else
        Fog::Logger.deprecation("Fog::XML::Connection is deprecated use Fog::Core::Connection instead [light_black](#{caller.first})[/]")
      end
      super(params)
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/core/deprecated/connection.rb
fog-1.25.0 lib/fog/core/deprecated/connection.rb
nsidc-fog-1.24.1 lib/fog/core/deprecated/connection.rb
fog-1.24.0 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.11 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.10 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.9 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.8 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.7 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.6 lib/fog/core/deprecated/connection.rb
fog-1.23.0 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.4 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.3 lib/fog/core/deprecated/connection.rb
ns-fog-1.22.2 lib/fog/core/deprecated/connection.rb
fog-1.22.1 lib/fog/core/deprecated/connection.rb