Module: Codepipe::Dsl::Pipeline
- Included in:
- Pipeline
- Defined in:
- lib/codepipe/dsl/pipeline.rb,
lib/codepipe/dsl/pipeline/github.rb,
lib/codepipe/dsl/pipeline/approve.rb,
lib/codepipe/dsl/pipeline/codebuild.rb
Defined Under Namespace
Modules: Approve, Codebuild, Github
Constant Summary collapse
- PROPERTIES =
%w[ artifact_store artifact_stores disable_inboundstage_transitions name restart_execution_on_update role_arn stages ]
Instance Method Summary collapse
Methods included from Ssm
Methods included from Github
Methods included from Codebuild
#codebuild, #codebuild_prefix, #codebuild_suffix
Methods included from Approve
Instance Method Details
#action(*props) ⇒ Object
32 33 34 35 |
# File 'lib/codepipe/dsl/pipeline.rb', line 32 def action(*props) @current_stage[:actions] += props @run_order += 1 end |
#stage(name, &block) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/codepipe/dsl/pipeline.rb', line 23 def stage(name, &block) # Reset values for each stage declaraion @run_order = 1 @current_stage = {name: name, actions: []} @stages << @current_stage block.call end |