Class: Tuya::EXE
- Inherits:
-
Object
- Object
- Tuya::EXE
- Defined in:
- lib/tycli/executable.rb
Class Method Summary collapse
- .exe(executable, command, raise_if_need = false, puts_filter = true) ⇒ Object
- .multi_exe(executable, commands, raise_if_need = false) ⇒ Object
Class Method Details
.exe(executable, command, raise_if_need = false, puts_filter = true) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tycli/executable.rb', line 3 def self.exe(executable, command, raise_if_need = false, puts_filter = true ) require 'cocoapods' require 'cocoapods/executable' require 'tycli/util/puts_util' result = Pod::Executable.execute_command(executable, command, raise_if_need) # puts "##########" # puts command # puts "##########" TYUtil::TYPuts.filter(result, TYUtil::TYPuts::ERROR_KEYS) if puts_filter result end |
.multi_exe(executable, commands, raise_if_need = false) ⇒ Object
20 21 22 23 24 |
# File 'lib/tycli/executable.rb', line 20 def self.multi_exe(executable, commands, raise_if_need = false) commands.each do |command| exe(executable, command, raise_if_need) end end |