Module: Buff::ShellOut

Extended by:
ShellOut
Includes:
RubyEngine
Included in:
ShellOut
Defined in:
lib/buff/shell_out.rb,
lib/buff/shell_out/version.rb,
lib/buff/shell_out/response.rb

Defined Under Namespace

Classes: Response

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#shell_out(command) ⇒ ShellOut::Response

Executes the given shell command on the local system

Parameters:

  • command (String)

    The command to execute

Returns:



19
20
21
22
# File 'lib/buff/shell_out.rb', line 19

def shell_out(command)
  process_status, out, err = jruby? ? jruby_out(command) : mri_out(command)
  Response.new(process_status, out, err)
end