blib/lib/auto/share/dist/Poet/generate.skel/bin/run.pl untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!<% Poet::Tools::perl_executable %>
2 #
3 # Runs plackup with appropriate options
4 #
5 use Poet::Script qw($conf $poet);
6 use Plack::Runner;
7 use strict;
8 use warnings;
9  
10 my $app_psgi = $poet->bin_path("app.psgi");
11 my $server = $poet->app_class('Server');
12  
13 # Get plackup options based on config (e.g. server.port) and layer
14 #
15 my @options = $server->get_plackup_options();
16  
17 my @argv = (@options, $app_psgi);
18 print "Running " . join(", ", "plackup", @argv) . "\n";
19 my $runner = Plack::Runner->new;
20 $runner->parse_options(@argv);
21 $runner->run;