Commit 5ec2146c authored by Robert Speicher's avatar Robert Speicher

Add Gitlab.ee method

This method yields to the given block when the installation is EE.
parent 8c89668d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment