Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 21:25:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 21:25:58 +0300
commita5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch)
treefb69158581673816a8cd895f9d352dcb3c678b1e /lib/gitlab/saas.rb
parentd16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff)
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'lib/gitlab/saas.rb')
-rw-r--r--lib/gitlab/saas.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/gitlab/saas.rb b/lib/gitlab/saas.rb
new file mode 100644
index 00000000000..8d9d8415cb1
--- /dev/null
+++ b/lib/gitlab/saas.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+# This module is used to return various SaaS related configurations
+# which may be overridden in other variants of GitLab
+
+module Gitlab
+ module Saas
+ def self.com_url
+ 'https://gitlab.com'
+ end
+
+ def self.staging_com_url
+ 'https://staging.gitlab.com'
+ end
+
+ def self.subdomain_regex
+ %r{\Ahttps://[a-z0-9]+\.gitlab\.com\z}.freeze
+ end
+
+ def self.dev_url
+ 'https://dev.gitlab.org'
+ end
+ end
+end
+
+Gitlab::Saas.prepend_mod