diff options
Diffstat (limited to 'app/models/instance_metadata.rb')
-rw-r--r-- | app/models/instance_metadata.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/instance_metadata.rb b/app/models/instance_metadata.rb index 6cac78178e0..47460c85671 100644 --- a/app/models/instance_metadata.rb +++ b/app/models/instance_metadata.rb @@ -1,11 +1,12 @@ # frozen_string_literal: true class InstanceMetadata - attr_reader :version, :revision, :kas + attr_reader :version, :revision, :kas, :enterprise - def initialize(version: Gitlab::VERSION, revision: Gitlab.revision) + def initialize(version: Gitlab::VERSION, revision: Gitlab.revision, enterprise: Gitlab.ee?) @version = version @revision = revision @kas = ::InstanceMetadata::Kas.new + @enterprise = enterprise end end |