Class: WebServer::Instances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- WebServer::Instances
- Defined in:
- lib/vas/web_server/instances.rb
Overview
Used to enumerate, create, and delete Web Server instances
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(installation, name, properties = nil) ⇒ Instance
Creates a new instance.
-
#initialize(location, client) ⇒ Instances
constructor
A new instance of Instances.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
Instance Method Details
#create(installation, name, properties = nil) ⇒ Instance
Creates a new instance
34 35 36 37 38 39 40 |
# File 'lib/vas/web_server/instances.rb', line 34 def create(installation, name, properties = nil) payload = { :installation => installation.location, :name => name} payload[:properties] = properties unless properties.nil? super(payload, 'group-instance') end |