diff options
author | James Fargher <proglottis@gmail.com> | 2019-05-03 09:30:53 +1200 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2019-05-07 08:37:04 +1200 |
commit | c40a99a05842d0976dd1bca532fbc67c0ccee04d (patch) | |
tree | a3d126281982d9efa18aac1842ea5a6734d9fd8c /app/models/clusters/instance.rb | |
parent | 265dee5cc6a298370d708acdd11ee56997667332 (diff) | |
download | gitlab-ce-c40a99a05842d0976dd1bca532fbc67c0ccee04d.tar.gz |
Change specs to match gitlab code standards
Diffstat (limited to 'app/models/clusters/instance.rb')
-rw-r--r-- | app/models/clusters/instance.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/app/models/clusters/instance.rb b/app/models/clusters/instance.rb index bbbf6da16fb..e83c2baad74 100644 --- a/app/models/clusters/instance.rb +++ b/app/models/clusters/instance.rb @@ -1,15 +1,17 @@ # frozen_string_literal: true -class Clusters::Instance - def clusters - Clusters::Cluster.instance_type - end +module Clusters + class Instance + def clusters + Clusters::Cluster.instance_type + end - def feature_available?(feature) - ::Feature.enabled?(feature, default_enabled: true) - end + def feature_available?(feature) + ::Feature.enabled?(feature, default_enabled: true) + end - def instance_clusters_enabled? - ::Feature.enabled?(:instance_clusters, default_enabled: true) + def instance_clusters_enabled? + ::Feature.enabled?(:instance_clusters, default_enabled: true) + end end end |