Class: Pindo::Command::Deploy::Quswauth
- Inherits:
-
Pindo::Command::Deploy
- Object
- CLAide::Command
- Pindo::Command
- Pindo::Command::Deploy
- Pindo::Command::Deploy::Quswauth
- Includes:
- Pindo::Command::DeployOptions
- Defined in:
- lib/pindo/command/deploy/quswauth.rb
Constant Summary
Constants inherited from Pindo::Command
Pindo::Command::DEFAULT_OPTIONS, Pindo::Command::DEFAULT_ROOT_OPTIONS
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
Attributes inherited from Pindo::Command
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Quswauth
constructor
A new instance of Quswauth.
- #run ⇒ Object
- #swark_authorize_run ⇒ Object
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, #print_params_info, #validate!
Methods inherited from Pindo::Command
Methods included from Funlog::Mixin
Methods included from Pindoconfig::Mixin
Methods included from Githelper
#add_branch, #add_tag, #add_tag_with_check, #clone_clang_repo, #clone_devclang_repo, #clone_pindo_common_config_repo, #clone_pindo_env_config_repo, #clong_buildconfig_repo, #get_repo_base_name, #getcode_to_dir, #git_addpush_repo, #git_latest_commit_id, #local_branch_exists?, #local_tag_exists?, #prepare_gitenv, #process_need_add_files, #remote_branch_exists?, #remote_tag_exists?, #remove_branch, #remove_tag
Methods included from Executable
capture_command, #executable, execute_command, which, which!
Constructor Details
#initialize(argv) ⇒ Quswauth
Returns a new instance of Quswauth.
29 30 31 32 |
# File 'lib/pindo/command/deploy/quswauth.rb', line 29 def initialize(argv) super @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
23 24 25 26 27 |
# File 'lib/pindo/command/deploy/quswauth.rb', line 23 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
34 35 36 37 |
# File 'lib/pindo/command/deploy/quswauth.rb', line 34 def run end |
#swark_authorize_run ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/pindo/command/deploy/quswauth.rb', line 39 def app_config_dir = File.join(File::(pindo_single_config.pindo_dir), @deploy_identifier) = File.join(app_config_dir, "swark_authorize.json") if File.exist?() =JSON.parse(File.read()) unless && ['swark_authorize_status'] command = "swark authorize " command = command + ["swark_authorize_teamid"] + "." + ["swark_authorize_bundleid"] puts puts puts command puts system command ['swark_authorize_status'] = true File.open(, "w") do |f| f.write(JSON.pretty_generate()) end git_addpush_repo(path:app_config_dir, message:"swark authorize success !!!") end end end |