f #4716: add timeout to SshStreamCommand#run

This commit is contained in:
Javi Fontan committed 2016-09-12 11:55:24 +02:00
1 parent 85d265cad7
commit 6cb9635bdb
1 file changed
+3 -1
+3 -1
View File
@@ -192,7 +192,9 @@ class SshStreamCommand < RemotesCommand
@stream = SshStream.new(host, shell, timeout)
end
def run(command, stdin=nil, base_cmd = nil)
def run(command, stdin=nil, base_cmd = nil, timeout = nil)
@timeout = timeout if timeout
@stream.open unless @stream.opened?
if base_cmd #Check if base command is on remote host