[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
+2 -2
View File
@@ -175,8 +175,8 @@ class DeployCommand extends AbstractCommand
return true;
}
if ($this->runtime->getWorkingHost() !== null) {
$output->writeln(sprintf(' Starting <fg=black;options=bold>%s</> tasks on host <fg=black;options=bold>%s</>:', $this->getStageName(), $this->runtime->getWorkingHost()));
if ($this->runtime->getHostName() !== null) {
$output->writeln(sprintf(' Starting <fg=black;options=bold>%s</> tasks on host <fg=black;options=bold>%s</>:', $this->getStageName(), $this->runtime->getHostName()));
} else {
$output->writeln(sprintf(' Starting <fg=black;options=bold>%s</> tasks:', $this->getStageName()));
}