From 78edcc2678d2914f50e20d44ec0e50f2aab0a727 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Thu, 25 Apr 2019 11:47:31 +0200 Subject: Allow to override Gitlab.ee? with IS_GITLAB_EE (cherry picked from commit f3b74d59865a88be67663339447667c725961413) --- lib/gitlab.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/gitlab.rb') diff --git a/lib/gitlab.rb b/lib/gitlab.rb index 1204e53ee2e..2a232c7e604 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -59,7 +59,11 @@ module Gitlab end def self.ee? - Object.const_defined?(:License) + if ENV['IS_GITLAB_EE'].present? + Gitlab::Utils.to_boolean(ENV['IS_GITLAB_EE']) + else + Object.const_defined?(:License) + end end def self.process_name -- cgit v1.2.3