Class: OvirtSDK4::VmApplicationsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#application_service(id) ⇒ VmApplicationService
Returns a reference to the service that provides information about a specific application.
-
#list(opts = {}) ⇒ Array<Application>
Returns a list of applications installed in the virtual machine.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#application_service(id) ⇒ VmApplicationService
Returns a reference to the service that provides information about a specific application.
29550 29551 29552 |
# File 'lib/ovirtsdk4/services.rb', line 29550 def application_service(id) VmApplicationService.new(self, id) end |
#list(opts = {}) ⇒ Array<Application>
Returns a list of applications installed in the virtual machine.
The order of the returned list of applications isn’t guaranteed.
29539 29540 29541 |
# File 'lib/ovirtsdk4/services.rb', line 29539 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 |
# File 'lib/ovirtsdk4/services.rb', line 29561 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return application_service(path) end return application_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |