# File lib/sshkit/runners/parallel.rb, line 8 def execute threads = [] hosts.each do |host| threads << Thread.new(host) do |h| begin backend(h, &block).run rescue Exception => e e2 = ExecuteError.new e raise e2, "Exception while executing on host #{host}: #{e.message}" end end end threads.map(&:join) end
Generated with the Darkfish Rdoc Generator 2.