11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/rvideo/reporter.rb', line 11
def run
@current_report_path = Reporter.next_available_report_path(File.join(REPORT_PATH, 'generated_reports'))
files = available_files
recipes = available_recipes
puts "\nInput files:\n--#{files.collect { |file| File.basename(file) }.join("\n--")}"
puts "\nInput recipes:\n--#{recipes.map {|name, recipe| name }.join("\n--")}"
combinations = calculate_combinations_using recipes, files
results = mass_transcode combinations
build_report_from results
puts "Done! Report available at #{@current_report_path}"
puts "Launching report in browser..."
exec "open #{@current_report_path}/index.html"
end
|