Class: Octopus::SlaveGroup
- Inherits:
-
Object
- Object
- Octopus::SlaveGroup
- Defined in:
- lib/octopus/slave_group.rb
Instance Method Summary collapse
-
#initialize(slaves) ⇒ SlaveGroup
constructor
A new instance of SlaveGroup.
- #next(options) ⇒ Object
Constructor Details
#initialize(slaves) ⇒ SlaveGroup
Returns a new instance of SlaveGroup.
3 4 5 6 7 |
# File 'lib/octopus/slave_group.rb', line 3 def initialize(slaves) slaves = HashWithIndifferentAccess.new(slaves) slaves_list = slaves.values @load_balancer = Octopus.load_balancer.new(slaves_list) end |
Instance Method Details
#next(options) ⇒ Object
9 10 11 |
# File 'lib/octopus/slave_group.rb', line 9 def next() @load_balancer.next end |