Sha256: 147d678b873b52a8fd6ecac8b8c5dc71a18bfe90007734183e08b6a8aeeb2032

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

require 'eventmachine-tail'

module RemoteSyslog
  class GlobWatch < EventMachine::FileGlobWatch
    def initialize(path, interval, callback)
      super(path, interval)
      @callback = callback
    end

    def file_found(path)
      @callback.call(path)
    end

    def file_deleted(path)
      # Nothing to do
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
remote_syslog-1.6.7 lib/remote_syslog/glob_watch.rb
remote_syslog-1.6.6.1 lib/remote_syslog/glob_watch.rb
remote_syslog-1.6.6 lib/remote_syslog/glob_watch.rb
remote_syslog-1.6.6.rc2 lib/remote_syslog/glob_watch.rb
remote_syslog-1.6.6.rc1 lib/remote_syslog/glob_watch.rb