Add Gitlab.ee method

This method yields to the given block when the installation is EE.
This commit is contained in:
Robert Speicher 2019-06-24 11:36:32 -05:00
parent 8c89668d7d
commit 5ec2146c4a
No known key found for this signature in database
GPG Key ID: 1D812769A7706642
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ module Gitlab
end
end
def self.ee
yield if ee?
end
def self.http_proxy_env?
HTTP_PROXY_ENV_VARS.any? { |name| ENV[name] }
end