Tweaks for issue #45

- Issue #45 - Adds "ssh_needs_tty" which appends "-t" to the ssh.
- Issue #45 - Rsync is incremental if there are previous releases.
This commit is contained in:
Andrés Montañez
2014-03-16 18:21:42 -03:00
parent 8b43a136dd
commit 7c883d2436
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -188,9 +188,9 @@ abstract class AbstractTask
} else {
$releasesDirectory = '';
}
// if general.yml includes "ssy_needs_tty: true", then add "-t" to the ssh command
$needs_tty = ($this->getConfig()->general('ssh_needs_tty',false) ? "-t" : "");
$needs_tty = ($this->getConfig()->general('ssh_needs_tty',false) ? '-t' : '');
$localCommand = 'ssh ' . $needs_tty . ' -p ' . $this->getConfig()->getHostPort() . ' '
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '