Class: RabbitMq::PluginImages
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- RabbitMq::PluginImages
- Defined in:
- lib/vas/rabbitmq/plugin_images.rb
Overview
Used to enumerate, create, and delete Rabbit plugin images
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(path) ⇒ Object
Creates a plugin image by uploading the file at the given
path
. -
#initialize(location, client) ⇒ PluginImages
constructor
:nodoc:.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ PluginImages
:nodoc:
23 24 25 |
# File 'lib/vas/rabbitmq/plugin_images.rb', line 23 def initialize(location, client) #:nodoc: super(location, client, "plugin-images", PluginImage) end |
Instance Method Details
#create(path) ⇒ Object
Creates a plugin image by uploading the file at the given path
28 29 30 |
# File 'lib/vas/rabbitmq/plugin_images.rb', line 28 def create(path) PluginImage.new(client.post_image(location, path), client) end |