Module: Logger
- Defined in:
- lib/podsorz/util/logger.rb
Class Method Summary collapse
- .default(sentence) ⇒ Object
- .error(sentence) ⇒ Object
- .format_output(sentence) ⇒ Object
- .highlight(sentence) ⇒ Object
- .separator ⇒ Object
- .warning(sentence) ⇒ Object
Class Method Details
.default(sentence) ⇒ Object
4 5 6 |
# File 'lib/podsorz/util/logger.rb', line 4 def self.default(sentence) puts format_output(sentence).colorize(:default) end |
.error(sentence) ⇒ Object
13 14 15 16 |
# File 'lib/podsorz/util/logger.rb', line 13 def self.error(sentence) puts("\n") puts format_output("❌ " + sentence + "\n").colorize(:red) end |
.format_output(sentence) ⇒ Object
27 28 29 |
# File 'lib/podsorz/util/logger.rb', line 27 def self.format_output(sentence) "orz: ".concat(sentence.to_s).to_s end |
.highlight(sentence) ⇒ Object
8 9 10 11 |
# File 'lib/podsorz/util/logger.rb', line 8 def self.highlight(sentence) puts("\n") puts format_output("✅ " + sentence + "\n").colorize(:green) end |
.separator ⇒ Object
23 24 25 |
# File 'lib/podsorz/util/logger.rb', line 23 def self.separator puts "- - - - - - - - - - - - - - - - - - - - - - - - - - -".colorize(:light_blue) end |
.warning(sentence) ⇒ Object
18 19 20 21 |
# File 'lib/podsorz/util/logger.rb', line 18 def self.warning(sentence) puts("\n") puts format_output("⚠️ " + sentence + "\n").colorize(:yellow) end |