module Faf::Shell
Public Class Methods
system!(*cmd)
click to toggle source
# File lib/faf/shell.rb, line 4 def system!(*cmd) stdout, stderr, status = Open3.capture3(*cmd) raise ["exit code #{status}", stderr].compact.join("\n") unless status.success? stdout.slice!(0..-(1 + $INPUT_RECORD_SEPARATOR.size)) end