lib/pilot/tester_exporter.rb in pilot-1.2.1 vs lib/pilot/tester_exporter.rb in pilot-1.3.0

- old
+ new

@@ -7,10 +7,16 @@ raise "Export file path is required".red unless options[:testers_file_path] start(options) require 'csv' - testers = Spaceship::Tunes::Tester::External.all + app_filter = (config[:apple_id] || config[:app_identifier]) + if app_filter + app = Spaceship::Application.find(app_filter) + testers = Spaceship::Tunes::Tester::External.all_by_app(app.apple_id) + else + testers = Spaceship::Tunes::Tester::External.all + end file = config[:testers_file_path] CSV.open(file, "w") do |csv| csv << ['First', 'Last', 'Email', 'Devices', 'Groups', 'Installed Version', 'Install Date']