summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/chain/base.rb
blob: 8d82e1b288d9dae0538a3dd5a05d564a378efb46 (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
module Gitlab
  module Ci
    module Pipeline
      module Chain
        class Base
          attr_reader :pipeline, :project, :current_user

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

            @project = command.project
            @current_user = command.current_user
          end

          def perform!
            raise NotImplementedError
          end

          def break?
            raise NotImplementedError
          end
        end
      end
    end
  end
end