Module: Ridley::Mixin::ShellOut

Extended by:
ShellOut
Includes:
Chozo::RubyEngine
Included in:
Chef::Cookbook::SyntaxCheck, ShellOut
Defined in:
lib/ridley/mixin/shell_out.rb

Overview

A Ruby platform agnostic way of executing shell commands on the local system

Defined Under Namespace

Classes: Response

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:



41
42
43
44
# File 'lib/ridley/mixin/shell_out.rb', line 41

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