| 1 | package App::LDAP::Command::Del::Group; | ||||||||||
| 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 | ▶ | use App::LDAP::LDIF::Group; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub run { | ||||||||
|
Subroutine
run: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my ($self) = shift; | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | my $groupname = $self->extra_argv->[2] or die "no group name specified"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | my $group = App::LDAP::LDIF::Group->search( | ||||||||||
| 18 | base => config()->{nss_base_group}->[0], | ||||||||||
| 19 | 0 | scope => config()->{nss_base_group}->[1], | |||||||||
| 20 | filter => "cn=$groupname", | ||||||||||
| 21 | ); | ||||||||||
| 22 | |||||||||||
| 23 | 0 | $group->delete; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 27 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 28 | |||||||||||
| 29 | 1 | 1; | |||||||||