Class: TYCiCore::TYGit
- Inherits:
-
Object
- Object
- TYCiCore::TYGit
- Defined in:
- lib/tuya/ci/core/git/git_tuya_ci.rb
Class Method Summary collapse
Class Method Details
.checkout_custom_branch(target_path, tag, new_branch, temp) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/tuya/ci/core/git/git_tuya_ci.rb', line 3 def self.checkout_custom_branch(target_path, tag, new_branch, temp) puts "Checkout custom branch: #{new_branch} base on: #{tag} path: #{target_path} workspace: #{temp}" FileUtils.cd TYUtil::TYFile.folder_copy(target_path, temp) TYCiCore::Git.git_tag_checkout tag TYCiCore::Git.git_checkout_branch new_branch end |