Module: VivlioStarter::CLI::EpubCommands

Defined in:
lib/vivlio_starter/cli/epub.rb

Overview

EPUB 生成コマンドモジュール

Defined Under Namespace

Classes: EpubCommandRunner

Class Method Summary collapse

Class Method Details

.execute_epub(options, target_output = nil, config_path:, output_path:) ⇒ Boolean

EPUB 生成を実行する

Parameters:

  • options (Hash)

    オプション

    • :verbose [Boolean] 詳細ログ出力
  • target_output (String, nil) (defaults to: nil)

    出力ファイル名(リネーム先)

  • config_path (String)

    --config で渡す生成 config のパス(消費者 dir 内・P4 §5.2)

  • output_path (String)

    config の output と一致する生成先(消費者 dir 内)

Returns:

  • (Boolean)

    ビルド成功なら true



33
34
35
# File 'lib/vivlio_starter/cli/epub.rb', line 33

def execute_epub(options, target_output = nil, config_path:, output_path:)
  EpubCommandRunner.new(options, target_output, config_path:, output_path:).call
end