Sha256: ed0d9db2dbbb515b1d9be4d1f3747d033313bfea565254a87bbfff5cce84cc9c

Contents?: true

Size: 648 Bytes

Versions: 6

Compression:

Stored size: 648 Bytes

Contents

require 'foreman_rh_cloud/engine.rb'

module ForemanRhCloud
  def self.base_url
    # for testing set ENV to 'https://ci.cloud.redhat.com'
    @base_url ||= ENV['SATELLITE_RH_CLOUD_URL'] || 'https://cloud.redhat.com'
  end

  def self.authentication_url
    # https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
    @authentication_url ||= ENV['SATELLITE_RH_CLOUD_SSO_URL'] || 'https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token'
  end

  def self.verify_ssl_method
    @verify_ssl_method ||= ENV['SATELLITE_RH_CLOUD_URL'] ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.11 lib/foreman_rh_cloud.rb
foreman_rh_cloud-1.0.11 lib/foreman_rh_cloud.rb
foreman_rh_cloud-2.0.11 lib/foreman_rh_cloud.rb
foreman_rh_cloud-0.9.10 lib/foreman_rh_cloud.rb
foreman_rh_cloud-1.0.10 lib/foreman_rh_cloud.rb
foreman_rh_cloud-2.0.10 lib/foreman_rh_cloud.rb