Class: TcServer::Revisions

Inherits:
Shared::MutableCollection show all
Defined in:
lib/vas/tc_server/revisions.rb

Overview

Used to enumerate, create, and delete application revisions.

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) ⇒ Revisions

Returns a new instance of Revisions.



23
24
25
# File 'lib/vas/tc_server/revisions.rb', line 23

def initialize(location, client)
  super(location, client, "revisions", Revision)
end

Instance Method Details

#create(revision_image) ⇒ Revision

Creates a revision by deploying the revision image

Parameters:

  • revision_image (RevisionImage)

    the revision image to deploy

Returns:



32
33
34
# File 'lib/vas/tc_server/revisions.rb', line 32

def create(revision_image)
  super({ :image => revision_image.location}, 'group-revision')
end