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.
Attributes inherited from Shared::Installation
Attributes included from Shared::Deletable
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.
-
#reload ⇒ void
Reloads the installation’s details from the server.
-
#templates ⇒ Templates
The installation’s templates.
Methods inherited from Shared::Installation
#group, #installation_image, #to_s
Methods included from Shared::Deletable
Constructor Details
#initialize(location, client) ⇒ Installation
Returns a new instance of Installation.
36 37 38 39 40 41 |
# File 'lib/vas/tc_server/installations.rb', line 36 def initialize(location, client) super(location, client, InstallationImage, Group) @runtime_versions = details['runtime-versions'] @templates_location = Util::LinkUtils.get_link_href(details, 'templates') 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 |
Instance Method Details
#instances ⇒ Instance[]
Returns the instances that are using the installation.
52 53 54 |
# File 'lib/vas/tc_server/installations.rb', line 52 def instances @instances ||= create_resources_from_links('group-instance', Instance) end |
#reload ⇒ void
This method returns an undefined value.
Reloads the installation’s details from the server
46 47 48 49 |
# File 'lib/vas/tc_server/installations.rb', line 46 def reload super @instances = nil end |