module WPAR::External
Public Class Methods
cmd(cmd: nil, live_stream: nil)
click to toggle source
# File lib/wpars/external.rb, line 8 def cmd(cmd: nil, live_stream: nil) command = Mixlib::ShellOut.new(cmd) command.live_stream=live_stream if live_stream command.run_command command.error! return command.stdout end
Private Instance Methods
cmd(cmd: nil, live_stream: nil)
click to toggle source
# File lib/wpars/external.rb, line 8 def cmd(cmd: nil, live_stream: nil) command = Mixlib::ShellOut.new(cmd) command.live_stream=live_stream if live_stream command.run_command command.error! return command.stdout end