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