Class: VivlioStarter::CLI::SamovarCommands::DeleteCommand
- Inherits:
-
VsCommand
- Object
- Samovar::Command
- VsCommand
- VivlioStarter::CLI::SamovarCommands::DeleteCommand
- Defined in:
- lib/vivlio_starter/cli/samovar/delete_command.rb
Overview
delete コマンドの Samovar 実装
Constant Summary
Constants included from OptionTokenNormalizer
OptionTokenNormalizer::BARE_VALUE_DEFAULTS
Instance Method Summary collapse
Methods included from OptionTokenNormalizer
Instance Method Details
#call ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/vivlio_starter/cli/samovar/delete_command.rb', line 42 def call return print_usage if [:help] # 前提条件の検証(ProjectRoot ◎ / CatalogFile ○ / ContentsDir ◎) guard_failure = Guards.precheck( Guards::ProjectRootCheck.new, Guards::RelaxedCheck.new(Guards::CatalogFileCheck.new), Guards::ContentsDirCheck.new ) return guard_failure if guard_failure report_result(DeleteCommands::DeleteCommandExecutor.new(, target_args).call) 0 rescue SystemExit => e raise e rescue StandardError => e common.log_error("delete コマンド実行中にエラー: #{e.}") 1 end |