Module: Secure

Defined in:
lib/secure.rb,
lib/secure/errors.rb,
lib/secure/runner.rb,
lib/secure/version.rb,
lib/secure/response.rb,
lib/secure/guard_thread.rb,
lib/secure/child_process.rb,
lib/secure/parent_process.rb

Defined Under Namespace

Classes: ChildKilledError, ChildProcess, GuardThread, ParentProcess, Response, Runner, TimeoutError

Constant Summary collapse

VERSION =
"1.1.3"

Class Method Summary collapse

Class Method Details

.run(opts = {}, *args) ⇒ Object Also known as: ly



11
12
13
14
15
16
17
18
# File 'lib/secure.rb', line 11

def run(opts = {}, *args)
  response = Runner.new(opts, *args).run do |*a|
    yield *a
  end

  raise response.error unless response.success?
  response.value
end