Class: Pindo::Command::Dev::Confuseproj
- Inherits:
-
Pindo::Command::Dev
- Object
- CLAide::Command
- Pindo::Command
- Pindo::Command::Dev
- Pindo::Command::Dev::Confuseproj
- Defined in:
- lib/pindo/command/dev/confuseproj.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_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) ⇒ Confuseproj
constructor
A new instance of Confuseproj.
- #run ⇒ Object
- #validate! ⇒ Object
Methods included from Pindo::CommonConfuseProj
#_load_symash_plugin, #_push_symash_arg, #config_confuse_project, #config_symash, #confuse_version_type, #external_sources, #install_symash, #process_config_setting, #process_root_setting, #update_symash_config
Methods included from Hashhelper
#deepcopy_hash, #deepcopy_hash_struct, #init_hash_value_wihtout_add_key, #init_hash_value_wihtout_exludekeys, #minus_hash
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
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) ⇒ Confuseproj
Returns a new instance of Confuseproj.
41 42 43 |
# File 'lib/pindo/command/dev/confuseproj.rb', line 41 def initialize(argv) super end |
Class Method Details
.options ⇒ Object
36 37 38 39 |
# File 'lib/pindo/command/dev/confuseproj.rb', line 36 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/pindo/command/dev/confuseproj.rb', line 49 def run current_dir = Dir.pwd current_project_dir = current_dir puts "+++++ #{current_project_dir}" app_config_dir = clong_buildconfig_repo(repo_name: @deploy_repo_name) clang_repo_dir = clone_devclang_repo # if !File.exist?(clang_repo_dir) puts "#{clang_repo_dir}" puts "There is no clang tool !!! dev confuseproj" # return # end symash_type = confuse_version_type(path:app_config_dir, default_type:"symash2") if @newconfuse_flag symash_type = "symash2" end confuse_tool_path = File.join(clang_repo_dir, symash_type) puts "Confuse Tool Path: #{confuse_tool_path}" puts "Clang Path: #{confuse_tool_path}" install_symash(clang_path:confuse_tool_path) current_project_fullname = "" Dir.foreach(current_dir) do |file| if file =~ /(.*).xcodeproj/ current_project_fullname = file break; end end old_proj_name = File.basename(current_project_fullname, ".xcodeproj") config_confuse_project(clang_path:confuse_tool_path, project_name:old_proj_name, project_path:current_project_dir, default_type:symash_type) config_symash(clang_path:confuse_tool_path, project_path:current_project_dir, confuse_type:@confuse_type, default_type:symash_type) force_config = nil force_config = {} # force_config['BACKEND_SYMASH_DISABLE_SPL'] = true force_config['BACKEND_SYMASH_DISABLE_BCF_PROB'] = 50 update_symash_config(app_config_dir:app_config_dir, project_path:current_project_dir, confuse_type:@confuse_type, force_config: force_config) if symash_type == "symash2" Dir.chdir(current_project_dir) puts "+++++ #{current_project_dir}" service_path = File.join(confuse_tool_path, "/Applications/SymashX.app/Contents/MacOS/symashctl") command1 = "cd #{current_project_dir} && " + service_path + " stop" command2 = "cd #{current_project_dir} && " + service_path + " start -export" puts "Command: #{command1}" system command1 puts "Command: #{command2}" system command2 Dir.chdir(current_project_dir) puts "Done !" end end |
#validate! ⇒ Object
45 46 47 |
# File 'lib/pindo/command/dev/confuseproj.rb', line 45 def validate! super end |