Class: Shared::PendingConfiguration Abstract

Inherits:
Configuration show all
Includes:
Deletable
Defined in:
lib/vas/shared/pending_configurations.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 included from Deletable

#collection

Attributes inherited from Configuration

#path, #size

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods included from Deletable

#delete

Methods inherited from Configuration

#content, #initialize, #instance, #reload, #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



42
43
44
45
# File 'lib/vas/shared/pending_configurations.rb', line 42

def content=(new_content)
  client.post(content_location, new_content)
  reload
end