Class: Textus::Surface::CLI::Verb::Doctor
- Inherits:
-
Textus::Surface::CLI::Verb
- Object
- Textus::Surface::CLI::Verb
- Textus::Surface::CLI::Verb::Doctor
- Defined in:
- lib/textus/surface/cli/verb/doctor.rb
Instance Attribute Summary
Attributes inherited from Textus::Surface::CLI::Verb
Instance Method Summary collapse
Methods inherited from Textus::Surface::CLI::Verb
command_name, descendants, #emit, inherited, #initialize, needs_store?, option, options, parent_group, #parse, #resolved_role
Constructor Details
This class inherits a constructor from Textus::Surface::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/textus/surface/cli/verb/doctor.rb', line 9 def call(store) spec = Textus::Action::Doctor.contract inputs = { checks: checks&.split(",")&.map(&:strip) } res = store.gate.dispatch(spec: spec, inputs: inputs, role: resolved_role(store)) emit(res, exit_code: res["ok"] ? 0 : 1) end |