Class: Vivlio::Starter::CLI::SamovarCommands::MetricsCommand
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Vivlio::Starter::CLI::SamovarCommands::MetricsCommand
- Defined in:
- lib/vivlio/starter/cli/samovar/metrics_command.rb
Overview
metrics コマンドの Samovar 実装
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 [:help] targets = files || [] MetricsCommands.execute_metrics(targets, ) rescue SystemExit => e e.status rescue StandardError => e Common.log_error("metrics 実行中にエラー: #{e.}") Common.log_error(e.backtrace.first(5).join("\n")) if ENV['VERBOSE'] 1 end |