-
-
10 Mar 2010 03:03:21 UTC
- Distribution: File-Monitor-Simple
- Module version: 1.00
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (3 / 518 / 0)
- Kwalitee
Bus factor: 0- 93.18% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (12.9KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor::Fast
- File::Find::Rule
- File::Modified
- File::Spec
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
File::Monitor::Simple - Watch for changed application files
SYNOPSIS
my $watcher = File::Monitor::Simple->new( directory => '/path/to/MyApp', regex => '\.yml$|\.yaml$|\.pm$', ); while (sleep 1) { my @changed_files = $watcher->watch; }
DESCRIPTION
This class monitors a directory of files for changes made to any file matching a regular expression. It correctly handles new files added to the application as well as files that are deleted.
METHODS
new ( directory => $path [, regex => $regex, delay => $delay ] )
Creates a new Watcher object.
watch
Returns a list of files that have been added, deleted, or changed since the last time watch was called.
SEE ALSO
Catalyst, HTTP::Server::Restarter, File::Modified, File::Monitor
AUTHORS
Sebastian Riedel, <sri@cpan.org>
Andy Grundman, <andy@hybridized.org>
Mark Stosberg, <mark@summersault.com>
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install File::Monitor::Simple, copy and paste the appropriate command in to your terminal.
cpanm File::Monitor::Simple
perl -MCPAN -e shell install File::Monitor::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.