Ruby太空飞船(gem),撤销方法

时间:2016-03-09 11:59:10

标签: ruby

我尝试使用https://github.com/fastlane/fastlane/tree/master/spaceship

从Apple开发门户撤销证书

大多数方法工作正常,期望撤销方法:

示例:

[52] pry(main)> Spaceship::Portal::Certificate::DevelopmentPush.all

将向我列出所有developmentpush证书,

有撤销方法,但我无法弄清楚它的正确语法

测试了几种语法:

[52] pry(main)> Spaceship::Portal::Certificate::revoke_certificate!('id', 'type')

NameError: wrong constant name RevokeCertificate!
from /var/lib/gems/2.1.0/gems/spaceship-0.22.0/lib/spaceship/base.rb:153:in `const_defined?'

任何人都知道正确的语法,因为这艘宇宙飞船根本没有好的文档或参考,

提前致谢

1 个答案:

答案 0 :(得分:1)

Spaceship::Portal::Certificate::revoke_certificate!

这看起来像是在尝试方法调用。尝试:

Spaceship::Portal::Certificate.revoke!

https://github.com/fastlane/fastlane/blob/master/spaceship/lib/spaceship/portal/certificate.rb#L317

请注意:

# Revoke the certificate. You shouldn't use this method probably.