lib/sigh/repair.rb in sigh-0.10.7 vs lib/sigh/repair.rb in sigh-0.10.8
- old
+ new
@@ -5,11 +5,11 @@
Spaceship.login(Sigh.config[:username], nil)
Spaceship.select_team
Helper.log.info "Successfully logged in"
# Select all 'Invalid' or 'Expired' provisioning profiles
- broken_profiles = Spaceship.provisioning_profile.all.find_all do |profile|
+ broken_profiles = Spaceship.provisioning_profile.all.find_all do |profile|
(profile.status == "Invalid" or profile.status == "Expired")
end
if broken_profiles.count == 0
Helper.log.info "All provisioning profiles are valid, nothing to do".green
@@ -25,6 +25,6 @@
end
Helper.log.info "Successfully repaired #{broken_profiles.count} provisioning profiles".green
end
end
-end
\ No newline at end of file
+end