2019-04-09 22:13:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-05-02 17:30:53 -04:00
|
|
|
module Clusters
|
|
|
|
class Instance
|
|
|
|
def clusters
|
|
|
|
Clusters::Cluster.instance_type
|
|
|
|
end
|
2019-04-09 22:13:43 -04:00
|
|
|
|
2019-05-02 17:30:53 -04:00
|
|
|
def feature_available?(feature)
|
|
|
|
::Feature.enabled?(feature, default_enabled: true)
|
|
|
|
end
|
2019-10-28 20:06:10 -04:00
|
|
|
|
|
|
|
def flipper_id
|
|
|
|
self.class.to_s
|
|
|
|
end
|
2019-04-17 22:45:31 -04:00
|
|
|
end
|
2019-04-09 22:13:43 -04:00
|
|
|
end
|