openminds / bunka

Parallel ssh commands over chef servers with rspec-like output. Bunka uses the exit codes of a command to determine whether it qualifies as a success or failure.
MIT License
10 stars 2 forks source link

instead of sequential runs, make the number of threads parameterizable #6

Closed Zhann closed 9 years ago

Zhann commented 9 years ago

We should revert https://github.com/openminds/bunka/pull/5 and change lib/bunka.rb to make the number of threads parameterizable. Something like:

- Parallel.map(knife_search(@query), in_threads: 15) do |fqdn|
+ Parallel.map(knife_search(@query), in_threads: @number_of_threads) do |fqdn|
  execute_query fqdn
end