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
-
#shell_out(command) ⇒ ShellOut::Response
Executes the given shell command on the local system.
Instance Method Details
#shell_out(command) ⇒ ShellOut::Response
Executes the given shell command on the local system
48 49 50 51 |
# File 'lib/ridley/mixin/shell_out.rb', line 48 def shell_out(command) process_status, out, err = jruby? ? jruby_out(command) : mri_out(command) Response.new(process_status, out, err) end |