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.
29715 29716 29717 |
# File 'lib/ovirtsdk4/services.rb', line 29715 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.
29704 29705 29706 |
# File 'lib/ovirtsdk4/services.rb', line 29704 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 |
# File 'lib/ovirtsdk4/services.rb', line 29726 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 |