Sha256: b5740fa7e7972a875dd948ae79f012717f6f3dbee78125aa1c763aa4a183612c

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module Kitabu
  class Exporter
    class Mobi < Base
      def export
        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

3 entries across 3 versions & 1 rubygems

Version Path
kitabu-3.0.2 lib/kitabu/exporter/mobi.rb
kitabu-3.0.1 lib/kitabu/exporter/mobi.rb
kitabu-3.0.0 lib/kitabu/exporter/mobi.rb