Rex
view release on metacpan or search on metacpan
lib/Rex/Config.pm view on Meta::CPAN
}
if ($user) {
return $user;
}
if ( $^O =~ m/^MSWin/ ) {
return getlogin;
}
else {
return scalar getpwuid($<);
}
}
=head2 set_password
=head2 get_password
Sets and gets the value of the C<$password> configuration variable, which also can be set via the C<REX_PASSWORD> environment variable.
This controls what L<password|Rex::Commands#password> Rex should use for authentication or as passphrase when using private keys.
lib/Rex/Cron/Base.pm view on Meta::CPAN
$config{"hour"} = "*" unless defined $config{hour};
$config{"day_of_month"} = "*" unless defined $config{day_of_month};
$config{"month"} = "*" unless defined $config{month};
$config{"day_of_week"} = "*" unless defined $config{day_of_week};
$config{"command"} ||= "false";
return %config;
}
sub _whoami {
return i_run q(perl -e 'print scalar getpwuid($<)');
}
1;
( run in 0.332 second using v1.01-cache-2.11-cpan-8d75d55dd25 )