debian-mirror-gitlab/app/models/ci/namespace_settings.rb

20 lines
434 B
Ruby
Raw Normal View History

2022-07-16 23:28:13 +05:30
# frozen_string_literal: true
# CI::NamespaceSettings mixin
#
# This module is intended to encapsulate CI/CD settings-specific logic
# and be prepended in the `Namespace` model
module Ci
module NamespaceSettings
# Overridden in EE::Namespace
def allow_stale_runner_pruning?
false
end
# Overridden in EE::Namespace
def allow_stale_runner_pruning=(_value)
raise NotImplementedError
end
end
end