Class: Ace::Hitl::CLI::Commands::Deliver
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Hitl::CLI::Commands::Deliver
- Includes:
- LifecycleCommand, Support::Cli::Base
- Defined in:
- lib/ace/hitl/cli/commands/deliver.rb
Overview
Operator/broker answering of one relay request (the "respond" surface). The answer is read from stdin; the effect callback, if declared, executes after the relay (spec 8wm.t.y21 §3, §5).
Constant Summary
Constants included from LifecycleCommand
LifecycleCommand::STDIN_READER
Instance Method Summary collapse
Methods included from LifecycleCommand
#emit, #lifecycle_store, #overseer, #raise_lifecycle_error
Instance Method Details
#call(id:, **options) ⇒ Object
23 24 25 26 27 |
# File 'lib/ace/hitl/cli/commands/deliver.rb', line 23 def call(id:, **) emit(lifecycle_store.deliver(id, LifecycleCommand::STDIN_READER)) rescue Lifecycle::Error => e raise_lifecycle_error(e.) end |