gitlab-org--gitlab-foss/lib/gitlab.rb
Toon Claes 7188b4d839 Make the revision on the /help page clickable
For quicker access, add hyperlink to the gitlab.com commits page for the current
REVISION of GitLab.
2017-06-09 10:35:42 +02:00

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