module Flows::SharedContextPipeline::DSL::Tracks
@api private
Constants
- DEFAULT_ROUTER_DEF
- SingletonVarsSetup
Attributes
tracks[R]
Public Instance Methods
mut_step(name, router_def = DEFAULT_ROUTER_DEF, body: nil)
click to toggle source
# File lib/flows/shared_context_pipeline/dsl/tracks.rb, line 25 def mut_step(name, router_def = DEFAULT_ROUTER_DEF, body: nil) tracks.add_step( MutationStep.new(name: name, body: body, router_def: router_def) ) end
routes(routes_def)
click to toggle source
:reek: UtilityFunction is allowed here
# File lib/flows/shared_context_pipeline/dsl/tracks.rb, line 46 def routes(routes_def) RouterDefinition.new(routes_def) end
step(name, router_def = DEFAULT_ROUTER_DEF, body: nil)
click to toggle source
# File lib/flows/shared_context_pipeline/dsl/tracks.rb, line 19 def step(name, router_def = DEFAULT_ROUTER_DEF, body: nil) tracks.add_step( Step.new(name: name, body: body, router_def: router_def) ) end
track(name, &block)
click to toggle source
# File lib/flows/shared_context_pipeline/dsl/tracks.rb, line 37 def track(name, &block) track_before = tracks.current_track tracks.switch_track(name) instance_exec(&block) tracks.switch_track(track_before) end
wrap(name, router_def = DEFAULT_ROUTER_DEF, &tracks_definitions)
click to toggle source
# File lib/flows/shared_context_pipeline/dsl/tracks.rb, line 31 def wrap(name, router_def = DEFAULT_ROUTER_DEF, &tracks_definitions) tracks.add_step( Wrap.new(method_name: name, router_def: router_def, &tracks_definitions) ) end