./lib/cupertino/provisioning_portal/commands/profiles.rb in cupertino-1.3.0 vs ./lib/cupertino/provisioning_portal/commands/profiles.rb in cupertino-1.3.1
- old
+ new
@@ -209,15 +209,15 @@
output = case options.format
when :csv
CSV.generate do |csv|
csv << ["Device Name", "Device Identifier", "Active"]
-
- list.values.each do |devices|
- devices.each do |device|
- csv << [device.name, device.udid, "Y"]
- end
- end
+ list[:on].each do |device|
+ csv << [device.name, device.udid, "Y"]
+ end
+ list[:off].each do |device|
+ csv << [device.name, device.udid, "N"]
+ end
end
else
title = "Listing devices for provisioning profile #{profile.name}"
Terminal::Table.new :title => title do |t|
t << ["Device Name", "Device Identifier", "Active"]