Class: Vivlio::Starter::CLI::SamovarCommands::CleanCommand

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

Overview

clean コマンドの Samovar 実装

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  return print_usage if options[:help]

  CleanCommands.execute_clean(options.dup)
  0
rescue SystemExit => e
  raise e
rescue StandardError => e
  Vivlio::Starter::CLI::Common.log_warn("clean コマンド実行中にエラー: #{e.message}")
  1
end