| 1 | #!/usr/bin/env perl | ||||||||||||||||||||||||||||
| 2 | package ubic_admin; | ||||||||||||||||||||||||||||
| 3 | 1 | $ubic_admin::VERSION = '1.59'; | |||||||||||||||||||||||||||
| 4 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | # ABSTRACT: ubic administration script | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 2 | ▶ | use Pod::Usage; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 2 | ▶ | use Ubic::Admin::Setup; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 1 | ▶ | return 1 if caller; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 0 | my $command = shift @ARGV; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 0 | ▶ | if (not defined $command or $command ne 'setup') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $command or $command ne "setup"
MC/DC0%0/2
not defined $command or $command ne "setup"
not defined $command
$command ne "setup"
Truth table33%1/3
not(A) or B
A= not defined $commandB= $command ne "setup"
| |||||||||||||||||||||||||||||
| 18 | 0 | pod2usage(2); | |||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 0 | Ubic::Admin::Setup::setup(); | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | __END__ | ||||||||||||||||||||||||||||