Class: EpubValidator::ProcessEpub

Inherits:
Object
  • Object
show all
Defined in:
lib/epub_validator/process_epub.rb

Instance Method Summary collapse

Instance Method Details

#epubcheck(filename) ⇒ Object



3
4
5
6
# File 'lib/epub_validator/process_epub.rb', line 3

def epubcheck(filename)
  epubcheck_jar = File.expand_path(File.dirname(__FILE__) + '/../epubcheck-3-0/epubcheck-3.0.jar')
  format_epubcheck_output(`java -jar #{epubcheck_jar} "#{filename}" 2>&1`)
end

#format_epubcheck_output(message) ⇒ Object



8
9
10
# File 'lib/epub_validator/process_epub.rb', line 8

def format_epubcheck_output(message)
  FormatMessage.new(message)
end