Class: Build::RepoXCodeShell
- Defined in:
- lib/core_blur/repo_xcode_shell.rb
Instance Attribute Summary
Attributes inherited from RepoXCode
Attributes inherited from Repo
#branch, #gitlab_helper, #http_url, #last_commit, #page_url, #path, #pusher, #repo_path, #size, #size_format, #ssh_url, #user_email, #user_name
Instance Method Summary collapse
Methods inherited from RepoXCode
Methods inherited from Repo
#clear, #discard_pull, #git_add_stag, #git_checkout, #git_clone, #git_commit, #git_fetch, #git_pull, #git_push, #git_push_f, #git_push_tags, #git_reset_hard, #git_status, #git_tag_delete_local, #git_tag_delete_origin, #git_tag_local, #git_tag_origin, #initialize, #push_code
Constructor Details
This class inherits a constructor from Build::RepoXCode
Instance Method Details
#publish_shell(repo_module_source) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/core_blur/repo_xcode_shell.rb', line 8 def publish_shell(repo_module_source) puts "\n⏩ (#{File.basename(self.path)})发布版本到壳工程中" unless repo_module_source.build_item.publish_shell puts "本次构建 publish_shell = false 不执行发布到壳工程中" return end current = FileUtils.pwd Dir.chdir(self.path) discard_pull update_shell_yaml(repo_module_source) change = git_status if change git_add_stag commit_msg = "#ignore_scan# [Update] #{repo_module_source.pod_name} #{repo_module_source.pod_version_final}" git_commit(commit_msg) git_push end Dir.chdir(current) text = change ? "【✅ 组件发布到壳工程成功】" : "【✅ 当前组件已在到壳工程中】" pusher.push(text) end |