Class: Lifer::Builder::TXT
- Inherits:
-
Lifer::Builder
- Object
- Lifer::Builder
- Lifer::Builder::TXT
- Defined in:
- lib/lifer/builder/txt.rb
Overview
Builds a text file from a text file.
Note that the collection’s URI strategy is still in play here, so the output path may be different than the input path.
Class Method Summary collapse
-
.execute(root:) ⇒ void
Builds text files within the Lifer project’s build directory.
Instance Method Summary collapse
-
#execute ⇒ void
Builds each entry in each collection, including any requirements (like subdirectories) those entries have.
Methods inherited from Lifer::Builder
Class Method Details
.execute(root:) ⇒ void
This method returns an undefined value.
Builds text files within the Lifer project’s build directory.
16 17 18 19 20 |
# File 'lib/lifer/builder/txt.rb', line 16 def execute(root:) Dir.chdir Lifer.output_directory do new(root:).execute end end |
Instance Method Details
#execute ⇒ void
This method returns an undefined value.
Builds each entry in each collection, including any requirements (like subdirectories) those entries have.
27 28 29 30 31 32 |
# File 'lib/lifer/builder/txt.rb', line 27 def execute Lifer.collections(without_selections: true).each do |collection| generate_output_directories_for collection generate_output_entries_for collection end end |