module SHExecutor

Constants

VERSION

Public Class Methods

default_options() click to toggle source
# File lib/shexecutor.rb, line 17
def self.default_options
  @@default_options
end
execute_and_timeout_after(application_path, params = nil, timeout = -1) click to toggle source
# File lib/shexecutor.rb, line 28
def self.execute_and_timeout_after(application_path, params = nil, timeout = -1)
  executor = SHExecutor::Executor.new({:timeout => timeout, :wait_for_completion => true, :application_path => application_path, :params => params})
  result = executor.execute
  executor.flush
  return result, executor.stdout, executor.stderr
end
execute_blocking(application_path, params = nil) click to toggle source
# File lib/shexecutor.rb, line 21
def self.execute_blocking(application_path, params = nil)
  executor = SHExecutor::Executor.new({:wait_for_completion => true, :application_path => application_path, :params => params})
  result = executor.execute
  executor.flush
  return result, executor.stdout, executor.stderr
end
execute_non_blocking(application_path, params = nil) click to toggle source
# File lib/shexecutor.rb, line 35
def self.execute_non_blocking(application_path, params = nil)
    executor = SHExecutor::Executor.new({:wait_for_completion => false, :application_path => application_path, :params => params})
   executor.execute
end