opscode/chef — pull request #866 by danielsdeleo (2013-07-02 01:21:43+00:00)
Title: Buffer ssh output by line to avoid mangling it.

Fixes CHEF-4335 ( http://tickets.opscode.com/browse/CHEF-4335 )

Reads SSH output by slicing up to the first newline and then printing.
Output with no newline is buffered on a per-host basis so that it does
not get interleaved with other hosts' output.