Class Rerun::Watcher
In: lib/watcher.rb
Parent: Object

Methods

add_directory   add_file   join   new   prime   remove_directory   remove_file   start   stop  

Classes and Modules

Class Rerun::Watcher::Directory
Class Rerun::Watcher::FoundFile
Class Rerun::Watcher::InvalidDirectoryError
Class Rerun::Watcher::InvalidFileError

Constants

CREATED = 0
MODIFIED = 1
DELETED = 2

Attributes

directories  [R] 
priority  [RW] 
sleep_time  [RW] 

Public Class methods

Public Instance methods

add a directory to be watched @param dir the directory to watch @param expression the glob pattern to search under the watched directory

add a specific file to the watch list @param file the file to watch

wait for the filewatcher to finish

kill the filewatcher thread

[Validate]