Class: TcServer::Applications
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- TcServer::Applications
- Defined in:
- lib/vas/tc_server/applications.rb
Overview
Used to enumerate, create, and delete applications
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(name, context_path, service, host) ⇒ Application
Creates an new application.
-
#initialize(location, client) ⇒ Applications
constructor
:nodoc:.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ Applications
:nodoc:
22 23 24 |
# File 'lib/vas/tc_server/applications.rb', line 22 def initialize(location, client) #:nodoc: super(location, client, "applications", Application) end |
Instance Method Details
#create(name, context_path, service, host) ⇒ Application
Creates an new application
34 35 36 37 38 39 40 |
# File 'lib/vas/tc_server/applications.rb', line 34 def create(name, context_path, service, host) payload = {'context-path' => context_path, :name => name, :host => host, :service => service} super(payload, 'group-application') end |