Sha256: 6b05840c494a0a371b3c04047284c21e1ebf5cba5180f6c8cc791c8fe8e12e7b
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
class Hadouken::Strategy::ByHost < Hadouken::Strategy::Base def host_strategy hosts = plan.groups.map{|g| g.hosts}.flatten.uniq slice = max_hosts || hosts.size host_sets = [] slice = max_hosts || hosts.size hosts.each_slice(slice) do |host_slice| host_sets << host_slice end host_sets end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hadouken-0.1.5.pre | lib/hadouken/strategy/by_host.rb |
hadouken-0.1.4.pre | lib/hadouken/strategy/by_host.rb |