ruby-building-blocks/ruby-inotify — Issue #6: event name not displaying
Author: advorak
Created: 2011-11-11 14:08:18+00:00
State: open

Howdy,

I just started playing with ruby-inotify and I am confused about one issue I've been having, which is either a bug in ruby-inotify, or a problem with my using Find.find...

I've created a paste to: http://pastie.org/2847280
If you'll note line #18 .... when I run this and my files are updated, I receive the following output:

vncuser1@advorakInspiron:~$ ruby ./poll_logs.rb

... note how the event name is not being displayed ..

After trying to find the problematic code, I discovered line #18 was at issue .. note how I caused the file name to be displayed, however I'm not filtering out the .log files exclusively as I would like: http://pastie.org/2847291

the result is:

vncuser1@advorakInspiron:~$ ruby ./poll_logs.rb

Thinking I maybe didn't completely understand the Find.find command, I even reworked the Find.find code at http://pastie.org/2847357 , which yielded the same result as my first example..