class GitSu::Shell
Public Instance Methods
capture(command) { |output, $?| ... }
click to toggle source
# File lib/gitsu/shell.rb, line 19 def capture(command) output = `#{command}`.strip if block_given? yield(output, $?) end output end
execute(command)
click to toggle source
# File lib/gitsu/shell.rb, line 27 def execute(command) system command end