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?
|
2020-06-01 17:08:09 -04:00
|
|
|
::Feature.enabled?(:ci_artifacts_exclude, default_enabled: true)
|
2020-05-13 14:08:47 -04:00
|
|
|
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-27 11:08:11 -04:00
|
|
|
|
|
|
|
def self.job_heartbeats_runner?(project)
|
|
|
|
::Feature.enabled?(:ci_job_heartbeats_runner, project, default_enabled: true)
|
|
|
|
end
|
2020-06-09 11:08:05 -04:00
|
|
|
|
|
|
|
def self.instance_level_variables_limit_enabled?
|
|
|
|
::Feature.enabled?(:ci_instance_level_variables_limit, default_enabled: true)
|
|
|
|
end
|
2020-05-13 14:08:47 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|