Module: XcodeBuild
- Defined in:
- lib/xcode_build.rb,
lib/xcode_build/tasks.rb,
lib/xcode_build/reporter.rb,
lib/xcode_build/build_step.rb,
lib/xcode_build/formatters.rb,
lib/xcode_build/build_action.rb,
lib/xcode_build/translations.rb,
lib/xcode_build/tasks/build_task.rb,
lib/xcode_build/output_translator.rb,
lib/xcode_build/utilities/colorize.rb,
lib/xcode_build/translations/building.rb,
lib/xcode_build/translations/cleaning.rb,
lib/xcode_build/reporting/build_reporting.rb,
lib/xcode_build/reporting/clean_reporting.rb,
lib/xcode_build/formatters/progress_formatter.rb
Defined Under Namespace
Modules: Formatters, Reporting, Tasks, Translations, Utilities Classes: BuildAction, BuildStep, OutputTranslator, Reporter
Class Method Summary collapse
Class Method Details
.run(args = "", output_buffer = STDOUT) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xcode_build.rb', line 2 def self.run(args = "", output_buffer = STDOUT) IO.popen("xcodebuild #{args} 2>&1") 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 |