class Object

Public Instance Methods

tail_lines(io) { |line| ... } click to toggle source
# 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