# File lib/net/ssh/multi/session.rb, line 274 274: def use(*hosts, &block) 275: options = hosts.last.is_a?(Hash) ? hosts.pop : {} 276: options = { :via => default_gateway }.merge(options) 277: 278: results = hosts.map do |host| 279: server_list.add(Server.new(self, host, options)) 280: end 281: 282: if block 283: results << server_list.add(DynamicServer.new(self, options, block)) 284: end 285: 286: group [] => results 287: results.length > 1 ? results : results.first 288: end