mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 08:12:29 +01:00
Ask username if need (current user by default)
This commit is contained in:
parent
b48c369836
commit
be30f9c226
@ -250,6 +250,9 @@ class Configuration
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
if(null === $this->user) {
|
||||
$this->user = ask("User:", trim(runLocally('whoami')));
|
||||
}
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user