Class: Verku::Exporter::Mobi

Inherits:
Base
  • Object
show all
Defined in:
lib/verku/exporter/mobi.rb

Constant Summary

Constants inherited from Base

Base::EXTENSIONS

Instance Attribute Summary

Attributes inherited from Base

#root_dir, #source

Instance Method Summary collapse

Methods inherited from Base

#base_name, #build_data, #config, #epub_file, export!, #git_branch, #handle_error, #html_file, #initialize, #name, #output_name, #read_content, #render_template, #source_list, #spawn_command, #tex_file, #ui

Constructor Details

This class inherits a constructor from Verku::Exporter::Base

Instance Method Details

#export!Object



4
5
6
7
8
9
10
11
# File 'lib/verku/exporter/mobi.rb', line 4

def export!
  puts "-- Exporting MOBI"
  spawn_command ["kindlegen", epub_file.to_s,]
  true
rescue Exception
  p $!, $@
  false
end