From b1cd0734938e73feeffa006a0ce3898acc4c0356 Mon Sep 17 00:00:00 2001 From: Tony Pitale Date: Wed, 28 Mar 2012 14:38:43 -0300 Subject: Move the removal of loop_wait from options above net::ssh start so that net::ssh start doesn't complain about loop_wait. Currently broken in gem version 1.1.0 and net-ssh 2.3.0. --- lib/net/ssh/gateway.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ssh/gateway.rb b/lib/net/ssh/gateway.rb index 0757d18..ed8c69d 100644 --- a/lib/net/ssh/gateway.rb +++ b/lib/net/ssh/gateway.rb @@ -71,11 +71,11 @@ class Net::SSH::Gateway # with the :loop_wait option. # def initialize(host, user, options={}) + @loop_wait = options.delete(:loop_wait) || 0.001 @session = Net::SSH.start(host, user, options) @session_mutex = Mutex.new @port_mutex = Mutex.new @next_port = MAX_PORT - @loop_wait = options.delete(:loop_wait) || 0.001 initiate_event_loop! end -- cgit v1.2.1