Class: RabbitMq::Instance
- Inherits:
-
Shared::Instance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::Instance
- RabbitMq::Instance
- Defined in:
- lib/vas/rabbitmq/instances.rb
Overview
A Rabbit instance
Instance Attribute Summary collapse
-
#plugins ⇒ Object
readonly
The instance’s plugins.
Attributes inherited from Shared::Instance
#group, #live_configurations, #name, #node_instances, #pending_configurations
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Instance
constructor
:nodoc:.
-
#update(installation, runtime_version = nil) ⇒ Object
Updates the instance to use the given
installation
.
Methods inherited from Shared::Instance
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ Instance
:nodoc:
41 42 43 44 |
# File 'lib/vas/rabbitmq/instances.rb', line 41 def initialize(location, client) #:nodoc: super(location, client, Group, Installation, LiveConfigurations, PendingConfigurations, NodeInstance, 'node-instance') @plugins = Plugins.new(Util::LinkUtils.get_link_href(details, "plugins"), client) end |
Instance Attribute Details
#plugins ⇒ Object (readonly)
The instance’s plugins
39 40 41 |
# File 'lib/vas/rabbitmq/instances.rb', line 39 def plugins @plugins end |
Instance Method Details
#update(installation, runtime_version = nil) ⇒ Object
Updates the instance to use the given installation
47 48 49 |
# File 'lib/vas/rabbitmq/instances.rb', line 47 def update(installation, runtime_version = nil) client.post(location, { :installation => installation.location }); end |