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 =
"1.1.0"
Instance Method Summary collapse
-
#shell_out(command, env = {}) ⇒ ShellOut::Response
Executes the given shell command on the local system.
Instance Method Details
#shell_out(command, env = {}) ⇒ ShellOut::Response
Executes the given shell command on the local system
21 22 23 24 25 |
# File 'lib/buff/shell_out.rb', line 21 def shell_out(command, env = {}) env = process_env_vars(env) process_status, out, err = jruby? ? jruby_out(command, env) : mri_out(command, env) Response.new(process_status, out, err) end |