summaryrefslogtreecommitdiff
path: root/app/models/ci/namespace_settings.rb
blob: d519a48311fdd07d20ec4952fb1724c7db7489d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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