lib/pilot/tester_exporter.rb in pilot-1.4.1 vs lib/pilot/tester_exporter.rb in pilot-1.5.0
- old
+ new
@@ -2,11 +2,11 @@
require "pilot/tester_util"
module Pilot
class TesterExporter < Manager
def export_testers(options)
- raise "Export file path is required".red unless options[:testers_file_path]
+ UI.user_error!("Export file path is required") unless options[:testers_file_path]
start(options)
require 'csv'
app_filter = (config[:apple_id] || config[:app_identifier])
@@ -35,10 +35,10 @@
pretty_date = tester.pretty_install_date || ""
csv << [tester.first_name, tester.last_name, tester.email, tester.devices.count, group_names, install_version, pretty_date]
end
- Helper.log.info "Successfully exported CSV to #{file}".green
+ UI.success("Successfully exported CSV to #{file}")
end
end
end
end