Project

filewatch

0.14
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Watch files and directories in ruby. Also supports tailing and glob file patterns.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

filewatch

Getting Started

  • gem install filewatch
  • globtail -x '.gz' '/var/log/'

For developers, see FileWatch::Watch and FileWatch::Tail.

Tested on Linux/x86_64 and Solaris.

All operating systems should be supported. If you run the tests on another platform, please open a Github issue with the output (even if it passes, so we can update this document).

Overview

This project provide file and glob watching.

Goals:

  • to provide a rubyish api to get notifications of file or glob changes
  • to work in major rubies (mri, yarv, jruby, rubinius?)

Example code (standalone):

require "rubygems"
require "filewatch/tail"

t = FileWatch::Tail.new
t.tail("/tmp/test*.log")
t.subscribe do |path, line|
  puts "#{path}: #{line}"
end