Class: Gitlab::Ci::Pipeline::Chain::StopDryRun

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

Overview

During the dry run we don’t want to persist the pipeline and skip all the other steps that operate on a persisted context. This causes the chain to break at this point.

Instance Attribute Summary

Attributes inherited from Base

#command, #config, #pipeline

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Base

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gitlab/ci/pipeline/chain/stop_dry_run.rb', line 15

def break?
  @command.dry_run?
end

#perform!Object



11
12
13
# File 'lib/gitlab/ci/pipeline/chain/stop_dry_run.rb', line 11

def perform!
  # no-op
end