Method: TYCiCore::ConfigModules#module?
- Defined in:
- lib/tuya/ci/core/config/config_modules.rb
#module?(name) ⇒ Boolean
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/tuya/ci/core/config/config_modules.rb', line 46 def module?(name) # find_command = "find #{pod_path} -iname #{name}Impl.h" # # puts("find_command is #{find_command}") # find_command_result = Action.sh find_command # # puts("find_command_result is #{find_command_result}") # if find_command_result.length > 0 # return true # else # return module_lib?(name) # end commands = %W(#{pod_path} -iname #{name}Impl.h) result = EXE.exe('find', commands) if result.length > 0 true else module_lib?(name) end end |