class TYCiCore::RepoRelease
Public Instance Methods
download_release_content(item)
click to toggle source
# File lib/tuya/ci/core/repo_release_ci.rb, line 27 def download_release_content(item) podspec = TYCiCore::PodSpec.new item.podspec url = podspec.value_key 'source/http' zip_path = TYCiCore::TYDownload.download url, url.split('/')[-1] TYUtil::TYFile.unzip zip_path, './tmp' TYUtil::TYFile.delete zip_path end
item_lint(item)
click to toggle source
# File lib/tuya/ci/core/repo_release_ci.rb, line 37 def item_lint(item) exist = File.exist? item.podspec puts "#{item.podspec} is not exist".red unless exist lint_result = exist lint_result end
release(module_name, version)
click to toggle source
# File lib/tuya/ci/core/repo_release_ci.rb, line 7 def release(module_name, version) puts "Ready to release #{module_name} : #{version}".green config = RepoReleaseCIConfig.new module_name, version config.config.each do |item| release_item item end end
release_item(item)
click to toggle source
# File lib/tuya/ci/core/repo_release_ci.rb, line 18 def release_item(item) item.ready if item_lint item repo_release_git = RepoReleaseGit.new repo_release_git.prepare item # download_release_content item end end