Class: Vivlio::Starter::CLI::SamovarCommands::NewCommand
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Vivlio::Starter::CLI::SamovarCommands::NewCommand
- Defined in:
- lib/vivlio/starter/cli/samovar/new_command.rb
Overview
新規書籍プロジェクトを作成する Public コマンド
Instance Method Summary collapse
- #call ⇒ Object
-
#system(cmd) ⇒ Object
doctor 実行を委譲するメソッド。テスト時はこのメソッドをスタブ化する。.
Instance Method Details
#call ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/vivlio/starter/cli/samovar/new_command.rb', line 24 def call return print_usage if [:help] NewCommands.run_from_command(self) rescue SystemExit => e raise e rescue StandardError => e Common.log_error("new コマンド実行中にエラー: #{e.}") log_debug(e.) if debug? 1 end |
#system(cmd) ⇒ Object
doctor 実行を委譲するメソッド。テスト時はこのメソッドをスタブ化する。
37 |
# File 'lib/vivlio/starter/cli/samovar/new_command.rb', line 37 def system(cmd) = Kernel.system(cmd) |