Class: Ace::Hitl::CLI::Commands::Duty

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

Overview

The standing-duty projection: pending + escalated (spec 8wm.t.y21 §7).

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(**options) ⇒ Object



20
21
22
23
24
# File 'lib/ace/hitl/cli/commands/duty.rb', line 20

def call(**options)
  emit(Lifecycle::Duty.project(lifecycle_store))
rescue Lifecycle::Error => e
  raise_lifecycle_error(e.message)
end