line |
true |
false |
branch |
92
|
0 |
0 |
unless (ref $name) |
103
|
0 |
0 |
if (exists $option{'name'}) |
107
|
0 |
0 |
if (exists $option{'ensure'} and $option{'ensure'} eq 'present') { } |
|
0 |
0 |
elsif (exists $option{'ensure'} and $option{'ensure'} eq 'absent') { } |
149
|
0 |
0 |
if (@new_args) |
153
|
0 |
0 |
unless (eval {
do {
my(@new_args) = Rex::Hook::run_hook("create_user", "before", @_);
if (@new_args) {
($user, @_data) = @new_args;
};
1
}
}) |
160
|
0 |
0 |
if (not ref $_data[0]) { } |
169
|
0 |
0 |
if (defined $data->{'ssh_key'} and not defined $data->{'home'}) |
175
|
0 |
0 |
if (defined $data->{'ssh_key'}) |
177
|
0 |
0 |
unless (is_dir($data->{'home'} . "/.ssh")) |
184
|
0 |
0 |
unless (eval {
do {
Rex::Commands::User::mkdir($data->{'home'} . "/.ssh", "owner", $user, "mode", 700, "not_recursive", 1)
}
}) |
192
|
0 |
0 |
if (is_dir($data->{'home'} . "/.ssh")) |
207
|
0 |
0 |
if ($data->{'__ret_changed'}) |
276
|
0 |
0 |
if (not ref $_data[0]) { } |
316
|
0 |
0 |
if (ref $name ne "ARRAY") |
328
|
0 |
0 |
if ($option{'ensure'} eq 'present') { } |
|
0 |
0 |
elsif ($option{'ensure'} eq 'absent') { } |
329
|
0 |
0 |
unless (defined $gid) |
334
|
0 |
0 |
if (defined $gid) |
362
|
0 |
0 |
if (not ref $_[0]) { } |