Skip to content

Instantly share code, notes, and snippets.

@tidusIO
Created November 2, 2017 13:33
Show Gist options
  • Save tidusIO/5ceeac25f625106ec8e5e5e2f41b7729 to your computer and use it in GitHub Desktop.
Save tidusIO/5ceeac25f625106ec8e5e5e2f41b7729 to your computer and use it in GitHub Desktop.
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