[BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation

This commit is contained in:
Andrés Montañez
2018-03-29 17:33:20 -03:00
parent bab5e164a5
commit 4232059d7e
11 changed files with 165 additions and 7 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class RsyncTask extends AbstractTask
$flags = $this->runtime->getEnvOption('rsync', '-avz');
$sshConfig = $this->runtime->getSSHConfig();
$user = $this->runtime->getEnvOption('user', $this->runtime->getCurrentUser());
$host = $this->runtime->getWorkingHost();
$host = $this->runtime->getHostName();
$hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/');
$targetDir = rtrim($hostPath, '/');
+1 -1
View File
@@ -38,7 +38,7 @@ class CopyTask extends AbstractTask
}
$user = $this->runtime->getEnvOption('user', $this->runtime->getCurrentUser());
$host = $this->runtime->getWorkingHost();
$host = $this->runtime->getHostName();
$sshConfig = $sshConfig = $this->runtime->getSSHConfig();
$hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/');
$currentReleaseId = $this->runtime->getReleaseId();
+2 -2
View File
@@ -61,8 +61,8 @@ abstract class AbstractFileTask extends AbstractTask
'%environment%' => $this->runtime->getEnvironment(),
];
if ($this->runtime->getWorkingHost() !== null) {
$mapping['%host%'] = $this->runtime->getWorkingHost();
if ($this->runtime->getHostName() !== null) {
$mapping['%host%'] = $this->runtime->getHostName();
}
if ($this->runtime->getReleaseId() !== null) {