Sha256: 2f2b38674a60d376529944c425e9bb00d0b534ac782689262a2f16d8e3c2530e
Contents?: true
Size: 496 Bytes
Versions: 13
Compression:
Stored size: 496 Bytes
Contents
require 'cocoapods' class CommandRunner def CommandRunner.run(*args) command = args.join ' ' Pod::UserInterface.info "Running #{command}..." stdin, stdout_stderr, wait_thr = Open3.popen2e(*args) Thread.new do stdout_stderr.each {|l| puts l } end exit_status = wait_thr.value if exit_status.success? puts stdout_stderr.gets else puts stdout_stderr.gets end stdin.close stdout_stderr.close return exit_status.success? end end
Version data entries
13 entries across 13 versions & 1 rubygems