def connection
      @connection ||= begin
        uri = URI(Config.artifactory.strip)
        # Open the HTTP connection to artifactory.
        http = Net::HTTP.new(uri.host, uri.port)
        if uri.scheme == 'https'
          http.use_ssl = true
          # Mimic the behavior of the Cookbook uploader for SSL verification.
          if ENV['STOVE_NO_SSL_VERIFY'] || !Config.ssl_verify
            http.verify_mode = OpenSSL::SSL::VERIFY_NONE
          end
        end
        http.start
      end
    end
def connection
      @connection ||= begin
        uri = URI(Config.artifactory.strip)
        # Open the HTTP connection to artifactory.
        http = Net::HTTP.new(uri.host, uri.port)
        if uri.scheme == 'https'
          http.use_ssl = true
          # Mimic the behavior of the Cookbook uploader for SSL verification.
          if ENV['STOVE_NO_SSL_VERIFY'] || !Config.ssl_verify
            http.verify_mode = OpenSSL::SSL::VERIFY_NONE
          end
        end
        http.start
      end
    end
Create an HTTP connect to the Artifactory server.

 @return [Net::HTTP]