line |
true |
false |
branch |
95
|
0 |
245 |
unless (exists $self->{'name'}) |
108
|
33 |
212 |
unless (exists $self->{'exit_on_connect_fail'}) |
123
|
40 |
220 |
unless (exists $self->{'connection'} and $self->{'connection'}) |
171
|
0 |
292 |
if (ref $server[-1] eq "HASH") |
183
|
0 |
0 |
if (exists $data->{'private_key'}) |
189
|
18 |
274 |
if (ref $self->{'server'} eq 'ARRAY' and scalar @{$self->{'server'};} > 0) { } |
|
0 |
274 |
elsif (ref $self->{'server'} eq 'CODE') { } |
193
|
1 |
29 |
if (ref $srv eq 'CODE') { } |
197
|
28 |
1 |
if (ref $srv and $srv->isa('Rex::Group::Entry::Server')) { } |
282
|
118 |
24 |
if (exists $self->{'current_server'}) { } |
283
|
14 |
104 |
if ($self->{'current_server'} ne "") |
288
|
14 |
10 |
if (exists $self->{'server'} and scalar @{$self->{'server'};} > 0) |
304
|
3 |
2 |
$self->is_remote == 0 ? : |
351
|
7 |
7 |
$self->{'no_ssh'} == 0 ? : |
383
|
0 |
46 |
if ($self->is_http) { } |
|
0 |
46 |
elsif ($self->is_https) { } |
|
0 |
46 |
elsif ($self->is_remote and $self->is_openssh and $self->want_connect) { } |
|
5 |
41 |
elsif ($self->is_remote and $self->want_connect) { } |
|
5 |
36 |
elsif ($self->is_remote) { } |
412
|
87 |
3 |
if (ref $self->{$key} eq 'ARRAY') { } |
441
|
39 |
0 |
if (exists $self->{'auth'} and $self->{'auth'}{'user'}) |
465
|
2 |
0 |
if (exists $self->{'auth'} and $self->{'auth'}{'password'}) |
525
|
6 |
18 |
if ($hook eq 'after') { } |
533
|
18 |
0 |
if $server |
535
|
2 |
16 |
if ($old_server and $old_server ne $$server) |
554
|
2 |
2 |
if (scalar @_ > 3) { } |
626
|
1 |
36 |
unless (ref $server) |
642
|
0 |
37 |
if (exists $override{'auth'}) |
652
|
37 |
259 |
if $key eq "password" |
653
|
37 |
259 |
if $key eq "sudo_password" |
660
|
0 |
37 |
if $auth->{'public_key'} |
662
|
0 |
37 |
if $auth->{'private_key'} |
690
|
0 |
37 |
unless (eval {
do {
$self->connection->connect(%connect_hash);
1
}
}) |
691
|
0 |
0 |
unless (defined "Rex::Config"->get_fallback_auth) |
697
|
0 |
37 |
if (not $self->connection->is_connected) { } |
|
0 |
37 |
elsif (not $self->connection->is_authenticated) { } |
708
|
0 |
0 |
if $connect_hash{'user'} eq "root" |
710
|
0 |
0 |
unless (exists $override{'auth'}) |
712
|
0 |
0 |
if (ref $fallback_auth eq "ARRAY") |
718
|
0 |
0 |
if $ret_eval |
725
|
0 |
37 |
if $self->connection->get_connection_type ne "Local" |
749
|
0 |
29 |
if (defined $args{'d'} and $args{'d'} > 2) |
797
|
0 |
54 |
unless ref $_[0] |
805
|
22 |
32 |
unless (ref $server) |
809
|
0 |
54 |
unless ($_[1]) |
826
|
36 |
18 |
if ($server ne '') { } |
833
|
0 |
36 |
if ($@) |
840
|
0 |
36 |
if ("Rex::Args"->is_opt("c")) |
843
|
0 |
0 |
unless (Rex::get_cache()->load) |
849
|
0 |
36 |
unless ($server->test_perl) |
865
|
7 |
11 |
if Rex::get_current_connection()->{'task'}[-1] |
875
|
40 |
14 |
if ref $options{'params'} eq "HASH" |
876
|
1 |
53 |
if ($wantarray) { } |
884
|
54 |
0 |
unless (eval {
do {
$self->set_opts(%{$options{"params"};}) if ref $options{'params'} eq "HASH";
if ($wantarray) {
@ret = $self->executor->exec($options{'params'}, $options{'args'});
}
else {
$ret[0] = $self->executor->exec($options{'params'}, $options{'args'});
};
my $notify = Rex::get_current_connection()->{'notify'};
$notify->run_postponed
}
}) |
885
|
7 |
47 |
if ($@) |
905
|
29 |
18 |
if ($server ne '') { } |
906
|
0 |
29 |
if ("Rex::Args"->is_opt("c")) |
920
|
1 |
28 |
if ($in_transaction) { } |
932
|
1 |
46 |
if ($wantarray) { } |
949
|
0 |
0 |
if $server_overwrite |
1031
|
0 |
65 |
unless $self->{'args'} |
1042
|
0 |
137 |
unless $self->{'opts'} |