Class: Pindo::TaskSystem::IosBuildAdhocTask

Inherits:
IosBuildTask show all
Defined in:
lib/pindo/module/task/model/build/ios_build_adhoc_task.rb

Overview

iOS AdHoc 模式构建任务使用 AdHoc 证书编译 iOS 工程包含 AdHoc 特有的准备工作(版本号增加、Tag 创建、Quark/Swark 处理等)

Instance Attribute Summary

Attributes inherited from BuildTask

#mode, #output_path, #platform, #project_path

Attributes inherited from PindoTask

#callbacks_setup, #context, #created_at, #data_dependencies, #dependencies, #error, #finished_at, #id, #max_retry_count, #metadata, #name, #priority, #result, #retry_count, #retry_delay, #retry_mode, #started_at, #status, #task_key, #task_manager, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BuildTask

create_android_task, create_ios_task, create_task, create_web_task, default_retry_count, default_retry_delay, default_retry_mode, normalize_mode, normalize_platform, task_type, task_type_name

Methods inherited from PindoTask

#before_retry, #cancel, #cancelled?, #check_cancelled!, #data_param, default_retry_count, default_retry_delay, default_retry_mode, #do_task, #execution_time, #finished?, #get_all_data_params, #get_all_data_params_by_key, #get_all_dependencies_results, #get_data_param, #get_data_param_by_key, #get_dependency_result, #get_dependency_task, #on, #primary_data_param, #reset_for_retry, #retryable?, #running?, #should_retry?, task_type, #validate

Constructor Details

#initialize(options = {}) ⇒ IosBuildAdhocTask

Returns a new instance of IosBuildAdhocTask.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/pindo/module/task/model/build/ios_build_adhoc_task.rb', line 25

def initialize(options = {})
  @bundle_id = options[:bundle_id]
  @proj_name = options[:proj_name]
  @upload_flag = options[:upload] || false
  @send_flag = options[:send] || false
  @macos_flag = false

  # 保存 Unity 根目录路径(用于查找 config.json)
  @unity_root_path = options[:unity_root_path]

  options[:platform] = :ios
  options[:mode] = :adhoc
  super("构建 IPA (AdHoc)", options)
end

Class Method Details

.task_keyObject

任务键



21
22
23
# File 'lib/pindo/module/task/model/build/ios_build_adhoc_task.rb', line 21

def self.task_key
  :ios_build_adhoc
end