Tweak on yaml parser. Added option for ssh port.

This commit is contained in:
Andrs Montaez
2012-02-15 18:45:59 -02:00
parent 565078a7f8
commit 2ec4f58c77
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ abstract class Mage_Task_TaskAbstract
$releasesDirectory = '';
}
$localCommand = 'ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
$localCommand = 'ssh -p ' . $this->_config->deployment('port', '22') . ' '
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
. $this->_config->deployment('user') . '@' . $this->_config->getHost() . ' '
. '"cd ' . rtrim($this->_config->deployment('to'), '/') . $releasesDirectory . ' && '
. $command . '"';