Balancer/Command/Stop.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 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::Stop;
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 ->stop(pidfile => $self->config->pidfile);
16  
17 }
18  
19 1;
20 __END__