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