mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Tweak on yaml parser. Added option for ssh port.
This commit is contained in:
@@ -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 . '"';
|
||||
|
||||
Reference in New Issue
Block a user