Class: WebServer::Installation

Inherits:
Shared::Installation show all
Defined in:
lib/vas/web_server/installations.rb

Overview

A Web Server installation

Instance Attribute Summary

Attributes inherited from Shared::Installation

#version

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::Installation

#group, #installation_image, #to_s

Methods included from Shared::Deletable

#delete

Constructor Details

#initialize(location, client) ⇒ Installation

Returns a new instance of Installation.



33
34
35
# File 'lib/vas/web_server/installations.rb', line 33

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

Instance Method Details

#instancesInstance[]

Returns the instances that are using the installation.

Returns:

  • (Instance[])

    the instances that are using the installation



46
47
48
# File 'lib/vas/web_server/installations.rb', line 46

def instances
  @instances ||= create_resources_from_links('group-instance', Instance)
end

#reloadvoid

This method returns an undefined value.

Reloads the installation’s details from the server



40
41
42
43
# File 'lib/vas/web_server/installations.rb', line 40

def reload
  super
  @instances = nil
end