Class: Vivlio::Starter::CLI::SamovarCommands::MetricsCommand

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

Overview

metrics コマンドの Samovar 実装

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  return print_help if options[:help]

  targets = files || []
  MetricsCommands.execute_metrics(targets, build_options)
rescue SystemExit => e
  e.status
rescue StandardError => e
  Common.log_error("metrics 実行中にエラー: #{e.message}")
  Common.log_error(e.backtrace.first(5).join("\n")) if ENV['VERBOSE']
  1
end