Balancer/Command/Start.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTTP::Balancer::Command::Start;
2  
3 use Modern::Perl;
4  
5 use Moose;
6  
7 with qw( HTTP::Balancer::Role::Command );
8  
9 sub run {
10 my ($self, ) = @_;
11  
12 $self
13 ->actor("Nginx")
14 ->new
15 ->start(
16 pidfile => $self->config->pidfile,
17 hosts => [$self->model("Host")->all(sub { shift->hash })],
18 );
19 }
20  
21 1;
22 __END__