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

:nodoc:



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

def initialize(location, client) #:nodoc:
  super(location, client, InstallationImage, Group)

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

Instance Attribute Details

#runtime_versionsObject (readonly)

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

Instance Method Details

#instancesObject

An array of the instances that are using the installation



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

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

#templatesObject

The installation’s templates



43
44
45
# File 'lib/vas/tc_server/installations.rb', line 43

def templates
  Templates.new(@templates_location, client)
end