},
resources => {
repository => {
- # r/w: catagits@git.shadowcat.co.uk:Catalyst-Runtime.git
- url => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
- web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Runtime.git;a=summary',
+ url => 'https://github.com/perl-catalyst/catalyst-runtime.git',
+ web => 'https://github.com/perl-catalyst/catalyst-runtime',
type => 'git',
},
x_IRC => 'irc://irc.perl.org/#catalyst',
$tc->can('is_strictly_a_type_of') &&
$tc->is_strictly_a_type_of('Tuple'))
{
- my @parameters = @{ $tc->parameters||[]};
- if( defined($parameters[-1]) and exists($parameters[-1]->{slurpy})) {
- return undef;
- } else {
- return my $total_params = scalar(@parameters);
+ my @parameters = @{ $tc->parameters||[] };
+ my $final = $parameters[-1];
+ if ( defined $final ) {
+ if ( blessed $final ) {
+ # modern form of slurpy
+ if ($final->can('is_strictly_a_type_of') && $final->is_strictly_a_type_of('Slurpy')) {
+ return undef;
+ }
+ }
+ else {
+ # old form of slurpy
+ if (ref $final eq 'HASH' && $final->{slurpy}) {
+ return undef;
+ }
+ }
}
+ return scalar @parameters;
} elsif($tc->is_a_type_of('Ref')) {
return undef;
} else {
documentation => 'Specify a different listening port (to the default port 3000)',
);
+has '+help_flag' => (
+ cmd_aliases => [ qw(usage ?) ],
+);
+
use Moose::Util::TypeConstraints;
class_type 'MooseX::Daemonize::Pid::File';
subtype 'Catalyst::Script::Server::Types::Pidfile',