Class: Shared::InstallationImages Abstract
- Inherits:
-
MutableCollection
- Object
- Resource
- Collection
- MutableCollection
- Shared::InstallationImages
- Defined in:
- lib/vas/shared/installation_images.rb
Overview
This class is abstract.
A collection of installation images
Direct Known Subclasses
Gemfire::InstallationImages, RabbitMq::InstallationImages, Sqlfire::InstallationImages, TcServer::InstallationImages, WebServer::InstallationImages
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#create(path, version) ⇒ InstallationImage
Creates an installation image by uploading a file to the server and assigning it a version.
-
#initialize(location, client, installation_image_class) ⇒ InstallationImages
constructor
A new instance of InstallationImages.
Methods inherited from MutableCollection
Methods inherited from Collection
Constructor Details
#initialize(location, client, installation_image_class) ⇒ InstallationImages
Returns a new instance of InstallationImages.
23 24 25 |
# File 'lib/vas/shared/installation_images.rb', line 23 def initialize(location, client, installation_image_class) super(location, client, 'installation-images', installation_image_class) end |
Instance Method Details
#create(path, version) ⇒ InstallationImage
Creates an installation image by uploading a file to the server and assigning it a version
33 34 35 |
# File 'lib/vas/shared/installation_images.rb', line 33 def create(path, version) create_image(path, { :version => version }) end |