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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
347 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# 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