Class: YKFastlane::Archive
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- YKFastlane::Archive
- 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_path ⇒ Object
13 14 15 |
# File 'lib/actions/archive.rb', line 13 def display_product_path() YKFastlane::Tools.UI(YKARCHIVE_PRODUCT_PATH) end |
#fir ⇒ Object
123 124 125 126 127 128 129 130 131 132 |
# File 'lib/actions/archive.rb', line 123 def fir() puts "archive_fir" if [:fir_api_token].blank? dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_fir) .update(dict) end code = YKFastlaneExecute.executeFastlaneLane("archive_fir", ) exit(code) unless code == 0 end |
#pgyer ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/actions/archive.rb', line 101 def pgyer() puts "archive_pgyer" if [:pgyer_user].blank? || [:pgyer_api].blank? dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_pgyer) .update(dict) end code = YKFastlaneExecute.executeFastlaneLane("archive_pgyer", ) exit(code) unless code == 0 end |
#tf ⇒ Object
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 [:user_name].blank? || [:pass_word].blank? apple_dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf) if apple_dict != nil && apple_dict.blank?() == false .update(apple_dict) end end code = YKFastlaneExecute.executeFastlaneLane("archive_tf", ) exit(code) unless code == 0 end |
#upload_tf ⇒ Object
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/actions/archive.rb', line 55 def upload_tf() puts "upload_tf" if [:user_name].blank? || [:pass_word].blank? apple_info = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf) .update(apple_dict) end code = YKFastlaneExecute.executeFastlaneLane("upload_ipa_to_tf", ) exit(code) unless code == 0 end |