lib/rcmd.rb in rcmd-1.6.5 vs lib/rcmd.rb in rcmd-1.6.6
- old
+ new
@@ -44,13 +44,10 @@
attr_accessor :debug
# Boolean for using only ssh-keys or not
attr_accessor :keys_only
- # Integer for ssh sesison timeout value
- attr_accessor :timeout
-
# String fo path to user_known_hosts_file
attr_accessor :hosts_file
end
# Main method for this module which should be called after the correct variables have been set.
@@ -102,10 +99,10 @@
# Prepare threads
@threads = [ ]
num_threads.times do |i|
@threads[i] = Thread.new {
begin
- conn_options = { :user => @user, :host => @queue.pop, :password => nil, :quiet => @quiet, :debug => @debug, :timeout => @timeout, :keys_only => @keys_only, :user_known_hosts_file => @hosts_file}
+ conn_options = { :user => @user, :host => @queue.pop, :password => nil, :quiet => @quiet, :debug => @debug, :keys_only => @keys_only, :user_known_hosts_file => @hosts_file}
STDERR.print "DEBUG :: Connecting to #{conn_options[:host]}\n" if conn_options[:debug]
Net::SSH.start(conn_options[:host], conn_options[:user], :password => conn_options[:passwd]) do |session|
# Open channel for input/output control
session.open_channel do |channel|
channel.on_data do |ch, data|