X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FHTTP%2FRestarter.pm;h=0cae24353ed0ae15167680f3b2327272d540ae86;hb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;hp=8e5c8c093c81db700417b53c5e2ec6d5699beb4f;hpb=7fa2c9c1b85c98786655ad5169708d8dc84e8353;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/HTTP/Restarter.pm b/lib/Catalyst/Engine/HTTP/Restarter.pm index 8e5c8c0..0cae243 100644 --- a/lib/Catalyst/Engine/HTTP/Restarter.pm +++ b/lib/Catalyst/Engine/HTTP/Restarter.pm @@ -2,6 +2,7 @@ package Catalyst::Engine::HTTP::Restarter; use Moose; extends 'Catalyst::Engine::HTTP'; + use Catalyst::Engine::HTTP::Restarter::Watcher; around run => sub { @@ -18,8 +19,8 @@ around run => sub { close STDOUT; my $watcher = Catalyst::Engine::HTTP::Restarter::Watcher->new( - directory => ( - $options->{restart_directory} || + directory => ( + $options->{restart_directory} || File::Spec->catdir( $FindBin::Bin, '..' ) ), follow_symlinks => $options->{follow_symlinks}, @@ -67,6 +68,7 @@ around run => sub { } return $self->$orig( $class, $port, $host, $options ); + no Moose; }; 1; @@ -96,11 +98,7 @@ L. =head1 AUTHORS -Sebastian Riedel, - -Dan Kubb, - -Andy Grundman, +Catalyst Contributors, see Catalyst.pm =head1 THANKS