Class: Ace::Hitl::CLI::Commands::Cancel

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
LifecycleCommand, Support::Cli::Base
Defined in:
lib/ace/hitl/cli/commands/cancel.rb

Overview

The ONLY way to abandon a relay request: explicit, audited cancellation recorded in the public lifecycle projection (spec 8wm.t.y21 §3).

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



25
26
27
28
29
# File 'lib/ace/hitl/cli/commands/cancel.rb', line 25

def call(id:, **options)
  emit(lifecycle_store.cancel(id, reason: options[:reason] || ""))
rescue Lifecycle::Error => e
  raise_lifecycle_error(e.message)
end