Class: WebServer::InstallationImages
- Inherits:
-
Shared::InstallationImages
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Shared::InstallationImages
- WebServer::InstallationImages
- Defined in:
- lib/vas/web_server/installation_images.rb
Overview
Used to enumerate, create, and delete Web Server installation images.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(path, version, architecture, operating_system) ⇒ InstallationImage
Creates an installation image by uploading a file to the server and assigning it a version, architecture, and operating system.
-
#initialize(location, client) ⇒ InstallationImages
constructor
A new instance of InstallationImages.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ InstallationImages
Returns a new instance of InstallationImages.
23 24 25 |
# File 'lib/vas/web_server/installation_images.rb', line 23 def initialize(location, client) super(location, client, InstallationImage) end |
Instance Method Details
#create(path, version, architecture, operating_system) ⇒ InstallationImage
Creates an installation image by uploading a file to the server and assigning it a version, architecture, and operating system
36 37 38 39 40 |
# File 'lib/vas/web_server/installation_images.rb', line 36 def create(path, version, architecture, ) create_image(path, { :version => version, :architecture => architecture, 'operating-system' => }) end |