module Thor::Actions

def with_output_buffer(buf = '') #:nodoc:

:nodoc:
def with_output_buffer(buf = '') #:nodoc:
  self.output_buffer, old_buffer = buf, output_buffer
  yield
  output_buffer
ensure
  self.output_buffer = old_buffer
end