class TYCiCore::Lib
Attributes
branch[RW]
project[RW]
repo[RW]
version[RW]
Public Instance Methods
create(type, target_path, tag, new_branch, temp)
click to toggle source
# File lib/tuya/ci/core/lib/lib.rb, line 19 def create(type, target_path, tag, new_branch, temp) end
podspec_project()
click to toggle source
# File lib/tuya/ci/core/lib/lib.rb, line 15 def podspec_project "#{@project}.podspec" end
source(type)
click to toggle source
# File lib/tuya/ci/core/lib/lib.rb, line 23 def source(type) puts "Job: #{@project} version: #{@version} on :#{@branch} repo: #{@repo}".green build_source end
Private Instance Methods
build_source()
click to toggle source
# File lib/tuya/ci/core/lib/lib.rb, line 32 def build_source Git.git_checkout_branch branch podspec = PodSpec.new(podspec_project) if podspec.update('version', @version) podspec.save Git.git_commit_modify "feat: CI add version to #{@version}" Git.git_push end Git.git_tag_delete! @version if Git.git_tag_exist?(@version, true ) Git.git_tag_add_push @version TYRepo::RepoTuya.new('./*.podspec').push end