Module: Sensu::Spawn

Defined in:
lib/sensu-run-check/runner.rb

Overview

Class Method Summary collapse

Class Method Details

.process(command, options = {}, &callback) ⇒ Array

Parameters:

  • command (String)

    to run.

  • options (Hash) (defaults to: {})

    to create a child process with.

  • IGNORED (Proc)

Returns:

  • (Array)

    stdout, exit code



19
20
21
# File 'lib/sensu-run-check/runner.rb', line 19

def process(command, options={}, &callback)
  child_process(command, options)
end