Class: TcServer::NodeInstance
- Inherits:
-
Shared::NodeInstance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::NodeInstance
- TcServer::NodeInstance
- Defined in:
- lib/vas/tc_server/node_instances.rb
Overview
A tc Server node instance
Instance Attribute Summary collapse
-
#applications ⇒ NodeApplications
readonly
The instance’s applications.
-
#layout ⇒ String
readonly
The instance’s layout.
-
#runtime_version ⇒ String
readonly
The version of runtime used by the instance.
-
#services ⇒ Hash
readonly
The instance’s services.
Attributes inherited from Shared::NodeInstance
#group_instance, #logs, #name, #node
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ NodeInstance
constructor
A new instance of NodeInstance.
Methods inherited from Shared::NodeInstance
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ NodeInstance
Returns a new instance of NodeInstance.
45 46 47 48 49 50 51 52 |
# File 'lib/vas/tc_server/node_instances.rb', line 45 def initialize(location, client) super(location, client, Node, Logs, Instance, 'group-instance') @layout = details["layout"] @runtime_version = details["runtime-version"] @services = details["services"] @applications = NodeApplications.new(Util::LinkUtils.get_link_href(details, "node-applications"), client) end |
Instance Attribute Details
#applications ⇒ NodeApplications (readonly)
Returns the instance’s applications.
42 43 44 |
# File 'lib/vas/tc_server/node_instances.rb', line 42 def applications @applications end |
#layout ⇒ String (readonly)
Returns the instance’s layout.
33 34 35 |
# File 'lib/vas/tc_server/node_instances.rb', line 33 def layout @layout end |
#runtime_version ⇒ String (readonly)
Returns the version of runtime used by the instance.
36 37 38 |
# File 'lib/vas/tc_server/node_instances.rb', line 36 def runtime_version @runtime_version end |
#services ⇒ Hash (readonly)
Returns the instance’s services.
39 40 41 |
# File 'lib/vas/tc_server/node_instances.rb', line 39 def services @services end |