Class: Releasinator::Printer
- Inherits:
-
Object
- Object
- Releasinator::Printer
- Defined in:
- lib/printer.rb
Class Method Summary collapse
Class Method Details
.check_proceed(warning_msg, abort_msg) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/printer.rb', line 13 def self.check_proceed(warning_msg, abort_msg) puts "#{warning_msg} Continue? (Y/n)".yellow if 'n' == $stdin.gets.strip self.fail(abort_msg) abort() end end |
.fail(msg) ⇒ Object
9 10 11 |
# File 'lib/printer.rb', line 9 def self.fail(msg) puts "\xE2\x9C\x98 FAILURE: #{msg}".red end |
.success(msg) ⇒ Object
5 6 7 |
# File 'lib/printer.rb', line 5 def self.success(msg) puts "\xE2\x9C\x94\xEF\xB8\x8E ".light_green + "SUCCESS: #{msg}".green end |