BigW Consortium Gitlab

base.rb 543 Bytes
Newer Older
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