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

instance.rb « clusters « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94fadace01c4f77dd4dd6d24b2d18f85b59f0307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Clusters
  class Instance
    def clusters
      Clusters::Cluster.instance_type
    end

    def feature_available?(feature)
      ::Feature.enabled?(feature, type: :licensed, default_enabled: true)
    end

    def flipper_id
      self.class.to_s
    end
  end
end