Class: Pindo::CertProcess::BaseCertOperator
- Inherits:
-
Object
- Object
- Pindo::CertProcess::BaseCertOperator
- Defined in:
- lib/pindo/module/cert/mode/base_cert_operator.rb
Overview
证书操作抽象基类定义证书创建和获取的统一接口
所有具体的证书操作类都必须继承此类,并实现以下两个方法:
-
create_and_install_certs: 创建证书并安装到本地
-
fetch_and_install_certs: 从存储后端获取证书并安装到本地
Direct Known Subclasses
CustomGitCertOperator, CustomHttpsCertOperator, MatchGitCertOperator
Instance Method Summary collapse
-
#create_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) ⇒ Array<Hash>
创建并安装证书(–renew 模式).
-
#fetch_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) ⇒ Array<Hash>
获取并安装证书(非 –renew 模式).
Instance Method Details
#create_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) ⇒ Array<Hash>
创建并安装证书(–renew 模式)
29 30 31 |
# File 'lib/pindo/module/cert/mode/base_cert_operator.rb', line 29 def create_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) raise NotImplementedError, "#{self.class.name} 必须实现 create_and_install_certs 方法" end |
#fetch_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) ⇒ Array<Hash>
获取并安装证书(非 –renew 模式)
41 42 43 |
# File 'lib/pindo/module/cert/mode/base_cert_operator.rb', line 41 def fetch_and_install_certs(apple_id:, bundle_id_array:, cert_type:, platform_type:, project_dir: nil) raise NotImplementedError, "#{self.class.name} 必须实现 fetch_and_install_certs 方法" end |