Class: TYCiCore::EXE

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

Class Method Summary collapse

Class Method Details

.exe(executable, command, raise_if_need = false) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/tuya/ci/core/executable.rb', line 3

def self.exe(executable, command, raise_if_need = false)
	require 'cocoapods'
	require 'cocoapods/executable'

	puts "Command is: #{command}".yellow

	Pod::Executable.execute_command(executable, command, raise_if_need)
end

.multi_exe(executable, commands, raise_if_need = false) ⇒ Object



12
13
14
15
16
# File 'lib/tuya/ci/core/executable.rb', line 12

def self.multi_exe(executable, commands, raise_if_need = false)
	commands.each do |command|
		exe(executable, command, raise_if_need)
	end
end