Class: Vivlio::Starter::CLI::BuildCommands::UnifiedBuildPipeline
- Inherits:
-
Object
- Object
- Vivlio::Starter::CLI::BuildCommands::UnifiedBuildPipeline
- Defined in:
- lib/vivlio/starter/cli/build/pipeline.rb
Overview
UnifiedBuildPipeline: フル/単章ビルド統合パイプライン
-
BuildCommands#build から利用し、各 Step の処理と計時を一元管理する。
-
mode: :full(全章ビルド)または :single(単章/複数章ビルド)
-
single mode では Step 6〜12, 14 をスキップし、Step 5 で entries.js + pdf を生成
Defined Under Namespace
Classes: Step
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#generated_pdf_name ⇒ Object
readonly
Returns the value of attribute generated_pdf_name.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#timings ⇒ Object
readonly
Returns the value of attribute timings.
Instance Method Summary collapse
-
#initialize(command, entries: [], mode: :full) ⇒ UnifiedBuildPipeline
constructor
A new instance of UnifiedBuildPipeline.
-
#run ⇒ Object
登録済みステップを順に実行し、経過時間を収集する.
Constructor Details
#initialize(command, entries: [], mode: :full) ⇒ UnifiedBuildPipeline
Returns a new instance of UnifiedBuildPipeline.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 31 def initialize(command, entries: [], mode: :full) @command = command @entries = Array(entries) @mode = mode @options = command. @timings = [] @steps = [] @generated_pdf_name = nil register_steps end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
26 27 28 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 26 def entries @entries end |
#generated_pdf_name ⇒ Object (readonly)
Returns the value of attribute generated_pdf_name.
26 27 28 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 26 def generated_pdf_name @generated_pdf_name end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
26 27 28 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 26 def mode @mode end |
#timings ⇒ Object (readonly)
Returns the value of attribute timings.
26 27 28 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 26 def timings @timings end |
Instance Method Details
#run ⇒ Object
登録済みステップを順に実行し、経過時間を収集する
43 44 45 46 47 48 49 |
# File 'lib/vivlio/starter/cli/build/pipeline.rb', line 43 def run Common.reset_vivliostyle_build_timings @steps.each do |step| execute(step) end timings end |