Class: Sqlfire::Installation

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

Overview

A SQLFire 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/sqlfire/installations.rb', line 33

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

Instance Method Details

#agent_instancesAgentInstance[]

Returns the agent instances that are using the installation.

Returns:

  • (AgentInstance[])

    the agent instances that are using the installation



45
46
47
# File 'lib/vas/sqlfire/installations.rb', line 45

def agent_instances
  @agent_instances ||= create_resources_from_links('agent-group-instance', AgentInstance);
end

#locator_instancesLocatorInstance[]

Returns the locator instances that are using the installation.

Returns:

  • (LocatorInstance[])

    the locator instances that are using the installation



50
51
52
# File 'lib/vas/sqlfire/installations.rb', line 50

def locator_instances
  @locator_instances ||= create_resources_from_links('locator-group-instance', LocatorInstance);
end

#reloadObject



37
38
39
40
41
42
# File 'lib/vas/sqlfire/installations.rb', line 37

def reload
  super
  @agent_instances = nil
  @locator_instances = nil
  @server_instances = nil
end

#server_instancesServerInstance[]

Returns the server instances that are using the installation.

Returns:

  • (ServerInstance[])

    the server instances that are using the installation



55
56
57
# File 'lib/vas/sqlfire/installations.rb', line 55

def server_instances
  @server_instances ||= create_resources_from_links('server-group-instance', ServerInstance);
end