Class: DocverterServer::Runner::Calibre

Inherits:
Base
  • Object
show all
Defined in:
lib/docverter-server/runner/calibre.rb

Instance Attribute Summary

Attributes inherited from Base

#directory, #input_filename, #options

Instance Method Summary collapse

Methods inherited from Base

#generate_output_filename, #initialize, #run_command, #with_manifest

Constructor Details

This class inherits a constructor from DocverterServer::Runner::Base

Instance Method Details

#runObject



2
3
4
5
6
7
8
9
# File 'lib/docverter-server/runner/calibre.rb', line 2

def run
  with_manifest do
    output = generate_output_filename('mobi')
    options = ["ebook-convert", input_filename, output]
    run_command(options)
    output
  end
end