Sha256: 02f141cadfc71fa2c7a154fb75bbba5554df81ca2f2d0a1ea64448f1758c3afe

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Kitabu
  class Exporter
    class Mobi < Base
      def export
        super
        spawn_command ["ebook-convert", epub_file.to_s, mobi_file.to_s]
        true
      end

      def mobi_file
        root_dir.join("output/#{name}.mobi")
      end

      def epub_file
        root_dir.join("output/#{name}.epub")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kitabu-3.1.0 lib/kitabu/exporter/mobi.rb
kitabu-3.0.3 lib/kitabu/exporter/mobi.rb