gitlab-org--gitlab-foss/lib/gitlab.rb

13 lines
288 B
Ruby
Raw Normal View History

require_dependency 'gitlab/git'
2015-07-15 09:59:38 -04:00
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
2015-07-15 09:59:38 -04:00
end