Sha256: 4089cddcc63e03e9261a84c41a81a8a40b502b6e8ebee29bc2c38e5573514f32

Contents?: true

Size: 818 Bytes

Versions: 1

Compression:

Stored size: 818 Bytes

Contents

class Trailblazer::V2_1::Activity < Module
  def self.FastTrack(options={})
    FastTrack.new(FastTrack, options)
  end

  # Implementation module that can be passed to `Activity[]`.
  class FastTrack < Trailblazer::V2_1::Activity
    def self.config
      Railway.config.merge(
        builder_class:  Magnetic::Builder::FastTrack,
        extend:          [
          DSL.def_dsl(:step, Magnetic::Builder::FastTrack, :StepPolarizations),
          DSL.def_dsl(:fail, Magnetic::Builder::FastTrack, :FailPolarizations),
          DSL.def_dsl(:pass, Magnetic::Builder::FastTrack, :PassPolarizations),
          DSL.def_dsl(:_end, Magnetic::Builder::Path,      :EndEventPolarizations), # TODO: TEST ME
        ],
      )
    end

    # Signals
    FailFast = Class.new(Signal)
    PassFast = Class.new(Signal)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trailblazer-future-2.1.0.rc1 lib/trailblazer/v2_1/activity/dsl/strategy/fast_track.rb