mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
13 lines
288 B
Ruby
13 lines
288 B
Ruby
require_dependency 'gitlab/git'
|
|
|
|
module Gitlab
|
|
def self.com?
|
|
# Check `staging?` as well to keep parity with gitlab.com
|
|
Gitlab.config.gitlab.url == 'https://gitlab.com' || staging?
|
|
end
|
|
|
|
def self.staging?
|
|
Gitlab.config.gitlab.url == 'https://staging.gitlab.com'
|
|
end
|
|
end
|