Ask username if need (current user by default)

This commit is contained in:
Aleksey Romanenko 2014-08-06 18:10:17 +07:00
parent b48c369836
commit be30f9c226

View File

@ -250,6 +250,9 @@ class Configuration
*/
public function getUser()
{
if(null === $this->user) {
$this->user = ask("User:", trim(runLocally('whoami')));
}
return $this->user;
}