Class: Clusters::Instance
- Inherits:
-
Object
- Object
- Clusters::Instance
- Defined in:
- app/models/clusters/instance.rb
Instance Method Summary collapse
Instance Method Details
#certificate_based_clusters_enabled? ⇒ Boolean
13 14 15 16 17 |
# File 'app/models/clusters/instance.rb', line 13 def certificate_based_clusters_enabled? ::Gitlab::SafeRequestStore.fetch("certificate_based_clusters:") do Feature.enabled?(:certificate_based_clusters, type: :ops) end end |
#clusters ⇒ Object
5 6 7 |
# File 'app/models/clusters/instance.rb', line 5 def clusters Clusters::Cluster.instance_type end |
#flipper_id ⇒ Object
9 10 11 |
# File 'app/models/clusters/instance.rb', line 9 def flipper_id self.class.to_s end |