diff options
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r-- | lib/gitlab.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb index aa9fd36d9ff..cbe1467c2cd 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -4,6 +4,10 @@ module Gitlab COM_URL = 'https://gitlab.com'.freeze APP_DIRS_PATTERN = %r{^/?(app|config|ee|lib|spec|\(\w*\))} + def self.root + Pathname.new(File.expand_path('..', __dir__)) + end + def self.com? # Check `staging?` as well to keep parity with gitlab.com Gitlab.config.gitlab.url == COM_URL || staging? |