Class: Softcover::Builder
- Inherits:
-
Object
- Object
- Softcover::Builder
- Includes:
- Utils
- Defined in:
- lib/softcover/builder.rb
Direct Known Subclasses
Softcover::Builders::Epub, Softcover::Builders::Html, Softcover::Builders::Mobi, Softcover::Builders::Pdf, Softcover::Builders::Preview
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#built_files ⇒ Object
Returns the value of attribute built_files.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
Instance Method Summary collapse
- #build!(options = {}) ⇒ Object
- #clean! ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Methods included from Utils
#add_highlight_class!, #article?, #as_size, #book_file_lines, #chapter_label, #commands, #current_book, #dependency_filename, #digest, #executable, #execute, #filename_or_default, #first_path, #get_filename, #html_extension, #in_book_directory?, #language_labels, #linux?, #logged_in?, #master_content, #master_filename, #master_latex_header, #mkdir, #non_comment_lines, #os_x?, #path, #polytexnic_html, #raw_lines, #reset_current_book!, #rm, #rm_r, #silence, #silence_stream, #source, #template_dir, #tmpify, #unpublish_slug, #write_master_latex_file, #write_pygments_file
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
7 8 9 10 11 12 13 14 |
# File 'lib/softcover/builder.rb', line 7 def initialize @manifest = Softcover::BookManifest.new(verify_paths: true, source: source) @built_files = [] ensure_style_file_locations write_polytexnic_commands_file write_language_customization_file end |
Instance Attribute Details
#built_files ⇒ Object
Returns the value of attribute built_files.
5 6 7 |
# File 'lib/softcover/builder.rb', line 5 def built_files @built_files end |
#manifest ⇒ Object
Returns the value of attribute manifest.
5 6 7 |
# File 'lib/softcover/builder.rb', line 5 def manifest @manifest end |
Instance Method Details
#build!(options = {}) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/softcover/builder.rb', line 16 def build!(={}) setup() build() verify self end |
#clean! ⇒ Object
23 |
# File 'lib/softcover/builder.rb', line 23 def clean!; end |