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".
Require kindlegen
, then run kindlegen commands.
Returns the path of the kindlegen command.
Runs the kindlegen command with specified parameters.
require 'kindlegen'
Kindlegen.run("sample.opf", "-o", "sample.mobi")