Module: XcodeBuild
- Defined in:
- lib/fwtoolkit/tasks/build_tasks.rb
Class Method Summary collapse
Class Method Details
.run(args = "", output_buffer = STDOUT) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fwtoolkit/tasks/build_tasks.rb', line 21 def self.run(args = "", output_buffer = STDOUT) command = "xcodebuild #{args} DSTROOT=/tmp/artifacts 2>&1" #puts command IO.popen(command) do |io| begin while line = io.readline begin output_buffer << line rescue StandardError => e puts "Error from output buffer: #{e.inspect}" puts e.backtrace end end rescue EOFError end end $?.exitstatus end |