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!, #as_size, #current_book, #digest, #executable, #execute, #in_book_directory?, #logged_in?, #mkdir, #path, #reset_current_book!, #rm, #silence, #source, #tmpify, #write_pygments_file

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



7
8
9
10
11
12
# File 'lib/softcover/builder.rb', line 7

def initialize
  @manifest = Softcover::BookManifest.new(verify_paths: true,
                                          source: source)
  @built_files = []
  write_polytexnic_commands_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



14
15
16
17
18
19
# File 'lib/softcover/builder.rb', line 14

def build!(options={})
  setup
  build(options)
  verify
  self
end

#clean!Object



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

def clean!; end