Sha256: 1a384beb71854d55a2e2f4d72c069a7957f182cefc43919eccf574a400126519

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

# encoding: utf-8

module FileWatch module TailMode module Handlers
  class Grow < Base
    def handle_specifically(watched_file)
      watched_file.file_seek(watched_file.bytes_read)
      loop do
        loop_control = watched_file.loop_control_adjusted_for_stat_size
        controlled_read(watched_file, loop_control)
        break unless loop_control.more
      end
    end
  end
end end end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-input-file-4.1.4 lib/filewatch/tail_mode/handlers/grow.rb