lib/CPAN/Mini/Inject/Server/Dispatch.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 88.2% 15 / 17 CC 1 SCAR 2.2
CC
1
Cov
92%
dispatch_args
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« script/cmis_test_server.pl ↑ Summary
1 package CPAN::Mini::Inject::Server::Dispatch;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base 'CGI::Application::Dispatch';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 CPAN::Mini::Inject::Server::Dispatch - Dispatch table for CPAN::Mini::Inject::Server
10  
11 =head1 VERSION
12  
13 Version 0.03
14  
15 =cut
16  
17 2 our $VERSION = '0.03';
18  
19  
20 =head1 SYNOPSIS
21  
22 USING TEST SERVER
23  
24 use CGI::Application::Dispatch::Server;
25 my $server = CGI::Application::Dispatch::Server->new(
26 class => 'CPAN::Mini::Inject::Server::Dispatch',
27 port => '9000'
28 );
29  
30 $server->run;
31  
32  
33 OR UNDER APACHE MOD PERL
34  
35 <location /app>
36 SetHandler perl-script
37 PerlHandler CPAN::Mini::Inject::Server::Dispatch
38 </location>
39
40
41 OR UNDER CGI
42
43 #!/usr/bin/perl
44 use FindBin '$Bin';
45 use lib "$Bin/../../rel/path/to/my/perllib";
46 use CPAN::Mini::Inject::Server::Dispatch
47 CPAN::Mini::Inject::Server::Dispatch->dispatch();
48  
49 =cut
50  
51 =head1 DESCRIPTION
52  
53 =cut
54  
55 =head1 FUNCTIONS
56  
57 =cut
58  
59  
60 =head2 dispatch_args
61  
62 Dispatch urls for CPAN::Mini::Inject::Server
63  
64 =cut
65  
66 0 ▶sub dispatch_args {
Subroutine dispatch_args: not called CC=1 SCAR=6.9
Pod documented
67 return {
68 0 prefix => 'CPAN::Mini::Inject',
69 table => [
70 'add[post]' => {app => 'Server', rm => 'add'},
71 'update[post]' => {app => 'Server', rm => 'update'},
72 'inject[post]' => {app => 'Server', rm => 'inject'},
73 ],
74 }
75 } # end of subroutine dispatch_args
76  
77  
78  
79 =head1 AUTHOR
80  
81 Christopher Mckay, C<< <potatohead at potatolan.com> >>
82  
83 =head1 BUGS
84  
85 Please report any bugs or feature requests to C<bug-cpan-mini-inject-server at rt.cpan.org>, or through
86 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPAN-Mini-Inject-Server>. I will be notified, and then you'll
87 automatically be notified of progress on your bug as I make changes.
88  
89  
90  
91  
92 =head1 SUPPORT
93  
94 You can find documentation for this module with the perldoc command.
95  
96 perldoc CPAN::Mini::Inject::Server::Dispatch
97  
98  
99 You can also look for information at:
100  
101 =over 4
102  
103 =item * RT: CPAN's request tracker
104  
105 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPAN-Mini-Inject-Server>
106  
107 =item * AnnoCPAN: Annotated CPAN documentation
108  
109 L<http://annocpan.org/dist/CPAN-Mini-Inject-Server>
110  
111 =item * CPAN Ratings
112  
113 L<http://cpanratings.perl.org/d/CPAN-Mini-Inject-Server>
114  
115 =item * Search CPAN
116  
117 L<http://search.cpan.org/dist/CPAN-Mini-Inject-Server/>
118  
119 perldoc CPAN::Mini::Inject::Server::Dispatch
120  
121 =back
122  
123 =head1 ACKNOWLEDGEMENTS
124  
125  
126 =head1 COPYRIGHT & LICENSE
127  
128 Copyright 2009 Christopher Mckay.
129  
130 This program is free software; you can redistribute it and/or modify it
131 under the terms of either: the GNU General Public License as published
132 by the Free Software Foundation; or the Artistic License.
133  
134 See http://dev.perl.org/licenses/ for more information.
135  
136 =cut
137  
138 2 1; # End of CPAN::Mini::Inject::Server::Dispatch
« script/cmis_test_server.pl ↑ Summary