lib/SimControl/hosts.rb in SimControl-0.1.5 vs lib/SimControl/hosts.rb in SimControl-0.1.6

- old
+ new

@@ -14,10 +14,10 @@ @hosts.map { |k, v| v[:cores] }.reduce(0, :+) end def partition(all_scenarios, hostname) return [] if number_of_cores == 0 - scenario_groups = all_scenarios.in_groups_of(number_of_cores, false) + scenario_groups = all_scenarios.in_groups(number_of_cores, false) scenario_groups[host_indices hostname] end def host_indices(hostname) return 0..0 unless @hosts.include? hostname