Tweaks on port definition.

Now port can be defined into the hostname.
This commit is contained in:
Andrs Montaez
2012-02-15 19:08:16 -02:00
parent e42a1f1193
commit 51e7de0676
8 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ abstract class Mage_Task_TaskAbstract
$releasesDirectory = '';
}
$localCommand = 'ssh -p ' . $this->_config->deployment('port', '22') . ' '
$localCommand = 'ssh -p ' . $this->_config->getHostPort() . ' '
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
. $this->_config->deployment('user') . '@' . $this->_config->getHost() . ' '
. '"cd ' . rtrim($this->_config->deployment('to'), '/') . $releasesDirectory . ' && '