BigW Consortium Gitlab

gitlab.rb 316 Bytes
Newer Older
1
require_dependency 'gitlab/git'
2 3

module Gitlab
4 5
  COM_URL = 'https://gitlab.com'.freeze

6
  def self.com?
7
    # Check `staging?` as well to keep parity with gitlab.com
8
    Gitlab.config.gitlab.url == COM_URL || staging?
9 10 11 12
  end

  def self.staging?
    Gitlab.config.gitlab.url == 'https://staging.gitlab.com'
13
  end
14
end