debian-mirror-gitlab/app/models/instance_metadata/kas.rb
2021-06-08 01:23:25 +05:30

15 lines
347 B
Ruby

# frozen_string_literal: true
class InstanceMetadata::Kas
attr_reader :enabled, :version, :external_url
def initialize
@enabled = Gitlab::Kas.enabled?
@version = Gitlab::Kas.version if @enabled
@external_url = Gitlab::Kas.external_url if @enabled
end
def self.declarative_policy_class
"InstanceMetadataPolicy"
end
end