Add Gitlab.ee method
This method yields to the given block when the installation is EE.
This commit is contained in:
parent
8c89668d7d
commit
5ec2146c4a
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue