diff options
Diffstat (limited to 'lib/gitlab/ci/features.rb')
-rw-r--r-- | lib/gitlab/ci/features.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/gitlab/ci/features.rb b/lib/gitlab/ci/features.rb new file mode 100644 index 00000000000..48f3d4fdd2f --- /dev/null +++ b/lib/gitlab/ci/features.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Gitlab + module Ci + ## + # Ci::Features is a class that aggregates all CI/CD feature flags in one place. + # + module Features + def self.artifacts_exclude_enabled? + ::Feature.enabled?(:ci_artifacts_exclude, default_enabled: false) + end + + def self.ensure_scheduling_type_enabled? + ::Feature.enabled?(:ci_ensure_scheduling_type, default_enabled: true) + end + end + end +end |