Class: Shared::InstallationImages
- Inherits:
-
MutableCollection
- Object
- Resource
- Collection
- MutableCollection
- Shared::InstallationImages
- Defined in:
- lib/vas/shared/installation_images.rb
Direct Known Subclasses
Gemfire::InstallationImages, RabbitMq::InstallationImages, TcServer::InstallationImages
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#create(path, version) ⇒ Object
Creates an installation image with the version
version
by uploading the file at the givenpath
. -
#initialize(location, client, installation_image_class) ⇒ InstallationImages
constructor
:nodoc:.
Methods inherited from MutableCollection
Methods inherited from Collection
Constructor Details
#initialize(location, client, installation_image_class) ⇒ InstallationImages
:nodoc:
22 23 24 |
# File 'lib/vas/shared/installation_images.rb', line 22 def initialize(location, client, installation_image_class) #:nodoc: super(location, client, "installation-images", installation_image_class) end |
Instance Method Details
#create(path, version) ⇒ Object
Creates an installation image with the version version
by uploading the file at the given path
.
27 28 29 |
# File 'lib/vas/shared/installation_images.rb', line 27 def create(path, version) entry_class.new(client.post_image(location, path, { :version => version }), client) end |