Class: Pindo::Command::Deploy::Check

Inherits:
Pindo::Command::Deploy show all
Includes:
Pindo::Command::DeployOptions
Defined in:
lib/pindo/command/deploy/check.rb

Instance Attribute Summary

Attributes included from Pindo::Command::DeployOptions

#additional_args, #apple_id, #args_adhoc_flag, #args_appconfig, #args_appconfig_dir, #args_appconfig_fullname, #args_apple_id, #args_appstore_flag, #args_array, #args_bundle_id, #args_dev_flag, #args_macos_flag, #args_repo_name, #argv_temp, #bundle_id, #bundle_id_extension, #bundle_id_extensionad, #bundle_id_extensionporn, #bundle_id_imessage, #bundle_id_keyboard, #bundle_id_pushcontent, #bundle_id_pushservice, #bundle_id_siri, #bundle_id_siriui, #bundle_id_watchapp, #bundle_id_watchapp_extension, #bundle_id_widget, #config_json, #deploy_acount_id, #deploy_group_id, #deploy_icloud_id, #deploy_identifier, #deploy_identifier_extension, #deploy_identifier_extensionad, #deploy_identifier_extensionporn, #deploy_identifier_imessage, #deploy_identifier_keyboard, #deploy_identifier_pushcontent, #deploy_identifier_pushservice, #deploy_identifier_siri, #deploy_identifier_siriui, #deploy_identifier_watchapp, #deploy_identifier_watchapp_extension, #deploy_identifier_widget, #deploy_repo_name, #group_id, #icloud_id, #newconfuse_flag, #oldconfuse_flag

Instance Method Summary collapse

Methods included from Pindo::Command::DeployOptions

#check_config_version, #get_build_type_args, #get_bundle_id_map, #get_confuse_type_args, #init_deploy_params, #init_develop_params, #initialize, options, #print_params_info, #validate!

Instance Method Details

#check_iap_statusObject



84
85
86
# File 'lib/pindo/command/deploy/check.rb', line 84

def check_iap_status

end

#get_boss_configObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/pindo/command/deploy/check.rb', line 50

def get_boss_config

    app_version = @config_json["app_info"]["app_version"]
    bundle_id = @deploy_identifier
    platform = @config_json["app_setting"]["kGUKeyAppPlatform"] || @config_json["app_setting"]["app_platform"] 
    apptype = @config_json["project_info"]["app_type"] 

    boss_client = BossClient.new(app_type:apptype, is_dev:false)
    data_json =  Pindo::Command::Utils::Boss::get_config(boss_client:boss_client, app_version:app_version, bundle_id:bundle_id, platform:platform)
    is_in_review_status = BossClient::is_in_review_status_with_confirm_key(confirm_key:data_json["data"]["confirm_key"])

    if is_in_review_status
        puts "  当前设备,当前参数是审核状态".bold.blue
    else
        puts "  当前设备,当前参数是非审核状态".bold.red
    end

    return data_json["data"]
end

#runObject



39
40
41
42
43
44
45
46
47
48
# File 'lib/pindo/command/deploy/check.rb', line 39

def run
  puts "check"
  # @boss_config_client = BossConfigClient.new
  # @boss_config_client.do_login()

    set_ip_device_tgate_normal()
    
    boss_app_config = get_boss_config()

end

#set_ip_device_tgate_normalObject



71
72
73
74
75
76
77
78
79
80
81
# File 'lib/pindo/command/deploy/check.rb', line 71

def set_ip_device_tgate_normal
  @tgate_client = TgateClient.new(base_usrl:pindo_single_config.tgate_base_url, req_config:pindo_single_config.tgate_req_config)
  current_device_info = Pindo::DeviceInfo.new

  @tgate_client.post_update_gate_status(env_mode:"prod", type:"ip", to_status:"normal", device_info:current_device_info)    
  @tgate_client.post_update_gate_status(env_mode:"prod", type:"device", to_status:"normal", device_info:current_device_info)    

  response_data = @tgate_client.get_gate_status(device_info:current_device_info)

  # puts JSON.pretty_generate(response_data)
end