Sha256: 86015c547dcb8a00c2f225fe72600dea4da00fe802be3f9783453fc7bddf7979

Contents?: true

Size: 587 Bytes

Versions: 52

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

require 'api_tools'

module FIR
  module Http
    include ApiTools::DefaultRestModule

    alias old_default_options default_options
    def default_options
      @default_options = old_default_options.merge(timeout: 300)
      if ENV['FIR_TIMEOUT']
        @default_options[:timeout] = ENV['FIR_TIMEOUT'].to_i
      end
      unless ENV['UPLOAD_VERIFY_SSL']
        @default_options.merge!(other_base_execute_option: {
                                  verify_ssl: OpenSSL::SSL::VERIFY_NONE
                                })
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
fir-cli-2.0.22 lib/fir/util/http.rb
fir-cli-2.0.21 lib/fir/util/http.rb
fir-cli-2.0.20 lib/fir/util/http.rb
fir-cli-2.0.19 lib/fir/util/http.rb
fir-cli-2.0.18 lib/fir/util/http.rb
fir-cli-2.0.17 lib/fir/util/http.rb
fir-cli-2.0.16 lib/fir/util/http.rb
fir-cli-2.0.15 lib/fir/util/http.rb
fir-cli-2.0.14 lib/fir/util/http.rb
fir-cli-2.0.13 lib/fir/util/http.rb
fir-cli-2.0.12 lib/fir/util/http.rb
fir-cli-2.0.11 lib/fir/util/http.rb
fir-cli-2.0.10 lib/fir/util/http.rb
fir-cli-2.0.9 lib/fir/util/http.rb
fir-cli-2.0.8 lib/fir/util/http.rb
fir-cli-2.0.7 lib/fir/util/http.rb
fir-cli-2.0.6 lib/fir/util/http.rb
fir-cli-2.0.5 lib/fir/util/http.rb
fir-cli-2.0.4 lib/fir/util/http.rb
fir-cli-2.0.3.3 lib/fir/util/http.rb