debian-mirror-gitlab/app/models/instance_metadata.rb

13 lines
328 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
class InstanceMetadata
2023-01-13 00:05:48 +05:30
attr_reader :version, :revision, :kas, :enterprise
2021-01-29 00:20:46 +05:30
2023-01-13 00:05:48 +05:30
def initialize(version: Gitlab::VERSION, revision: Gitlab.revision, enterprise: Gitlab.ee?)
2021-01-29 00:20:46 +05:30
@version = version
@revision = revision
2021-06-08 01:23:25 +05:30
@kas = ::InstanceMetadata::Kas.new
2023-01-13 00:05:48 +05:30
@enterprise = enterprise
2021-01-29 00:20:46 +05:30
end
end