From 5ec2146c4a9b1be510055127375804c8ef652ed3 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 24 Jun 2019 11:36:32 -0500 Subject: Add Gitlab.ee method This method yields to the given block when the installation is EE. --- lib/gitlab.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/gitlab.rb') 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 -- cgit v1.2.3