Sha256: 366410ffe891950dbabf414740f017ee0c50156c6f78ff64961e4be6190f28a7

Contents?: true

Size: 872 Bytes

Versions: 28

Compression:

Stored size: 872 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::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
  end
end

Version data entries

28 entries across 26 versions & 4 rubygems

Version Path
fog-2.3.0 lib/fog/core/deprecated/connection.rb
fog-ifeel-2.2.0 lib/fog/core/deprecated/connection.rb
fog-2.2.0 lib/fog/core/deprecated/connection.rb
fog-2.1.0 lib/fog/core/deprecated/connection.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/core/deprecated/connection.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/core/deprecated/connection.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/core/deprecated/connection.rb
fog-1.42.1 lib/fog/core/deprecated/connection.rb
fog-2.0.0 lib/fog/core/deprecated/connection.rb
fog-1.42.0 lib/fog/core/deprecated/connection.rb
fog-1.41.0 lib/fog/core/deprecated/connection.rb
fog-1.40.0 lib/fog/core/deprecated/connection.rb
fog-1.39.0 lib/fog/core/deprecated/connection.rb
fog-1.38.0 lib/fog/core/deprecated/connection.rb
fog-1.37.0 lib/fog/core/deprecated/connection.rb
fog-1.36.0 lib/fog/core/deprecated/connection.rb
fog-1.35.0 lib/fog/core/deprecated/connection.rb
fog-2.0.0.pre.0 lib/fog/core/deprecated/connection.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/core/deprecated/connection.rb
fog-1.34.0 lib/fog/core/deprecated/connection.rb