Class: Vivlio::Starter::CLI::EpubCommands::EpubCommandRunner
- Inherits:
-
Object
- Object
- Vivlio::Starter::CLI::EpubCommands::EpubCommandRunner
- Defined in:
- lib/vivlio/starter/cli/epub.rb
Overview
Vivliostyle CLI を –format epub で実行して EPUB を生成する
Instance Method Summary collapse
-
#call ⇒ Boolean
EPUB ビルドを実行し、成功時にリネームする.
-
#initialize(options, target_output = nil) ⇒ EpubCommandRunner
constructor
A new instance of EpubCommandRunner.
Constructor Details
#initialize(options, target_output = nil) ⇒ EpubCommandRunner
Returns a new instance of EpubCommandRunner.
38 39 40 41 42 |
# File 'lib/vivlio/starter/cli/epub.rb', line 38 def initialize(, target_output = nil) @options = || {} @target_output = target_output @build_success = false end |
Instance Method Details
#call ⇒ Boolean
EPUB ビルドを実行し、成功時にリネームする
46 47 48 49 50 51 52 |
# File 'lib/vivlio/starter/cli/epub.rb', line 46 def call apply_verbose Common.log_action('EPUB を生成しています…') execute_build handle_build_result @build_success end |