Module: Softcover::Commands::EpubValidator

Extended by:
EpubValidator, Utils
Included in:
EpubValidator
Defined in:
lib/softcover/commands/epub_validator.rb

Constant Summary

Constants included from Utils

Utils::UNITS

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

Instance Method Details

#validate!Object

Validates a book according to the EPUB standard.



8
9
10
11
12
# File 'lib/softcover/commands/epub_validator.rb', line 8

def validate!
  epub = Dir.glob('ebooks/*.epub').first
  puts "Validating EPUB..."
  system("#{java} -jar #{epubcheck} #{epub}")
end