Class: FastlaneCore::TransporterExecutor
- Inherits:
-
Object
- Object
- FastlaneCore::TransporterExecutor
- Defined in:
- lib/fastlane_core/itunes_transporter.rb
Overview
Base class for executing the iTMSTransporter
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#execute(command, hide_output) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/fastlane_core/itunes_transporter.rb', line 26 def execute(command, hide_output) return command if Helper.is_test? @errors = [] @warnings = [] if hide_output # Show a one time message instead UI.success("Waiting for iTunes Connect transporter to be finished.") UI.success("iTunes Transporter progress... this might take a few minutes...") end begin PTY.spawn(command) do |stdin, stdout, pid| stdin.each do |line| parse_line(line, hide_output) # this is where the parsing happens end end rescue => ex UI.error(ex.to_s) @errors << ex.to_s end if @warnings.count > 0 UI.important(@warnings.join("\n")) end if @errors.count > 0 UI.error(@errors.join("\n")) return false end true end |