Module: ExportManager
- Defined in:
- lib/teuton/case_manager/export_manager.rb
Class Method Summary collapse
-
.run(main_report, cases, args) ⇒ Object
Run export function.
Class Method Details
.run(main_report, cases, args) ⇒ Object
Run export function
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/teuton/case_manager/export_manager.rb', line 11 def self.run(main_report, cases, args) = strings2symbols(args) if [:format].nil? [:format] = Application.instance.default[:format] end # Step 1: Export case reports threads = [] cases.each { |c| threads << Thread.new { c.export() } } threads.each(&:join) # Step 2: Export resume report main_report.export_resume() # Step 3: Preserve files if required preserve_files if [:preserve] == true end |