Class: Shared::LiveConfiguration Abstract

Inherits:
Configuration show all
Defined in:
lib/vas/shared/live_configuration.rb

Overview

This class is abstract.

A live configuration file in an instance

Instance Attribute Summary

Attributes inherited from Configuration

#path, #size

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Configuration

#content, #instance, #to_s

Constructor Details

#initialize(location, client, instance_type, instance_class, node_live_configuration_class) ⇒ LiveConfiguration

Returns a new instance of LiveConfiguration.



23
24
25
26
# File 'lib/vas/shared/live_configuration.rb', line 23

def initialize(location, client, instance_type, instance_class, node_live_configuration_class)
  super(location, client, instance_type, instance_class)
  @node_live_configuration_class = node_live_configuration_class
end

Instance Method Details

#node_configurationsNodeLiveConfiguration[]

Returns the configuration’s node configurations.

Returns:

  • (NodeLiveConfiguration[])

    the configuration’s node configurations



35
36
37
38
# File 'lib/vas/shared/live_configuration.rb', line 35

def node_configurations
  @node_live_configurations ||= create_resources_from_links('node-live-configuration',
                                                            @node_live_configuration_class)
end

#reloadObject

Reloads the live configuration’s details from the server



29
30
31
32
# File 'lib/vas/shared/live_configuration.rb', line 29

def reload
  super
  @node_live_configurations = nil
end