Module: TravisXcodebuild::Logging
- Included in:
- Runner
- Defined in:
- lib/travis-xcodebuild/logging.rb
Instance Method Summary collapse
- #log_analyzer(warnings) ⇒ Object
- #log_failure(string) ⇒ Object
- #log_info(string) ⇒ Object
- #log_success(string) ⇒ Object
- #log_warning(string) ⇒ Object
Instance Method Details
#log_analyzer(warnings) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/travis-xcodebuild/logging.rb', line 26 def log_analyzer(warnings) return unless warnings.length > 0 puts "[analyzer] Found clang analyzer warnings in the following files:".yellow warnings.each { |warning| puts " - #{warning}".yellow } puts end |
#log_failure(string) ⇒ Object
16 17 18 19 |
# File 'lib/travis-xcodebuild/logging.rb', line 16 def log_failure(string) puts "[failure] #{string}".red puts end |
#log_info(string) ⇒ Object
6 7 8 9 |
# File 'lib/travis-xcodebuild/logging.rb', line 6 def log_info(string) puts "[info] #{string}".white puts end |
#log_success(string) ⇒ Object
21 22 23 24 |
# File 'lib/travis-xcodebuild/logging.rb', line 21 def log_success(string) puts "[success] #{string}".green puts end |
#log_warning(string) ⇒ Object
11 12 13 14 |
# File 'lib/travis-xcodebuild/logging.rb', line 11 def log_warning(string) puts "[warning] #{string}".yellow puts end |