[Nostromo] If user is not defined, get current running user

This commit is contained in:
Andrés Montañez
2017-01-03 22:43:08 -03:00
parent 886b7edcf6
commit 92d63f3814
4 changed files with 23 additions and 2 deletions
@@ -37,7 +37,7 @@ class CopyTask extends AbstractTask
throw new DeploymentException('This task is only available with releases enabled', 40);
}
$user = $this->runtime->getEnvironmentConfig('user');
$user = $this->runtime->getEnvironmentConfig('user', $this->runtime->getCurrentUser());
$host = $this->runtime->getWorkingHost();
$sshConfig = $sshConfig = $this->runtime->getSSHConfig();
$hostPath = rtrim($this->runtime->getEnvironmentConfig('host_path'), '/');