module Codepipe::Dsl::Pipeline
Constants
- PROPERTIES
Public Instance Methods
action(*props)
click to toggle source
# File lib/codepipe/dsl/pipeline.rb, line 32 def action(*props) @current_stage[:actions] += props @run_order += 1 end
stage(name, &block)
click to toggle source
# 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