16 lines
514 B
Ruby
16 lines
514 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module SubscriptionPortal
|
|
def self.default_subscriptions_url
|
|
::Gitlab.dev_or_test_env? ? 'https://customers.stg.gitlab.com' : 'https://customers.gitlab.com'
|
|
end
|
|
|
|
def self.subscriptions_url
|
|
ENV.fetch('CUSTOMER_PORTAL_URL', default_subscriptions_url)
|
|
end
|
|
end
|
|
end
|
|
|
|
Gitlab::SubscriptionPortal.prepend_if_jh('JH::Gitlab::SubscriptionPortal')
|
|
Gitlab::SubscriptionPortal::SUBSCRIPTIONS_URL = Gitlab::SubscriptionPortal.subscriptions_url.freeze
|