Class: YKFastlane::Archive

Inherits:
SubCommandBase show all
Includes:
ArchiveHelper
Defined in:
lib/actions/archive.rb

Constant Summary

Constants included from ArchiveHelper

YKFastlane::ArchiveHelper::K_archiveEnv_config_fir, YKFastlane::ArchiveHelper::K_archiveEnv_config_pgyer, YKFastlane::ArchiveHelper::K_archiveEnv_config_tf, YKFastlane::ArchiveHelper::K_archiveEnv_firApiToken, YKFastlane::ArchiveHelper::K_archiveEnv_pgyer_api, YKFastlane::ArchiveHelper::K_archiveEnv_pgyer_user, YKFastlane::ArchiveHelper::K_archiveEnv_tf_account, YKFastlane::ArchiveHelper::K_archiveEnv_tf_password, YKFastlane::ArchiveHelper::YKARCHIVE_ENV_PATH, YKFastlane::ArchiveHelper::YKARCHIVE_PRODUCT_PATH

Instance Method Summary collapse

Methods included from ArchiveHelper

#list_user_map, #load_archive_config_dict, #update_archive_map, update_archive_map

Methods inherited from SubCommandBase

banner, exit_on_failure?, subcommand_prefix

Instance Method Details

#display_product_pathObject



13
14
15
# File 'lib/actions/archive.rb', line 13

def display_product_path()
  YKFastlane::Tools.UI(YKARCHIVE_PRODUCT_PATH)
end

#firObject



123
124
125
126
127
128
129
130
131
132
# File 'lib/actions/archive.rb', line 123

def fir()
  puts "archive_fir"
  if options[:fir_api_token].blank?
    dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_fir)
    options.update(dict)
  end

  code = YKFastlaneExecute.executeFastlaneLane("archive_fir", options)
  exit(code) unless code == 0
end

#pgyerObject



101
102
103
104
105
106
107
108
109
110
111
# File 'lib/actions/archive.rb', line 101

def pgyer()
  puts "archive_pgyer"

  if options[:pgyer_user].blank? || options[:pgyer_api].blank?
    dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_pgyer)
    options.update(dict)
  end

  code = YKFastlaneExecute.executeFastlaneLane("archive_pgyer", options)
  exit(code) unless code == 0
end

#tfObject



77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/actions/archive.rb', line 77

def tf()
  puts "archive_tf"
  if options[:user_name].blank? || options[:pass_word].blank?
    apple_dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf)
    if apple_dict != nil && apple_dict.blank?() == false
      options.update(apple_dict)
    end
  end

  code = YKFastlaneExecute.executeFastlaneLane("archive_tf", options)
  exit(code) unless code == 0
end

#upload_tfObject



55
56
57
58
59
60
61
62
63
64
# File 'lib/actions/archive.rb', line 55

def upload_tf()
  puts "upload_tf"
  if options[:user_name].blank? || options[:pass_word].blank?
    apple_info = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf)
    options.update(apple_dict)
  end

  code = YKFastlaneExecute.executeFastlaneLane("upload_ipa_to_tf", options)
  exit(code) unless code == 0
end