Class: OvirtSDK4::HostHooksService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#hook_service(id) ⇒ HostHookService
Locates the
hook
service. -
#list(opts = {}) ⇒ Array<Hook>
Returns the list of hooks configured for the host.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#hook_service(id) ⇒ HostHookService
Locates the hook
service.
11152 11153 11154 |
# File 'lib/ovirtsdk4/services.rb', line 11152 def hook_service(id) HostHookService.new(self, id) end |
#list(opts = {}) ⇒ Array<Hook>
Returns the list of hooks configured for the host.
The order of the returned list of hooks isn’t guranteed.
11141 11142 11143 |
# File 'lib/ovirtsdk4/services.rb', line 11141 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 |
# File 'lib/ovirtsdk4/services.rb', line 11163 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 |