mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 08:12:29 +01:00
Merge pull request #44 from slimus/master
Fix phpDoc and ask for user if it does not specified.
This commit is contained in:
commit
b4c47200f1
@ -250,6 +250,9 @@ class Configuration
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
if(null === $this->user) {
|
||||
$this->user = ask("User:", trim(runLocally('whoami')));
|
||||
}
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ function run($command, $raw = false)
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute commands og local machine.
|
||||
* Execute commands on local machine.
|
||||
* @param string $command Command to run locally.
|
||||
* @return string Output of command.
|
||||
*/
|
||||
@ -317,4 +317,4 @@ function env()
|
||||
function config()
|
||||
{
|
||||
return env()->getConfig();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user