Class: TYCiCore::TuyaLanguageUpdate

Inherits:
Object
  • Object
show all
Defined in:
lib/tuya/ci/core/language_update.rb

Class Method Summary collapse

Class Method Details

.updateObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/tuya/ci/core/language_update.rb', line 3

def self.update
	path = './.ci.json'
	if File.exist? path
		config = TYCiCore::Config.new path
		app_version = config.value 'verify_language_symbol.ci_app_version'
		app_id = config.value 'verify_language_symbol.ci_app_id'
		archive = config.value 'verify_language_symbol.archive'
		if archive
			puts TYCiCore::EXE.exe 'python', %W(language.py -a #{app_id}  -v #{app_version})
			TYCiCore::EXE.exe 'git', %W(push) if TYCiCore::Git.git_commit_modify 'feat: CI update Language Success'
		end
	end
end