Class: VivlioStarter::CLI::SamovarCommands::UpgradeCommand

Inherits:
VsCommand
  • Object
show all
Defined in:
lib/vivlio_starter/cli/samovar/upgrade_command.rb

Overview

執筆環境(本体 gem・プロジェクト雛形・外部ツール)を一括更新する Public コマンド

Constant Summary

Constants included from OptionTokenNormalizer

OptionTokenNormalizer::BARE_VALUE_DEFAULTS

Instance Method Summary collapse

Methods included from OptionTokenNormalizer

#initialize, prepended

Instance Method Details

#callObject



25
26
27
28
29
30
31
32
33
34
# File 'lib/vivlio_starter/cli/samovar/upgrade_command.rb', line 25

def call
  return print_usage if options[:help]

  UpgradeCommands.run_from_command(self)
rescue SystemExit => e
  raise e
rescue StandardError => e
  Common.log_error("upgrade コマンド実行中にエラー: #{e.message}")
  1
end