Class: Shared::PendingConfiguration Abstract

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

Overview

This class is abstract.

A configuration file that is pending and will be made live the next time its instance is started

Instance Attribute Summary

Attributes inherited from Configuration

#path, #size

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Configuration

#content, #initialize, #instance, #to_s

Constructor Details

This class inherits a constructor from Shared::Configuration

Instance Method Details

#content=(new_content) ⇒ Object

Updates the contents of the configuration

Parameters:

  • new_content (String)

    the new content



40
41
42
43
# File 'lib/vas/shared/pending_configuration.rb', line 40

def content=(new_content)
  client.post(content_location, new_content)
  @size = client.get(location)['size']
end