Class: Sqlfire::Installation
- Inherits:
-
Shared::Installation
- Object
- Shared::Resource
- Shared::Installation
- Sqlfire::Installation
- Defined in:
- lib/vas/sqlfire/installations.rb
Overview
A SQLFire installation
Instance Attribute Summary
Attributes inherited from Shared::Installation
Attributes included from Shared::Deletable
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#agent_instances ⇒ AgentInstance[]
The agent instances that are using the installation.
-
#initialize(location, client) ⇒ Installation
constructor
A new instance of Installation.
-
#locator_instances ⇒ LocatorInstance[]
The locator instances that are using the installation.
- #reload ⇒ Object
-
#server_instances ⇒ ServerInstance[]
The server instances that are using the installation.
Methods inherited from Shared::Installation
#group, #installation_image, #to_s
Methods included from Shared::Deletable
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_instances ⇒ AgentInstance[]
Returns 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_instances ⇒ LocatorInstance[]
Returns 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 |
#reload ⇒ Object
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_instances ⇒ ServerInstance[]
Returns 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 |