2020-05-13 14:08:47 -04:00
|
|
|
# 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
|
2020-05-15 11:08:04 -04:00
|
|
|
|
|
|
|
def self.ensure_scheduling_type_enabled?
|
|
|
|
::Feature.enabled?(:ci_ensure_scheduling_type, default_enabled: true)
|
|
|
|
end
|
2020-05-13 14:08:47 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|