Sha256: 9d8da641b6f98dd941790d310107b94522b958c46e14579699a4935d0aefba47
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
require "kindlegen/version" require 'pathname' require 'systemu' module Kindlegen # # Getting command path of kindlegen. # If it required under gem, returning path in the extension. # Not if, it return simply 'kindlegen' so you have to copy the command into $PATH. # def self.command if __FILE__.include? 'gems' (Pathname( __FILE__ ).parent + '../ext/kindlegen/kindlegen').to_s else 'kindlegen' end 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.5.0 | lib/kindlegen.rb |
kindlegen-2.4.1 | lib/kindlegen.rb |
kindlegen-2.4.0 | lib/kindlegen.rb |
kindlegen-2.3.1 | lib/kindlegen.rb |