Class: Shared::MutableGroup Abstract
- Defined in:
- lib/vas/shared/groups.rb
Overview
This class is abstract.
A group that supports changes to it membership
Direct Known Subclasses
Gemfire::Group, Sqlfire::Group, TcServer::Group, WebServer::Group
Instance Attribute Summary
Attributes inherited from Group
Attributes included from Deletable
Attributes inherited from Resource
Instance Method Summary collapse
-
#update(nodes) ⇒ void
Updates the group to contain the given nodes.
Methods inherited from Group
#initialize, #installations, #nodes, #reload, #to_s
Methods included from Deletable
Constructor Details
This class inherits a constructor from Shared::Group
Instance Method Details
#update(nodes) ⇒ void
This method returns an undefined value.
Updates the group to contain the given nodes
94 95 96 97 98 99 |
# File 'lib/vas/shared/groups.rb', line 94 def update(nodes) node_locations = [] nodes.each { |node| node_locations << node.location } client.post(location, {:nodes => node_locations}) reload end |