line |
true |
false |
branch |
28
|
4 |
4 |
if (&blessed($param)) |
31
|
4 |
0 |
if ($param eq 'Ubic::Cmd') |
55
|
0 |
3 |
if ($enabled_only and not 'Ubic'->is_enabled($name)) |
63
|
1 |
2 |
$@ ? : |
147
|
1 |
0 |
if (grep {$_ eq $command;} $service->custom_commands) |
158
|
0 |
1 |
unless ($count) |
160
|
0 |
0 |
if ($service->isa('Ubic::Multiservice')) { } |
188
|
0 |
4 |
if (not defined $service) { } |
|
4 |
0 |
elsif (not &blessed($service)) { } |
196
|
0 |
4 |
if ($service->isa('Ubic::Multiservice')) { } |
197
|
0 |
0 |
if ($service->full_name) |
219
|
0 |
0 |
unless (defined $user) |
243
|
0 |
0 |
if ($offset < $max_offset) { } |
252
|
0 |
0 |
unless ($enabled) |
260
|
0 |
0 |
if ($force_cached or $> and $user ne 'Ubic'->service($name)->user) { } |
266
|
0 |
0 |
if ($@) |
270
|
0 |
0 |
if ($status->status eq 'running') { } |
279
|
0 |
0 |
if $_->status ne 'running' |
|
0 |
0 |
if (&any(sub {
$_->status ne 'down' if $_->status ne 'running';
}
, $results->results)) |
293
|
0 |
0 |
if (ref $params->{'name'} eq 'ARRAY') { } |
313
|
0 |
0 |
unless $service->isa('Ubic::Multiservice') |
317
|
0 |
0 |
if ($multiop eq 'forbidden') { } |
|
0 |
0 |
elsif ($multiop eq 'protected') { } |
|
0 |
0 |
elsif ($multiop ne 'allowed') { } |
321
|
0 |
0 |
unless ($force) |
322
|
0 |
0 |
$service->name ? : |
344
|
0 |
0 |
if ($command eq 'status' or $command eq 'cached-status') |
346
|
0 |
0 |
if ($command eq 'cached-status') |
359
|
0 |
0 |
if ($name and not 'Ubic'->root_service->has_service($name)) |
367
|
0 |
0 |
$name ? : |
371
|
0 |
0 |
if (grep {$_ eq $command;} $service->custom_commands) |
383
|
0 |
0 |
if $command eq 'logrotate' |
387
|
0 |
0 |
unless (grep {$_ eq $method;} 'start', 'stop', 'restart', 'try_restart', 'reload', 'force_reload') |
396
|
0 |
0 |
if ($name) { } |