def deploy_if

near-v-framework@0.4.0.0 · domain/architecture/system/effects.bend:319

import near-v-framework@0.4.0.0/domain/architecture/system/effects.bend as Effects
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend as X
import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P
import near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend as PO

319def deploy_if(blocked: Bool, +root: String, +ss: List<&2, P.Step>) -> IO(Unit):
320  match blocked:
321    case True{}:
322      IO.die(Unit, 1, PO.show_all(ss) ++ "nothing deployed: the plan is blocked")
323    case False{}:
324      do IO<Unit>:
325        +h : String <- X.home()
326        apply_all(root, h ++ "/.bend/bin/bend", ss)

Uses (12)

Used by (1)