Class: Rpub::Commands::Compile

Inherits:
Base
  • Object
show all
Includes:
Rpub::CompilationHelpers
Defined in:
lib/rpub/commands/compile.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods included from Rpub::CompilationHelpers

#config, #create_book, #layout, #markdown_files, #styles

Methods inherited from Base

#help, #initialize

Methods included from SubclassTracker

#each, #identifier, #inherited, #matching

Constructor Details

This class inherits a constructor from Rpub::Commands::Base

Instance Method Details

#invokeObject



8
9
10
11
12
13
14
# File 'lib/rpub/commands/compile.rb', line 8

def invoke
  super
  book = create_book
  Compressor.open(book.filename) do |zip|
    Epub.new(book, File.read(styles)).manifest_in(zip)
  end
end