Class: Vivlio::Starter::CLI::SamovarCommands::DoctorCommand

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/vivlio/starter/cli/samovar/doctor_command.rb

Overview

doctor コマンドの Samovar 実装

Instance Method Summary collapse

Instance Method Details

#callObject



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/vivlio/starter/cli/samovar/doctor_command.rb', line 39

def call
  return print_usage if options[:help]

  DoctorCommands.execute_doctor(context_options)
  0
rescue SystemExit => e
  raise e
rescue StandardError => e
  Vivlio::Starter::CLI::Common.log_error("doctor コマンド実行中にエラー: #{e.message}")
  1
end