Class: TcServer::Installation

Inherits:
Shared::Installation show all
Defined in:
lib/vas/tc_server/installations.rb

Overview

A tc Server installation

Instance Attribute Summary collapse

Attributes inherited from Shared::Installation

#group, #installation_image, #version

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::Installation

#to_s

Constructor Details

#initialize(location, client) ⇒ Installation

Returns a new instance of Installation.



39
40
41
42
43
44
# File 'lib/vas/tc_server/installations.rb', line 39

def initialize(location, client)
  super(location, client, InstallationImage, Group)

  @runtime_versions = details["runtime-versions"]
  @templates = Templates.new(Util::LinkUtils.get_link_href(details, "templates"), client)
end

Instance Attribute Details

#runtime_versionsString[] (readonly)

Returns the versions of the tc Server runtime that are supported by the installation.

Returns:

  • (String[])

    the versions of the tc Server runtime that are supported by the installation



33
34
35
# File 'lib/vas/tc_server/installations.rb', line 33

def runtime_versions
  @runtime_versions
end

#templatesTemplates (readonly)

Returns the installation’s templates.

Returns:

  • (Templates)

    the installation’s templates



36
37
38
# File 'lib/vas/tc_server/installations.rb', line 36

def templates
  @templates
end

Instance Method Details

#instancesInstance[]

Returns the instances that are using the installation.

Returns:

  • (Instance[])

    the instances that are using the installation



47
48
49
# File 'lib/vas/tc_server/installations.rb', line 47

def instances
  retrieve_instances("group-instance", Instance);
end