mix phoenix_micro.gen.saga (PhoenixMicro v1.0.0)

Copy Markdown View Source

Generates a PhoenixMicro saga module with stub steps and compensations.

Usage

mix phoenix_micro.gen.saga MyApp.PlaceOrderSaga reserve_inventory charge_payment

Options

--no-compensate   Generate steps without compensation stubs

Example

mix phoenix_micro.gen.saga MyApp.Checkout.PlaceOrderSaga \
  reserve_inventory \
  charge_payment \
  create_shipment \
  notify_customer

Generates lib/my_app/checkout/place_order_saga.ex and a matching test file.