TIL: Execute a command and capture the output with Ruby

ruby Open3.popen3('git push heroku master') do |stdin, stdout, stderr, wait_thr| puts "stdout is:" + stdout.read puts "stderr is:" + stderr.read end

Latest Noise

All The Noise