lib/pilot/tester_importer.rb in pilot-1.4.1 vs lib/pilot/tester_importer.rb in pilot-1.5.0
- old
+ new
@@ -1,11 +1,11 @@
require "fastlane_core"
module Pilot
class TesterImporter < Manager
def import_testers(options)
- raise "Import file path is required".red unless options[:testers_file_path]
+ UI.user_error!("Import file path is required") unless options[:testers_file_path]
start(options)
require 'csv'
@@ -21,11 +21,11 @@
end
first_name, last_name, email = row
unless email
- Helper.log.error "No email found in row: #{row}".red
+ UI.error("No email found in row: #{row}")
next
end
# Add this the existing config hash to pass it to the TesterManager
config[:first_name] = first_name
@@ -38,9 +38,9 @@
rescue
# do nothing, move on to the next row
end
end
- Helper.log.info "Successfully imported #{imported_tester_count} testers from #{file}".green
+ UI.success("Successfully imported #{imported_tester_count} testers from #{file}")
end
end
end