BigW Consortium Gitlab

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

module Gitlab
4
  def self.com?
5 6 7 8 9 10
    # 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'
11
  end
12
end