Top Level Namespace

Defined Under Namespace

Modules: Capistrano, MonitorServers

Instance Method Summary collapse

Instance Method Details

#tail_lines(io) ⇒ Object


3
4
5
6
7
8
9
10
# File 'lib/capistrano/ext/assets/request-counter.rb', line 3

def tail_lines(io)
  io.each_line { |line| yield line }
  if io.eof? then
    sleep 0.25
    io.pos = io.pos # reset eof?
    retry
  end
end