App-Inotify-Hookable
view release on metacpan or search on metacpan
lib/App/Inotify/Hookable.pm view on Meta::CPAN
#!/usr/bin/env perl
package App::Inotify::Hookable;
BEGIN {
$App::Inotify::Hookable::AUTHORITY = 'cpan:AVAR';
}
{
$App::Inotify::Hookable::VERSION = '0.09';
}
use Moose;
use MooseX::Types::Moose ':all';
use Linux::Inotify2;
use POSIX ':errno_h';
use Time::HiRes qw(gettimeofday tv_interval ualarm);
use Try::Tiny;
use Data::BitMask;
use Data::Dumper;
use Class::Inspector;
use List::MoreUtils qw(uniq);
with 'MooseX::Getopt::Dashes';
has debug => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => Bool,
default => 0,
cmd_aliases => 'd',
documentation => "Should we print debug info about what we're doing?",
);
has quiet => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => Bool,
default => 0,
cmd_aliases => 'q',
documentation => q{Don't log noisy information},
);
has watch_directories => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => ArrayRef[Str],
default => sub { [] },
cmd_aliases => 'w',
auto_deref => 1,
documentation => "What directories should we watch?",
);
has watch_files => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => ArrayRef[Str],
default => sub { [] },
cmd_aliases => 'f',
auto_deref => 1,
documentation => "What files should we watch?",
);
has recursive => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => Bool,
default => 1,
cmd_aliases => 'r',
documentation => "Should we recursively watch the directories we're watching? On by default.",
);
has on_modify_command => (
metaclass => 'MooseX::Getopt::Meta::Attribute',
is => 'ro',
isa => ArrayRef[Str],
default => sub { [] },
auto_deref => 1,
( run in 0.697 second using v1.01-cache-2.11-cpan-39bf76dae61 )