Module: Pipedream::Dsl::Pipeline
- Includes:
- Approve, Codebuild, Github, Ssm
- Included in:
- Pipeline
- Defined in:
- lib/pipedream/dsl/pipeline.rb,
lib/pipedream/dsl/pipeline/github.rb,
lib/pipedream/dsl/pipeline/approve.rb,
lib/pipedream/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
#ssm, #ssm_client
Methods included from Github
#extract_repo_source, #github
Methods included from Codebuild
#codebuild
Methods included from Approve
#approve
Instance Method Details
#action(*props) ⇒ Object
32
33
34
35
|
# File 'lib/pipedream/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/pipedream/dsl/pipeline.rb', line 23
def stage(name, &block)
@run_order = 1
@current_stage = {name: name, actions: []}
@stages << @current_stage
block.call
end
|