lib/fairdom/openbis_api/java_execution.rb in openseek-api-0.11.0 vs lib/fairdom/openbis_api/java_execution.rb in openseek-api-0.11.1

- old
+ new

@@ -1,6 +1,6 @@ -require 'cocaine' +require 'terrapin' require 'json' module Fairdom module OpenbisApi class JavaExecution @@ -10,12 +10,12 @@ @query_object = query_object end def execute(options) command = execute_command(options) - output = Cocaine::CommandLine.new(command).run + output = Terrapin::CommandLine.new(command).run JSON.parse(output.strip) - rescue Cocaine::ExitStatusError => exception + rescue Terrapin::ExitStatusError => exception raise OpenbisQueryException, exception.message end private