Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tdtds/kindlegen
Installing kindlegen command via gem
https://github.com/tdtds/kindlegen
Last synced: 3 months ago
JSON representation
Installing kindlegen command via gem
- Host: GitHub
- URL: https://github.com/tdtds/kindlegen
- Owner: tdtds
- License: gpl-3.0
- Created: 2011-12-01T09:39:57.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T23:02:13.000Z (almost 3 years ago)
- Last Synced: 2024-10-03T07:15:06.373Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 71.3 KB
- Stars: 47
- Watchers: 3
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this 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