I'm still pondering how I want to handle this... For now, it can be
easily worked around by implementing a custom default_io_proc method
(as your solution does, Stephen), so I don't think it is urgent to
get it into cap itself. However, I do hear that it is a nice feature
to have, and thi
Thanks Stephen.
I modified what you wrote to address Jamis's concern. It will hold the
buffer for up to 20 seconds before forcing an output.
# Buffer capistrano output per line
Capistrano::Actor.default_io_proc = Proc.new do |ch, stream, out|
ch[stream] ||= ''
ch[stream] << out
On Mon, 01 Jan 2007 18:49:37 -0800
"S. Robert James" <[EMAIL PROTECTED]> wrote:
Any way of buffering the output (until a newline, with possibly a
timeout)?
Here is a patch:
http://groups-beta.google.com/group/capistrano/browse_thread/thread/6fe727467b97218b/074ff753b2f47a98
I don't think th
On Wed, 1 Nov 2006 10:50:12 -0700
Jamis Buck <[EMAIL PROTECTED]> wrote:
> I've considered this, but I don't want this behavior in general. For
> instance, consider the long-running process that emits some progress
> indicator character, like a '.', each time some increment of the
> operation finis
Stephen,
I've considered this, but I don't want this behavior in general. For
instance, consider the long-running process that emits some progress
indicator character, like a '.', each time some increment of the
operation finishes. A newline may not be emitted for many minutes,
but you'd