filewatch

0.9.0last stable release 8 years ago
Complexity Score
Low
Open Issues
23
Dependent Projects
8
Weekly Downloadsglobal
304

License

  • Other

Downloads

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

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
90
Dependenciestotal
1
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute filewatch in your own private RubyGems registry

gem install filewatch
Processing...
Done

31 Releases

RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.