Module: BuildKit::Utilities::Console
- Defined in:
- lib/ios_build_kit/utils/console.rb
Class Method Summary collapse
- .header_msg(h) ⇒ Object
- .success_msg(m) ⇒ Object
- .terminate_with_err(err) ⇒ Object
- .warning_msg(m) ⇒ Object
Class Method Details
.header_msg(h) ⇒ Object
7 8 9 |
# File 'lib/ios_build_kit/utils/console.rb', line 7 def self.header_msg h puts "\n\n" + h + "\n" + ("-" * h.length) + "\n" end |
.success_msg(m) ⇒ Object
15 16 17 |
# File 'lib/ios_build_kit/utils/console.rb', line 15 def self.success_msg m puts "\n#{m}\n" end |
.terminate_with_err(err) ⇒ Object
19 20 21 22 |
# File 'lib/ios_build_kit/utils/console.rb', line 19 def self.terminate_with_err err puts "\nš£ Terminating with error: #{err}\n\n" exit end |
.warning_msg(m) ⇒ Object
11 12 13 |
# File 'lib/ios_build_kit/utils/console.rb', line 11 def self.warning_msg m puts "\nNotice:" + m + "\n" end |