Class: Shared::PendingConfigurations Abstract

Inherits:
MutableCollection show all
Defined in:
lib/vas/shared/pending_configurations.rb

Overview

This class is abstract.

A collection of an instance’s pending configurations

Instance Attribute Summary

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from MutableCollection

#create_image

Methods inherited from Collection

#each, #initialize, #reload

Constructor Details

This class inherits a constructor from Shared::Collection

Instance Method Details

#create(path, content) ⇒ PendingConfiguration

Creates a new configuration. The configuration will be pending until its instance is started at which point the configuration will become live

Parameters:

  • path (String)

    the configuration’s path

  • content (String)

    the configuration’s content

Returns:



28
29
30
# File 'lib/vas/shared/pending_configurations.rb', line 28

def create(path, content)
  create_image(content, { :path => path })
end