X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScript%2FCGI.pm;fp=lib%2FCatalyst%2FScript%2FCGI.pm;h=7e090d476f6803db7debeff0e17a62c516105dbb;hb=d3082facb5273f9970121638c0385ecfc0f7b090;hp=4608a7cd30c73f46e7102b753c6bc3d46e46b3b9;hpb=f3ece744e2b4089999e37edb3a30ef82699d9325;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Script/CGI.pm b/lib/Catalyst/Script/CGI.pm index 4608a7c..7e090d4 100644 --- a/lib/Catalyst/Script/CGI.pm +++ b/lib/Catalyst/Script/CGI.pm @@ -1,39 +1,31 @@ package Catalyst::Script::CGI; use Moose; - BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' } -use FindBin qw/$Bin/; -use lib "$Bin/../lib"; -use Pod::Usage; -use Moose; use namespace::autoclean; -with 'MooseX::Getopt'; +with 'Catalyst::ScriptRole'; + +__PACKAGE__->meta->make_immutable; + +=head1 NAME + +Catalyst::Script::CGI - The CGI Catalyst Script + +=head1 SYNOPSIS + +See L. + +=head1 DESCRIPTION -has _app => ( - reader => 'app', - init_arg => 'app', - traits => [qw(NoGetopt)], - isa => 'Str', - is => 'ro', -); +FIXME -has help => ( - traits => [qw(Getopt)], - cmd_aliases => 'h', - isa => 'Bool', - is => 'ro', - documentation => qq{ display this help and exits }, -); +=head1 AUTHORS +Catalyst Contributors, see Catalyst.pm -sub run { - my $self = shift; +=head1 COPYRIGHT - pod2usage() if $self->help; - my $app = $self->app; - Class::MOP::load_class($app); - $app->run; +This library is free software. You can redistribute it and/or modify it under +the same terms as Perl itself. -} -1; +=cut