debian-mirror-gitlab/lib/gitlab/ci/features.rb
2020-05-25 16:23:42 +05:30

18 lines
454 B
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: false)
end
def self.ensure_scheduling_type_enabled?
::Feature.enabled?(:ci_ensure_scheduling_type, default_enabled: true)
end
end
end
end