Class: WebServer::Node

Inherits:
Shared::GroupableNode show all
Defined in:
lib/vas/web_server/nodes.rb

Overview

A Web Server node

Instance Attribute Summary collapse

Attributes inherited from Shared::Node

#agent_home, #architecture, #host_names, #ip_addresses, #ipv4_addresses, #ipv6_addresses, #metadata, #operating_system

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::GroupableNode

#groups, #reload

Methods inherited from Shared::Node

#reload, #update

Constructor Details

#initialize(location, client) ⇒ Node

Returns a new instance of Node.



35
36
37
38
39
# File 'lib/vas/web_server/nodes.rb', line 35

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

  @node_instances_location = Util::LinkUtils.get_link_href(details, 'node-instances')
end

Instance Attribute Details

#instancesNodeInstances (readonly)

Returns the node’s instances.

Returns:



42
43
44
# File 'lib/vas/web_server/nodes.rb', line 42

def instances
  @instances
end

Instance Method Details

#to_sString

Returns a string representation of the node.

Returns:

  • (String)

    a string representation of the node



47
48
49
# File 'lib/vas/web_server/nodes.rb', line 47

def to_s
  "#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' ipv4_addresses='#{ipv4_addresses}' ipv6_addresses='#{ipv6_addresses}' operating_system='#{operating_system}' architecture='#{architecture}' agent_home='#{agent_home}' metedata='#{}'>"
end