Welcome to mirror list, hosted at ThFree Co, Russian Federation.

specification.rb « policy « build « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ceb5210cfb5a0b3f34748a6ee6521dd2160f6972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

module Gitlab
  module Ci
    module Build
      module Policy
        ##
        # Abstract class that defines an interface of job policy
        # specification.
        #
        # Used for job's only/except policy configuration.
        #
        class Specification
          UnknownPolicyError = Class.new(StandardError)

          def initialize(spec)
            @spec = spec
          end

          def satisfied_by?(pipeline, seed = nil)
            raise NotImplementedError
          end
        end
      end
    end
  end
end