Class: HomebrewAutomation::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/homebrew_automation/logger.rb

Overview

Help you see which parts of STDOUT came from HomebrewAutomation

Instance Method Summary collapse

Instance Method Details

#error!(msg) ⇒ Object



13
14
15
# File 'lib/homebrew_automation/logger.rb', line 13

def error!(msg)
  puts(red("homebrew_automation.rb [error] (#{DateTime.now}): ") + msg)
end

#info!(msg) ⇒ Object



9
10
11
# File 'lib/homebrew_automation/logger.rb', line 9

def info!(msg)
  puts(bold(green("homebrew_automation.rb [info] (#{DateTime.now}): ")) + msg)
end