Sha256: 36e245feb257146634e02338d9a85fe93ba2807a79badc58c2b8a8fccaf72fe7
Contents?: true
Size: 289 Bytes
Versions: 3
Compression:
Stored size: 289 Bytes
Contents
module Octopus class SlaveGroup def initialize(slaves) slaves = HashWithIndifferentAccess.new(slaves) slaves_list = slaves.values @load_balancer = Octopus::LoadBalancing::RoundRobin.new(slaves_list) end def next @load_balancer.next end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ar-octopus-0.8.5 | lib/octopus/slave_group.rb |
ar-octopus-0.8.4 | lib/octopus/slave_group.rb |
ar-octopus-0.8.3 | lib/octopus/slave_group.rb |