Fix so that superclasses and roles get applied from config. This is where the method...
[catagits/CatalystX-DynamicComponent.git] / script / dynamicappdemo_test.pl
CommitLineData
8798165a 1#!/usr/bin/perl -w
2
3use strict;
4use warnings;
5use Getopt::Long;
6use Pod::Usage;
7use FindBin;
7650b900 8use lib "$FindBin::Bin/../lib", "$FindBin/../t/lib";
8798165a 9use Catalyst::Test 'DynamicAppDemo';
10
11my $help = 0;
12
13GetOptions( 'help|?' => \$help );
14
15pod2usage(1) if ( $help || !$ARGV[0] );
16
17print request($ARGV[0])->content . "\n";
18
191;
20
21=head1 NAME
22
23dynamicappdemo_test.pl - Catalyst Test
24
25=head1 SYNOPSIS
26
27dynamicappdemo_test.pl [options] uri
28
29 Options:
30 -help display this help and exits
31
32 Examples:
33 dynamicappdemo_test.pl http://localhost/some_action
34 dynamicappdemo_test.pl /some_action
35
36 See also:
37 perldoc Catalyst::Manual
38 perldoc Catalyst::Manual::Intro
39
40=head1 DESCRIPTION
41
42Run a Catalyst action from the command line.
43
44=head1 AUTHORS
45
46Catalyst Contributors, see Catalyst.pm
47
48=head1 COPYRIGHT
49
50This library is free software, you can redistribute it and/or modify
51it under the same terms as Perl itself.
52
53=cut