diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-06-24 19:36:32 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-06-26 19:29:41 +0300 |
commit | 5ec2146c4a9b1be510055127375804c8ef652ed3 (patch) | |
tree | 95bed55ff9420b2a915309999b34e43627b667bd /lib | |
parent | 8c89668d7d5a34bc7910d7b40aff2ef68739ed28 (diff) |
Add Gitlab.ee method
This method yields to the given block when the installation is EE.
Diffstat (limited to 'lib')
-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 fd4bbd69468..c62d1071dba 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -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 |