Project

kindlegen

0.03
No release in over 3 years
Low commit activity in last 3 years
Installing kindlegen command, downloading tar.gz file from amazon.com, and extracting it and copy kindlegen command to bin.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Kindlegen

Easy to install kindlegen command via gem.

When you run this gem, it will download a tarball of kindlegen from amazon.com and extract it. Then you can find the command file in "$GEMPATH/bin".

Using from Ruby

Require kindlegen, then run kindlegen commands.

Kindlegen.command

Returns the path of the kindlegen command.

Kindlegen.run(*args)

Runs the kindlegen command with specified parameters.

Example

require 'kindlegen'
stdout, stderr, status = Kindlegen.run("sample.opf", "-o", "sample.mobi")
if status == 0
  puts stdout
else
  $stderr.puts stderr
end