Class: Shared::MutableGroup Abstract

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

Overview

This class is abstract.

A group that supports changes to it membership

Instance Attribute Summary

Attributes inherited from Group

#name

Attributes included from Deletable

#collection

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Group

#initialize, #installations, #nodes, #reload, #to_s

Methods included from Deletable

#delete

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

Parameters:



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