2016-04-15 11:35:40 -04:00
|
|
|
require_dependency 'gitlab/git'
|
2015-07-15 09:59:38 -04:00
|
|
|
|
|
|
|
module Gitlab
|
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
|
|
|
|
Gitlab.config.gitlab.url == 'https://gitlab.com' || staging?
|
|
|
|
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
|