debian-mirror-gitlab/lib/gitlab.rb
2017-09-10 17:25:29 +05:30

14 lines
316 B
Ruby

require_dependency 'gitlab/git'
module Gitlab
COM_URL = 'https://gitlab.com'.freeze
def self.com?
# Check `staging?` as well to keep parity with gitlab.com
Gitlab.config.gitlab.url == COM_URL || staging?
end
def self.staging?
Gitlab.config.gitlab.url == 'https://staging.gitlab.com'
end
end