| 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
| |||||||||||
| 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; | |||||||||