Class: Shared::InstallationImages

Inherits:
MutableCollection show all
Defined in:
lib/vas/shared/installation_images.rb

Instance Attribute Summary

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from MutableCollection

#delete

Methods inherited from Collection

#each

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