module Logger
Public Class Methods
default(sentence)
click to toggle source
# File lib/podsorz/util/logger.rb, line 4 def self.default(sentence) puts format_output(sentence).colorize(:default) end
error(sentence)
click to toggle source
# 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)
click to toggle source
# File lib/podsorz/util/logger.rb, line 27 def self.format_output(sentence) "orz: ".concat(sentence.to_s).to_s end
highlight(sentence)
click to toggle source
# File lib/podsorz/util/logger.rb, line 8 def self.highlight(sentence) puts("\n") puts format_output("✅ " + sentence + "\n").colorize(:green) end
separator()
click to toggle source
# File lib/podsorz/util/logger.rb, line 23 def self.separator puts "- - - - - - - - - - - - - - - - - - - - - - - - - - -".colorize(:light_blue) end
warning(sentence)
click to toggle source
# File lib/podsorz/util/logger.rb, line 18 def self.warning(sentence) puts("\n") puts format_output("⚠️ " + sentence + "\n").colorize(:yellow) end