Created
          March 20, 2017 03:42 
        
      - 
      
- 
        Save youngshook/32cd2535e4136e2fed49255642019f2b to your computer and use it in GitHub Desktop. 
    A Ruby Script Display Apple Cert
  
        
  
    
      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
    
  
  
    
  | require 'spaceship' | |
| Spaceship.login('AppleDevID') | |
| 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