Class: RabbitMq::Instances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- RabbitMq::Instances
- Defined in:
- lib/vas/rabbitmq/instances.rb
Overview
Used to enumerate, create, and delete Rabbit instances.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(installation, name) ⇒ Object
Creates a new instance named
name
, using the installationinstallation
. -
#initialize(location, client) ⇒ Instances
constructor
:nodoc:.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
Instance Method Details
#create(installation, name) ⇒ Object
Creates a new instance named name
, using the installation installation
.
28 29 30 31 |
# File 'lib/vas/rabbitmq/instances.rb', line 28 def create(installation, name) payload = { :installation => installation.location, :name => name } Instance.new(client.post(location, payload, "group-instance"), client) end |