Class: Gitlab::Ci::Pipeline::Chain::SeedBlock
- Includes:
- Helpers, Utils::StrongMemoize
- Defined in:
- lib/gitlab/ci/pipeline/chain/seed_block.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Methods included from Helpers
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Base
Instance Method Details
#break? ⇒ Boolean
20 21 22 |
# File 'lib/gitlab/ci/pipeline/chain/seed_block.rb', line 20 def break? pipeline.errors.any? end |
#perform! ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/gitlab/ci/pipeline/chain/seed_block.rb', line 11 def perform! ## # Populate pipeline with block argument of CreatePipelineService#execute. # @command.seeds_block&.call(pipeline) raise "Pipeline cannot be persisted by `seeds_block`" if pipeline.persisted? end |