lib/Rex/Service/OpenBSD.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 61.7% 21 / 34 CC 2 SCAR 8.9
CC
2
Cov
64%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/Rex/Virtualization/Base.pm ↑ Summary lib/Rex/CMDB/Base.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Service::OpenBSD;
6  
7 1 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our $VERSION = '1.16.1'; # VERSION
11  
12 1 ▶use Rex::Commands::File;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Rex::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use base qw(Rex::Service::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $that = shift;
19 0 ▶ my $proto = ref($that) || $that;
Condition0%0/3
ref $that || $that
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table0%0/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
20 0 my $self = $proto->SUPER::new(@_);
21  
22 0 bless( $self, $proto );
23  
24 $self->{commands} = {
25 0 start => '/usr/sbin/rcctl start %s',
26 restart => '/usr/sbin/rcctl restart %s',
27 stop => '/usr/sbin/rcctl stop %s',
28 reload => '/usr/sbin/rcctl reload %s',
29 status => '/usr/sbin/rcctl check %s',
30 ensure_start => '/usr/sbin/rcctl enable %s',
31 ensure_stop => '/usr/sbin/rcctl disable %s',
32 action => '/usr/sbin/rcctl action %s',
33 };
34  
35 0 return $self;
36 }
37  
38 1 1;
« lib/Rex/Virtualization/Base.pm ↑ Summary lib/Rex/CMDB/Base.pm »