summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/chain/base.rb
blob: bab1c73e2f1a665fd86ee92757f7f57f8802a4aa (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
28
# frozen_string_literal: true

module Gitlab
  module Ci
    module Pipeline
      module Chain
        class Base
          attr_reader :pipeline, :command

          delegate :project, :current_user, to: :command

          def initialize(pipeline, command)
            @pipeline = pipeline
            @command = command
          end

          def perform!
            raise NotImplementedError
          end

          def break?
            raise NotImplementedError
          end
        end
      end
    end
  end
end