Class: Textus::CLI::Verb::Doctor

Inherits:
Textus::CLI::Verb show all
Defined in:
lib/textus/cli/verb/doctor.rb

Instance Attribute Summary

Attributes inherited from Textus::CLI::Verb

#positional

Instance Method Summary collapse

Methods inherited from Textus::CLI::Verb

command_name, #context_for, descendants, #emit, inherited, #initialize, needs_store?, option, options, parent_group, #parse, #resolved_role, #session_for

Constructor Details

This class inherits a constructor from Textus::CLI::Verb

Instance Method Details

#call(store) ⇒ Object



9
10
11
12
13
# File 'lib/textus/cli/verb/doctor.rb', line 9

def call(store)
  check_list = checks&.split(",")&.map(&:strip)
  res = Textus::Doctor.run(Textus::Session.for(store), checks: check_list)
  emit(res, exit_code: res["ok"] ? 0 : 1)
end