debian-mirror-gitlab/lib/gitlab.rb

13 lines
288 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
require_dependency 'gitlab/git'
2015-04-26 12:48:37 +05:30
module Gitlab
2016-06-02 11:05:42 +05:30
def self.com?
2016-08-24 12:49:21 +05:30
# 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'
2016-06-02 11:05:42 +05:30
end
2015-04-26 12:48:37 +05:30
end