lib/testlab/node/ssh.rb in testlab-0.5.4 vs lib/testlab/node/ssh.rb in testlab-0.6.0
- old
+ new
@@ -4,11 +4,11 @@
module SSH
# SSH to the Node
def ssh(options={})
if (!defined?(@ssh) || @ssh.nil?)
- @ssh ||= ZTK::SSH.new({:ui => @ui, :timeout => 1800, :silence => true}.merge(options))
+ @ssh ||= ZTK::SSH.new({:ui => @ui, :timeout => 3600, :silence => true}.merge(options))
@ssh.config do |c|
c.host_name = @provider.ip
c.port = @provider.port
c.user = @provider.user
c.keys = @provider.identity
@@ -20,10 +20,10 @@
# SSH to a container running on the Node
def container_ssh(container, options={})
name = container.id
@container_ssh ||= Hash.new
if @container_ssh[name].nil?
- @container_ssh[name] ||= ZTK::SSH.new({:ui => @ui, :timeout => 1800, :silence => true}.merge(options))
+ @container_ssh[name] ||= ZTK::SSH.new({:ui => @ui, :timeout => 3600, :silence => true}.merge(options))
@container_ssh[name].config do |c|
c.proxy_host_name = @provider.ip
c.proxy_port = @provider.port
c.proxy_user = @provider.user
c.proxy_keys = @provider.identity