lib/slowlane/portal/profile.rb in slowlane-1.2.1 vs lib/slowlane/portal/profile.rb in slowlane-1.2.2
- old
+ new
@@ -50,10 +50,16 @@
puts table
end
desc "add_device","add_device <bundle_id> <device_udid>"
- def device_add(bundle_id,device_udid)
+ def add_device(bundle_id,device_udid)
+ c=Utils.credentials(options)
+ Spaceship::Portal.login(c.username,c.password)
+
+ t=Utils.team(options)
+ Spaceship::Portal.client.team_id=t
+
puts "Note: only adding devices to distribution adhoc profiles"
device=Spaceship.device.find_by_udid(device_udid)
if device.nil?
puts "No device with udid #{device_udid} found"