X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=835c061dacea594c2622e76fd5fc55c2527364c0;hb=28634a285225bbd3692defa6b1e787fcb4f32f77;hp=038a077fa6ca2c03f5ee0a02ade20928c41bf63f;hpb=5b1ec88b8adbb419db77e0a0d3cd101e20b65eb5;p=catagits%2FCatalyst-Devel.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 038a077..835c061 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -667,7 +667,7 @@ use inc::Module::Install; name '[% dir %]'; all_from '[% path %]'; -requires 'Catalyst' => '[% catalyst_version %]'; +requires 'Catalyst::Runtime' => '[% catalyst_version %]'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::Static::Simple'; requires 'Catalyst::Action::RenderView'; @@ -859,7 +859,7 @@ my $port = $ENV{[% appenv %]_PORT} || $ENV{CATALYST_PORT} || 3000; my $keepalive = 0; my $restart = $ENV{[% appenv %]_RELOAD} || $ENV{CATALYST_RELOAD} || 0; my $restart_delay = 1; -my $restart_regex = '\.yml$|\.yaml$|\.pm$'; +my $restart_regex = '(?:/|^)(?!\.#).+(?:\.yml$|\.yaml$|\.pm)$'; my $restart_directory = undef; my @argv = @ARGV; @@ -879,7 +879,7 @@ GetOptions( pod2usage(1) if $help; -if ( $restart ) { +if ( $restart && $ENV{CATALYST_ENGINE} eq 'HTTP' ) { $ENV{CATALYST_ENGINE} = 'HTTP::Restarter'; } if ( $debug ) { @@ -1044,6 +1044,7 @@ pod2usage(1) unless $helper->mk_component( '[% name %]', @ARGV ); Examples: [% appprefix %]_create.pl controller My::Controller + [% appprefix %]_create.pl controller My::Controller BindLex [% appprefix %]_create.pl -mechanize controller My::Controller [% appprefix %]_create.pl view My::View [% appprefix %]_create.pl view MyView TT