Created
June 23, 2016 13:18
-
-
Save tabrindle/9539d3c6caf69b06200195d94ce4ab82 to your computer and use it in GitHub Desktop.
Get all ios certs from developer portal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'spaceship' | |
Spaceship.login('[email protected]') | |
Spaceship.select_team | |
Spaceship.certificate.all.each do |cert| | |
cert_type = Spaceship::Portal::Certificate::CERTIFICATE_TYPE_IDS[cert.type_display_id].to_s.split("::")[-1] | |
puts "Cert id: #{cert.id}, name: #{cert.name}, expires: #{cert.expires.strftime("%Y-%m-%d")}, type: #{cert_type}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment