Class: RabbitMq::PluginImages

Inherits:
Shared::MutableCollection show all
Defined in:
lib/vas/rabbitmq/plugin_images.rb

Overview

Used to enumerate, create, and delete RabbitMQ plugin images

Instance Attribute Summary

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableCollection

#create_image

Methods inherited from Shared::Collection

#each, #reload

Constructor Details

#initialize(location, client) ⇒ PluginImages

Returns a new instance of PluginImages.



23
24
25
# File 'lib/vas/rabbitmq/plugin_images.rb', line 23

def initialize(location, client)
  super(location, client, "plugin-images", PluginImage)
end

Instance Method Details

#create(path) ⇒ PluginImage

Creates a new plugin image by uploading a file

Parameters:

  • path (String)

    the path of the plugin .ez file to upload

Returns:



32
33
34
# File 'lib/vas/rabbitmq/plugin_images.rb', line 32

def create(path)
  create_image(path)
end