Add config option to set ConnectTimeout for ssh connections

This commit is contained in:
Alexander Miehe
2015-01-09 14:05:37 +01:00
parent e453d1977d
commit 70c4823581
3 changed files with 12 additions and 1 deletions
+10
View File
@@ -391,6 +391,16 @@ class Config
return $this->deployment('identity-file') ? ('-i ' . $this->deployment('identity-file') . ' ') : '';
}
/**
* Get the ConnectTimeout option
*
* @return string
*/
public function getConnectTimeoutOption()
{
return $this->environmentConfig('connect-timeout') ? ('-o ConnectTimeout=' . $this->environmentConfig('connect-timeout') . ' ') : '';
}
/**
* Get the current Host
*