MCP/Net/Reset/Exec.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 70.8% 17 / 24 CC 1 SCAR 2.2
CC
1
Cov
68%
reset_host
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« MCP/Scheduler/Builder.pm ↑ Summary MCP/Net/Reset/DoNothing.pm »
1 package Tapper::MCP::Net::Reset::Exec;
2 1 our $AUTHORITY = 'cpan:TAPPER';
3 1 $Tapper::MCP::Net::Reset::Exec::VERSION = '5.0.9';
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 extends 'Tapper::Base';
9  
10  
11 sub reset_host
12 0 ▶{
Subroutine reset_host: not called CC=1 SCAR=6.9
Pod documented
13 0 my ($self, $host, $options) = @_;
14  
15 0 $self->log->info("Try reboot via Exec");
16 0 my $cmd = $options->{command}." $host";
17 0 $self->log->info("trying $cmd");
18 0 my ($error, $retval) = $self->log_and_exec($cmd);
19 0 return ($error, $retval);
20 }
21  
22 1 1;
23  
24 __END__
« MCP/Scheduler/Builder.pm ↑ Summary MCP/Net/Reset/DoNothing.pm »