Class: Vivlio::Starter::CLI::SamovarCommands::RenameCommand

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

Overview

rename コマンドの Samovar 実装

Direct Known Subclasses

RenumberCommand

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  return print_usage if options[:help]

  ensure_argument_count!
  executor.call(*arguments.first(2))
  0
rescue SystemExit => e
  raise e
rescue StandardError => e
  Vivlio::Starter::CLI::Common.log_error("rename コマンド実行中にエラー: #{e.message}")
  1
end