Class: TcServer::RevisionImages

Inherits:
Shared::MutableCollection show all
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

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableCollection

#create_image

Methods inherited from Shared::Collection

#each, #reload

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

Parameters:

  • path (String)

    the path of the WAR file

  • name (String)

    the name of the revision image

  • version (String)

    the version of the revision image

Returns:



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