lib/snapshot/reports_generator.rb in snapshot-1.6.0 vs lib/snapshot/reports_generator.rb in snapshot-1.7.0

- old
+ new

@@ -2,11 +2,11 @@ require 'fastimage' module Snapshot class ReportsGenerator def generate - Helper.log.info "Generating HTML Report" + UI.message "Generating HTML Report" screens_path = Snapshot.config[:output_directory] @data = {} @@ -32,10 +32,10 @@ export_path = "#{screens_path}/screenshots.html" File.write(export_path, html) export_path = File.expand_path(export_path) - Helper.log.info "Successfully created HTML file with an overview of all the screenshots: '#{export_path}'".green + UI.success "Successfully created HTML file with an overview of all the screenshots: '#{export_path}'" system("open '#{export_path}'") unless Snapshot.config[:skip_open_summary] end private