2016-04-15 11:35:40 -04:00
|
|
|
require_dependency 'gitlab/git'
|
2015-07-15 09:59:38 -04:00
|
|
|
|
|
|
|
module Gitlab
|
2017-06-08 09:43:06 -04:00
|
|
|
COM_URL = 'https://gitlab.com'.freeze
|
|
|
|
|
2016-04-12 14:39:08 -04:00
|
|
|
def self.com?
|
2016-06-13 17:43:29 -04:00
|
|
|
# Check `staging?` as well to keep parity with gitlab.com
|
2017-06-08 09:43:06 -04:00
|
|
|
Gitlab.config.gitlab.url == COM_URL || staging?
|
2016-06-13 17:43:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.staging?
|
|
|
|
Gitlab.config.gitlab.url == 'https://staging.gitlab.com'
|
2016-04-12 14:39:08 -04:00
|
|
|
end
|
2015-07-15 09:59:38 -04:00
|
|
|
end
|