Sha256: c899a929b5afb0a6d504c69b7d56869fe7dd2e0ec9f118152d4297d25cbc230c
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 Bytes
Contents
class Hadouken::Strategy::ByGroup < Hadouken::Strategy::Base def host_strategy host_sets = [] plan.groups.each do |group| hosts = group.hosts slice = max_hosts || hosts.size hosts.each_slice(slice) do |host_slice| host_sets << host_slice end end balanced end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hadouken-0.1.5.pre | lib/hadouken/strategy/by_group.rb |
hadouken-0.1.4.pre | lib/hadouken/strategy/by_group.rb |