Class: Vivlio::Starter::CLI::PdfCommands::PdfCommandRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/vivlio/starter/cli/pdf.rb

Overview

npx vivliostyle build をラップして PDF を生成する

Direct Known Subclasses

PrintPdfCommandRunner

Instance Method Summary collapse

Constructor Details

#initialize(options, target_output) ⇒ PdfCommandRunner

Returns a new instance of PdfCommandRunner.



68
69
70
71
72
73
# File 'lib/vivlio/starter/cli/pdf.rb', line 68

def initialize(options, target_output)
  @options = options || {}
  @target_output = target_output
  @config = Common::CONFIG['pdf'] || {}
  @build_success = false
end

Instance Method Details

#callObject



75
76
77
78
79
80
# File 'lib/vivlio/starter/cli/pdf.rb', line 75

def call
  apply_verbose
  Common.log_action('PDFを生成しています…')
  execute_build
  handle_build_result
end