Class: TcServer::TemplateImages
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- TcServer::TemplateImages
- Defined in:
- lib/vas/tc_server/template_images.rb
Overview
Used to enumerate, create, and delete tc Server template images.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(path, name, version) ⇒ TemplateImage
Creates a new template image by uploading a
.zip
file to the server. -
#initialize(location, client) ⇒ TemplateImages
constructor
A new instance of TemplateImages.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ TemplateImages
Returns a new instance of TemplateImages.
23 24 25 |
# File 'lib/vas/tc_server/template_images.rb', line 23 def initialize(location, client) super(location, client, 'template-images', TemplateImage) end |
Instance Method Details
#create(path, name, version) ⇒ TemplateImage
Creates a new template image by uploading a .zip
file to the server
34 35 36 |
# File 'lib/vas/tc_server/template_images.rb', line 34 def create(path, name, version) create_image(path, { :name => name, :version => version }) end |