blib/script/tapper_reports_web_fastcgi_public.pl untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 49 CC 2 SCAR 10.6
CC
2
Cov
0%
BEGIN
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.9
1 #!/usr/local/bin/perl
2 # PODNAME: tapper_reports_web_fastcgi.pl
3 # ABSTRACT: Tapper - web gui start script - fastcgi
4  
5 # Explicitely only for the live environment on bancroft
6  
7 BEGIN {
8 $ENV{CATALYST_ENGINE} ||= 'FastCGI';
9 $ENV{TAPPER_REPORTS_WEB_LIVE} ||= '1';
10 $ENV{CATALYST_DEBUG} = 0 unless defined $ENV{CATALYST_DEBUG};
11 }
12  
13 use strict;
14 use warnings;
15 use Getopt::Long;
16 use Pod::Usage;
17 use FindBin;
18 use lib "$FindBin::Bin/../lib";
19 use Tapper::Reports::Web;
20  
21 my $help = 0;
22 my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr );
23  
24 GetOptions(
25 'help|?' => \$help,
26 'listen|l=s' => \$listen,
27 'nproc|n=i' => \$nproc,
28 'pidfile|p=s' => \$pidfile,
29 'manager|M=s' => \$manager,
30 'daemon|d' => \$detach,
31 'keeperr|e' => \$keep_stderr,
32 );
33  
34 pod2usage(1) if $help;
35  
36 Tapper::Reports::Web->run(
37 $listen,
38 { nproc => $nproc,
39 pidfile => $pidfile,
40 manager => $manager,
41 detach => $detach,
42 keep_stderr => $keep_stderr,
43 }
44 );
45  
46 1;
47  
48 __END__