Class: Gitlab::Ci::Pipeline::Chain::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/chain/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pipeline, command) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 12

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

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



8
9
10
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 8

def command
  @command
end

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 8

def config
  @config
end

#pipelineObject (readonly)

Returns the value of attribute pipeline.



8
9
10
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 8

def pipeline
  @pipeline
end

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 21

def break?
  raise NotImplementedError
end

#perform!Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/gitlab/ci/pipeline/chain/base.rb', line 17

def perform!
  raise NotImplementedError
end