Class: Pindo::TaskSystem::JPSResignTask
- Defined in:
- lib/pindo/module/task/model/jps_resign_task.rb
Overview
JPS 重签名任务从 JPS 平台下载应用并使用指定证书重签名
Instance Attribute Summary collapse
-
#app_info_obj ⇒ Object
readonly
Returns the value of attribute app_info_obj.
-
#cert_id ⇒ Object
readonly
Returns the value of attribute cert_id.
-
#send_flag ⇒ Object
readonly
Returns the value of attribute send_flag.
-
#version_info ⇒ Object
readonly
Returns the value of attribute version_info.
Attributes inherited from PindoTask
#callbacks_setup, #context, #created_at, #dependencies, #error, #finished_at, #id, #max_retry_count, #metadata, #name, #priority, #result, #retry_count, #retry_delay, #retry_mode, #started_at, #status, #type
Class Method Summary collapse
- .default_retry_count ⇒ Object
- .default_retry_delay ⇒ Object
-
.default_retry_mode ⇒ Object
重试配置.
- .task_type ⇒ Object
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ JPSResignTask
constructor
初始化 JPS 重签名任务.
- #validate ⇒ Object
Methods inherited from PindoTask
#before_retry, #cancel, #cancelled?, #check_cancelled!, #do_task, #execution_time, #finished?, #on, #reset_for_retry, #retryable?, #running?, #should_retry?
Constructor Details
#initialize(options = {}) ⇒ JPSResignTask
初始化 JPS 重签名任务
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 35 def initialize( = {}) @app_info_obj = [:app_info_obj] @project_name = [:project_name] @cert_id = [:cert_id] @send_flag = [:send_flag] || false @version_info = nil # 设置重签名任务的优先级为 LOW,确保在上传任务之后执行 [:priority] ||= TaskPriority::LOW super("JPS 重签名", ) end |
Instance Attribute Details
#app_info_obj ⇒ Object (readonly)
Returns the value of attribute app_info_obj.
10 11 12 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 10 def app_info_obj @app_info_obj end |
#cert_id ⇒ Object (readonly)
Returns the value of attribute cert_id.
10 11 12 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 10 def cert_id @cert_id end |
#send_flag ⇒ Object (readonly)
Returns the value of attribute send_flag.
10 11 12 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 10 def send_flag @send_flag end |
#version_info ⇒ Object (readonly)
Returns the value of attribute version_info.
10 11 12 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 10 def version_info @version_info end |
Class Method Details
.default_retry_count ⇒ Object
21 22 23 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 21 def self.default_retry_count 2 # 默认可以重试 2 次 end |
.default_retry_delay ⇒ Object
25 26 27 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 25 def self.default_retry_delay 10 # 默认延迟 10 秒 end |
.default_retry_mode ⇒ Object
重试配置
17 18 19 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 17 def self.default_retry_mode RetryMode::DELAYED # 延迟重试 end |
.task_type ⇒ Object
12 13 14 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 12 def self.task_type :jps_resign end |
Instance Method Details
#validate ⇒ Object
48 49 50 51 |
# File 'lib/pindo/module/task/model/jps_resign_task.rb', line 48 def validate # app_info_obj 可以延迟获取,不在这里验证 true end |