Class: Shared::MutableGroup

Inherits:
Group show all
Defined in:
lib/vas/shared/groups.rb

Direct Known Subclasses

Gemfire::Group, TcServer::Group

Instance Attribute Summary

Attributes inherited from Group

#installations, #name

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Group

#initialize, #nodes, #to_s

Constructor Details

This class inherits a constructor from Shared::Group

Instance Method Details

#update(nodes) ⇒ Object

Updates the group to contain the given nodes.



66
67
68
69
70
# File 'lib/vas/shared/groups.rb', line 66

def update(nodes)
  node_locations = []
  nodes.each { |node| node_locations << node.location }
  client.post(location, {:nodes => node_locations})
end