Class: TcServer::Installation
- Inherits:
-
Shared::Installation
- Object
- Shared::Resource
- Shared::Installation
- TcServer::Installation
- Defined in:
- lib/vas/tc_server/installations.rb
Overview
A tc Server installation
Instance Attribute Summary collapse
-
#runtime_versions ⇒ String[]
readonly
The versions of the tc Server runtime that are supported by the installation.
-
#templates ⇒ Templates
readonly
The installation’s templates.
Attributes inherited from Shared::Installation
#group, #installation_image, #version
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Installation
constructor
A new instance of Installation.
-
#instances ⇒ Instance[]
The instances that are using the installation.
Methods inherited from Shared::Installation
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_versions ⇒ String[] (readonly)
Returns 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 |
#templates ⇒ Templates (readonly)
Returns the installation’s templates.
36 37 38 |
# File 'lib/vas/tc_server/installations.rb', line 36 def templates @templates end |