debian-mirror-gitlab/lib/gitlab.rb
2016-08-24 12:49:21 +05:30

12 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