Class: RVideo::Reporter

Inherits:
Object
  • Object
show all
Includes:
ERB::Util
Defined in:
lib/rvideo/reporter.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



7
8
9
# File 'lib/rvideo/reporter.rb', line 7

def self.run
  Reporter.new.run
end

Instance Method Details

#runObject



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