Class: Epubcheck::Ruby::CLI
- Inherits:
-
Object
- Object
- Epubcheck::Ruby::CLI
- Defined in:
- lib/epubcheck/ruby/cli.rb
Constant Summary collapse
Instance Method Summary collapse
- #execute(args) ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
8 9 |
# File 'lib/epubcheck/ruby/cli.rb', line 8 def initialize end |
Instance Method Details
#execute(args) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/epubcheck/ruby/cli.rb', line 11 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 |