Class: Vivlio::Starter::CLI::SamovarCommands::ImportCommand
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Vivlio::Starter::CLI::SamovarCommands::ImportCommand
- Defined in:
- lib/vivlio/starter/cli/samovar/import_command.rb
Overview
import コマンドの Samovar 実装
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/vivlio/starter/cli/samovar/import_command.rb', line 38 def call return print_usage if [:help] starter_dir = arguments.first return print_usage if starter_dir.to_s.strip.empty? ensure_starter_dir!(starter_dir) ImportCommands.execute_import(starter_dir, force: [:force]) rescue ArgumentError => e common.log_error(e.) 1 rescue StandardError => e common.log_error("Error: #{e.}") common.log_error(e.backtrace.join("\n")) if ENV['VS_DEBUG'] 1 end |