Class: Shared::PendingConfiguration

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

Overview

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, #instance, #to_s

Instance Method Details

#content=(new_content) ⇒ Object

Updates the configuration to contain new_content



33
34
35
36
# File 'lib/vas/shared/pending_configuration.rb', line 33

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