Module: ImportTools::Task::Include
- Included in:
- HammerCLIImport::BaseCommand
- Defined in:
- lib/hammer_cli_import/importtools.rb
Instance Method Summary collapse
-
#annotate_tasks(uuids) ⇒ Object
- uuid
-
-> => {:finished => bool, :progress => Float}.
Instance Method Details
#annotate_tasks(uuids) ⇒ Object
- uuid
-
-> => {:finished => bool, :progress => Float}
130 131 132 133 134 135 136 137 |
# File 'lib/hammer_cli_import/importtools.rb', line 130 def annotate_tasks(uuids) ret = {} get_tasks_statuses(uuids).each do |uuid, stat| ret[uuid] = { :finished => stat['state'] == 'stopped', :progress => stat['progress']} end ret end |