Class: Central::Machine::Azure::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/central/machine/azure/logger.rb

Instance Method Summary collapse

Instance Method Details

#error(msg) ⇒ Object



16
17
18
# File 'lib/central/machine/azure/logger.rb', line 16

def error(msg)
  puts msg.colorize(:red)
end

#error_with_exit(msg) ⇒ Object



8
9
10
# File 'lib/central/machine/azure/logger.rb', line 8

def error_with_exit(msg)
  puts msg.colorize(:red)
end

#exception_message(msg) ⇒ Object



20
21
22
# File 'lib/central/machine/azure/logger.rb', line 20

def exception_message(msg)
  puts msg.colorize(:red)
end

#info(msg) ⇒ Object



5
6
# File 'lib/central/machine/azure/logger.rb', line 5

def info(msg)
end

#warn(msg) ⇒ Object



12
13
14
# File 'lib/central/machine/azure/logger.rb', line 12

def warn(msg)
  puts msg.colorize(:yellow)
end