Welcome to mirror list, hosted at ThFree Co, Russian Federation.

kas.rb « instance_metadata « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d2d71120b5ce0cbf2ac6419cef4e65ea6c63465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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