LDAP/Command/Del/Ou.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 65.2% 15 / 23 CC 2 SCAR 11.0
CC
2
Cov
67%
run
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« LDAP/LDIF.pm ↑ Summary LDAP/Role/Stem.pm »
1 package App::LDAP::Command::Del::Ou;
2  
3 1 ▶use Modern::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 with qw( App::LDAP::Role::Command
8 App::LDAP::Role::Bindable );
9  
10 1 has base => (
11 is => "rw",
12 isa => "Str",
13 );
14  
15 1 ▶use App::LDAP::LDIF::OrgUnit;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 0 ▶sub run {
Subroutine run: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my ($self, ) = @_;
19  
20 0 ▶ my $ouname = $self->extra_argv->[2] or die "no organization name specified";
Branch: 1 branch
BranchTrueFalseTotal
my $ouname = $self->extra_argv->[2] or die "no organization name specified" 0 0 0
21  
22 my $ou = App::LDAP::LDIF::OrgUnit->search(
23 base => config()->{base},
24 scope => config()->{scope},
25 0 filter => "ou=$ouname",
26 );
27  
28 0 $ou->delete;
29 }
30  
31 1 1;
32  
33 =pod
34  
35 =head1 NAME
36  
37 App::LDAP::Command::Del::Ou - the handler for deleting Organization Units
38  
39 =cut
« LDAP/LDIF.pm ↑ Summary LDAP/Role/Stem.pm »