Class: OvirtSDK4::GlusterHooksService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#hook_service(id) ⇒ GlusterHookService
Locates the
hookservice. -
#list(opts = {}) ⇒ Array<GlusterHook>
Returns the list of hooks.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#hook_service(id) ⇒ GlusterHookService
Locates the hook service.
11472 11473 11474 |
# File 'lib/ovirtsdk4/services.rb', line 11472 def hook_service(id) GlusterHookService.new(self, id) end |
#list(opts = {}) ⇒ Array<GlusterHook>
Returns the list of hooks.
The order of the returned list of hooks isn’t guaranteed.
11461 11462 11463 |
# File 'lib/ovirtsdk4/services.rb', line 11461 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 |
# File 'lib/ovirtsdk4/services.rb', line 11483 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return hook_service(path) end return hook_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |