Method: RbVmomi::VIM::Task#child_tasks
- Defined in:
- lib/rbvmomi/vim/Task.rb
#child_tasks ⇒ Array
Get child tasks of this task.
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rbvmomi/vim/Task.rb', line 57 def child_tasks tm = _connection.serviceContent.taskManager col = tm.CreateCollectorForTasks(:filter => { :rootTaskKey => [self.info.key], }) # XXX: Likely this is not enough and we need to collect pages other # than the latest. tasks = col.latestPage.map{|x| x.task} col.DestroyCollector() tasks end |