46 lines
1.3 KiB
Ruby
46 lines
1.3 KiB
Ruby
# 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: true)
|
|
end
|
|
|
|
def self.ensure_scheduling_type_enabled?
|
|
::Feature.enabled?(:ci_ensure_scheduling_type, default_enabled: true)
|
|
end
|
|
|
|
def self.job_heartbeats_runner?(project)
|
|
::Feature.enabled?(:ci_job_heartbeats_runner, project, default_enabled: true)
|
|
end
|
|
|
|
def self.instance_level_variables_limit_enabled?
|
|
::Feature.enabled?(:ci_instance_level_variables_limit, default_enabled: true)
|
|
end
|
|
|
|
def self.pipeline_fixed_notifications?
|
|
::Feature.enabled?(:ci_pipeline_fixed_notifications)
|
|
end
|
|
|
|
def self.instance_variables_ui_enabled?
|
|
::Feature.enabled?(:ci_instance_variables_ui, default_enabled: true)
|
|
end
|
|
|
|
def self.composite_status?(project)
|
|
::Feature.enabled?(:ci_composite_status, project, default_enabled: true)
|
|
end
|
|
|
|
def self.atomic_processing?(project)
|
|
::Feature.enabled?(:ci_atomic_processing, project, default_enabled: true)
|
|
end
|
|
|
|
def self.release_generation_enabled?
|
|
::Feature.enabled?(:ci_release_generation)
|
|
end
|
|
end
|
|
end
|
|
end
|