Class: Softcover::Builder

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/softcover/builder.rb

Constant Summary

Constants included from Utils

Utils::UNITS

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeBuilder

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_filesObject

Returns the value of attribute built_files.



5
6
7
# File 'lib/softcover/builder.rb', line 5

def built_files
  @built_files
end

#manifestObject

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!(options={})
  setup(options)
  build(options)
  verify
  self
end

#clean!Object



23
# File 'lib/softcover/builder.rb', line 23

def clean!; end