script/gitalist_server.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 22 CC 2 SCAR 12.8
CC
2
Cov
0%
BEGIN
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 #!/usr/local/bin/perl
2 use FindBin;
3 BEGIN {
4 my $env = "$FindBin::Bin/env";
5 if (-r $env) {
6 do $env or die $@;
7 }
8 }
9  
10 BEGIN {
11 $ENV{CATALYST_SCRIPT_GEN} = 40;
12 }
13  
14 use Catalyst::ScriptRunner;
15 Catalyst::ScriptRunner->run('Gitalist', 'Server');
16  
17 1;
18  
19 =head1 NAME
20  
21 gitalist_server.pl - Catalyst Test Server
22  
23 =head1 SYNOPSIS
24  
25 gitalist_server.pl [options]
26  
27 -d -debug force debug mode
28 -f -fork handle each request in a new process
29 (defaults to false)
30 -? -help display this help and exits
31 -host host (defaults to all)
32 -p -port port (defaults to 3000)
33 -k -keepalive enable keep-alive connections
34 -r -restart restart when files get modified
35 (defaults to false)
36 -rd -restartdelay delay between file checks
37 (ignored if you have Linux::Inotify2 installed)
38 -rr -restartregex regex match files that trigger
39 a restart when modified
40 (defaults to '\.yml$|\.yaml$|\.conf|\.pm$')
41 -restartdirectory the directory to search for
42 modified files, can be set mulitple times
43 (defaults to '[SCRIPT_DIR]/..')
44 -follow_symlinks follow symlinks in search directories
45 (defaults to false. this is a no-op on Win32)
46 -background run the process in the background
47 -pidfile specify filename for pid file
48  
49 See also:
50 perldoc Catalyst::Manual
51 perldoc Catalyst::Manual::Intro
52  
53 =head1 DESCRIPTION
54  
55 Run a Catalyst Testserver for this application.
56  
57 =head1 AUTHORS
58  
59 Catalyst Contributors, see Catalyst.pm
60  
61 =head1 COPYRIGHT
62  
63 This library is free software. You can redistribute it and/or modify
64 it under the same terms as Perl itself.
65  
66 =cut
67