2018-10-26 00:12:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-25 10:22:00 -04:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Pipeline
|
|
|
|
module Chain
|
|
|
|
class Base
|
2019-11-18 13:06:53 -05:00
|
|
|
attr_reader :pipeline, :command, :config
|
2017-12-08 05:35:36 -05:00
|
|
|
|
2021-11-19 13:12:50 -05:00
|
|
|
delegate :project, :current_user, :parent_pipeline, :logger, to: :command
|
2017-09-25 10:22:00 -04:00
|
|
|
|
|
|
|
def initialize(pipeline, command)
|
|
|
|
@pipeline = pipeline
|
|
|
|
@command = command
|
|
|
|
end
|
|
|
|
|
|
|
|
def perform!
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def break?
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|