Module: Trailblazer::Activity::Call

Included in:
Trailblazer::Activity
Defined in:
lib/trailblazer/activity.rb

Instance Method Summary collapse

Instance Method Details

#call(activity, ctx) ⇒ Object

Canonical entry-point to invoke an Trailblazer::Activity or Strategy such as Activity::Railway with its taskWrap.



28
29
30
# File 'lib/trailblazer/activity.rb', line 28

def call(activity, ctx)
  TaskWrap.invoke(activity, [ctx, {}])
end