grosser.it
Ruby Capture Stdout Without $stdout
Rake’s sh for example cannot be captured with the normal $stdount = StringIO.new trick, but using some old ActiveSupport code that uses reopen with a Temfile seems to do the trick. # StringIO…