Fix warnings from ScriptRunner
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
CommitLineData
0ba6e8aa 1package Catalyst::Script::Test;
accb0640 2use Moose;
d9a32f71 3use namespace::autoclean;
451b2a44 4
d3082fac 5with 'Catalyst::ScriptRole';
451b2a44 6
0e4038c6 7__PACKAGE__->meta->get_attribute('help')->cmd_aliases('h');
b1320d7d 8
451b2a44 9sub run {
10 my $self = shift;
11
12 Class::MOP::load_class("Catalyst::Test");
e25affcb 13 Catalyst::Test->import($self->application_name);
57dc50b0 14
451b2a44 15 print request($ARGV[1])->content . "\n";
57dc50b0 16
451b2a44 17}
18
73e4f0f1 19
d6e8e664 20__PACKAGE__->meta->make_immutable;
d3082fac 21
22=head1 NAME
23
24Catalyst::Script::Test - Test Catalyst application on the command line
25
26=head1 SYNOPSIS
27
28See L<Catalyst>.
29
30=head1 DESCRIPTION
31
32FIXME
33
34=head1 AUTHORS
35
36Catalyst Contributors, see Catalyst.pm
37
38=head1 COPYRIGHT
39
40This library is free software. You can redistribute it and/or modify it under
41the same terms as Perl itself.
42
43=cut