blob: 188725d16c1de59ed813f801c8e74c447d49f773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
direct :subscription_portal_staging do
ENV.fetch('STAGING_CUSTOMER_PORTAL_URL', 'https://customers.staging.gitlab.com')
end
direct :subscription_portal do
default_subscriptions_url = if ::Gitlab.dev_or_test_env?
subscription_portal_staging_url
else
'https://customers.gitlab.com'
end
ENV.fetch('CUSTOMER_PORTAL_URL', default_subscriptions_url)
end
direct :subscription_portal_instance_review do
Addressable::URI.join(subscription_portal_url, '/instance_review').to_s
end
|