lib/kitabu/parser/mobi.rb in kitabu-1.0.0.rc1 vs lib/kitabu/parser/mobi.rb in kitabu-1.0.0.rc2
- old
+ new
@@ -1,12 +1,9 @@
module Kitabu
module Parser
class Mobi < Base
def parse
- command = ["kindlegen", epub_file.to_s,]
- puts command
-
- Process.wait Process.spawn(*command)
+ spawn_command ["kindlegen", epub_file.to_s,]
true
end
def epub_file
root_dir.join("output/#{name}.epub")