Sha256: 176a7e1dfa94276b6ebf0bb32078dd3ae6fd6ae95acc5f4ff2be981b3b29328c
Contents?: true
Size: 545 Bytes
Versions: 4
Compression:
Stored size: 545 Bytes
Contents
require "kindlegen/version" require 'pathname' require 'systemu' module Kindlegen Root = Pathname.new(File.expand_path('../..', __FILE__)) Bin = Root.join('bin') Executables = Bin.children.inject({}) { |h, p| h[p.basename.to_s.to_sym] = p.to_s h } # # Getting command path of kindlegen. # def self.command Executables[:kindlegen] end # # Run kindlegen command with spacified parameters # # _params_:: array of command parameters. # def self.run( *params ) systemu command + ' ' + params.join( ' ' ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kindlegen-2.9.1 | lib/kindlegen.rb |
kindlegen-2.9.0 | lib/kindlegen.rb |
kindlegen-2.8.0 | lib/kindlegen.rb |
kindlegen-2.7.0 | lib/kindlegen.rb |