Module: ExportManager
- Defined in:
- lib/teuton/case_manager/export_manager.rb
Overview
ExportManager#run
Class Method Summary collapse
Class Method Details
.run(main_report, cases, args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/teuton/case_manager/export_manager.rb', line 7 def self.run(main_report, cases, args) # default :mode=>:all, :format=>:txt format = args[:format] || Application.instance.default[:format] mode = args[:mode] || :all # Export case reports if i[details all].include? mode threads = [] cases.each { |c| threads << Thread.new { c.export format } } threads.each(&:join) end # Export resume report main_report.export_resume format if i[resume all].include? mode end |