Created
November 2, 2017 13:33
-
-
Save tidusIO/5ceeac25f625106ec8e5e5e2f41b7729 to your computer and use it in GitHub Desktop.
This file contains 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
require 'spaceship' | |
Spaceship.login('{{AccountName}}') | |
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