Sha256: ff7f1770303b30813757f112e941bdb1cbf4cb212ffd400c3a31679ebf778fa6

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

require 'epubcheck/ruby'

module Epubcheck
  module Ruby
    class CLI
      JAR_FILE = File.join(Epubcheck::Ruby::JAR_DIR, 'epubcheck-5.0.1/epubcheck.jar')

      def initialize
      end

      def execute(args)
        ret = system("java", "-jar", JAR_FILE, *args)
        if ret.nil?
          $stderr.write "Failed to execute epubcheck.\n"
          exit 1
        end
        ret
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epubcheck-ruby-5.0.1.0 lib/epubcheck/ruby/cli.rb