Class: WebServer::WebServer

Inherits:
Object
  • Object
show all
Defined in:
lib/vas/web_server/web_server.rb

Overview

The entry point to the API for administering vFabric Web Server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, client) ⇒ WebServer

Returns a new instance of WebServer.



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

def initialize(location, client)

  json = client.get(location)
  
  @groups = Groups.new(Util::LinkUtils.get_link_href(json, 'groups'), client)
  @installation_images = InstallationImages.new(Util::LinkUtils.get_link_href(json, 'installation-images'), client)
  @nodes = Nodes.new(Util::LinkUtils.get_link_href(json, 'nodes'), client)
end

Instance Attribute Details

#groupsGroups (readonly)

Returns the Web Server groups.

Returns:

  • (Groups)

    the Web Server groups



24
25
26
# File 'lib/vas/web_server/web_server.rb', line 24

def groups
  @groups
end

#installation_imagesInstallationImages (readonly)

Returns the Web Server installation images.

Returns:



27
28
29
# File 'lib/vas/web_server/web_server.rb', line 27

def installation_images
  @installation_images
end

#nodesNodes (readonly)

Returns the Web Server Nodes.

Returns:

  • (Nodes)

    the Web Server Nodes



30
31
32
# File 'lib/vas/web_server/web_server.rb', line 30

def nodes
  @nodes
end