summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
blob: 11f7c8b95108236670c18c62d966b98a3d53d5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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