Methods

SSHKit::Runner::Parallel

Public Instance Methods

execute() click to toggle source
# File lib/sshkit/runners/parallel.rb, line 8
def execute
  threads = []
  hosts.each do |host|
    threads << Thread.new(host) do |h|
      backend(h, &block).run
    end
  end
  threads.map(&:join)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.