blib/lib/Lemonldap/NG/Manager/Cli/Lib.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 25 / 25 CC 2 SCAR 3.4
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Lemonldap/NG/Manager/Api.pm ↑ Summary blib/lib/Lemonldap/NG/Manager/Build.pm »
1 package Lemonldap::NG::Manager::Cli::Lib;
2  
3 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 28 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 28 ▶use Lemonldap::NG::Manager;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 28 our $VERSION = '2.21.0';
8  
9 28 extends 'Lemonldap::NG::Common::PSGI::Cli::Lib';
10  
11 28 has mgr => ( is => 'ro', isa => 'Lemonldap::NG::Manager' );
12  
13 has app => (
14 is => 'ro',
15 isa => 'CodeRef',
16 19 ▶ builder => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
17 19 my $args = {
18 protection => 'none',
19 enabledModules => "conf, sessions, notifications, 2ndFA, api"
20 };
21 $args->{configStorage} = { confFile => $_[0]->{iniFile} }
22 19 ▶ if ( $_[0]->{iniFile} );
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"iniFile"} 18 1 19
23 19 $_[0]->{mgr} = Lemonldap::NG::Manager->new($args);
24 19 $_[0]->{mgr}->init($args);
25 19 return $_[0]->{mgr}->run();
26 }
27 28 );
28  
29 28 1;
« blib/lib/Lemonldap/NG/Manager/Api.pm ↑ Summary blib/lib/Lemonldap/NG/Manager/Build.pm »