class FileWatch::TailMode::Handlers::Grow
Public Instance Methods
handle_specifically(watched_file)
click to toggle source
# File lib/filewatch/tail_mode/handlers/grow.rb, line 5 def handle_specifically(watched_file) watched_file.file_seek(watched_file.bytes_read) loop do break if quit? loop_control = watched_file.loop_control_adjusted_for_stat_size controlled_read(watched_file, loop_control) break unless loop_control.keep_looping? end end