[Catalyst-dev] restart_directory override in HTTP engine
Aran Deltac
aran at arandeltac.com
Tue May 16 20:46:39 CEST 2006
On 5/16/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Aran Deltac wrote:
> > I'd like to be able to specify the directory that HTTP::Restarter
> > searches for changed files in. See the below patch. I don't have
> > commit bits for catalyst, so if its approved, could someone commit
> > this for me?
>
> Looks good to me, bar the distinct lack of docs and tests :)
/me slaps forehead.
Attached is a new patch with docs. As far as I can tell there are
_no_ tests for the Helper modules. What gives? I'd be happy adding a
test if they already existed, but I have enough on my plate than to
fix this doozy.
Aran
> > Aran
> >
> >
> > Index: lib/Catalyst/Engine/HTTP/Restarter.pm
> > ===================================================================
> > --- lib/Catalyst/Engine/HTTP/Restarter.pm (revision 4147)
> > +++ lib/Catalyst/Engine/HTTP/Restarter.pm (working copy)
> > @@ -19,7 +19,10 @@
> > close STDOUT;
> >
> > my $watcher = Catalyst::Engine::HTTP::Restarter::Watcher->new(
> > - directory => File::Spec->catdir( $FindBin::Bin, '..' ),
> > + directory => (
> > + $options->{restart_directory} ||
> > + File::Spec->catdir( $FindBin::Bin, '..' )
> > + ),
> > regex => $options->{restart_regex},
> > delay => $options->{restart_delay},
> > );
> >
> > _______________________________________________
> > Catalyst-dev mailing list
> > Catalyst-dev at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst-dev
>
>
> --
> Matt S Trout Offering custom development, consultancy and support
> Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
> Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
>
> + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restart_directory.patch
Type: application/octet-stream
Size: 3260 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20060516/f73035c5/attachment.obj
More information about the Catalyst-dev
mailing list