mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation
This commit is contained in:
@@ -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, '/');
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user