mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +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()
|
public function getUser()
|
||||||
{
|
{
|
||||||
|
if(null === $this->user) {
|
||||||
|
$this->user = ask("User:", trim(runLocally('whoami')));
|
||||||
|
}
|
||||||
return $this->user;
|
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.
|
* @param string $command Command to run locally.
|
||||||
* @return string Output of command.
|
* @return string Output of command.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user