Module: Visionbundles::Helpers::Logger

Defined in:
lib/visionbundles/helpers/logger.rb

Instance Method Summary collapse

Instance Method Details

#info(message) ⇒ Object



5
6
7
# File 'lib/visionbundles/helpers/logger.rb', line 5

def info(message)
  puts "#{current_server} -> #{message}".colorize(:light_cyan)
end

#valid_faild(topic) ⇒ Object



17
18
19
# File 'lib/visionbundles/helpers/logger.rb', line 17

def valid_faild(topic)
  puts "\t[Faild] #{topic}".colorize(color: :red, background: :light_white).underline
end

#valid_pass(topic) ⇒ Object



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

def valid_pass(topic)
  puts "\t[Pass] #{topic}".colorize(color: :green, background: :light_white).underline
end

#valid_skip(topic) ⇒ Object



21
22
23
# File 'lib/visionbundles/helpers/logger.rb', line 21

def valid_skip(topic)
  puts "\t[Skip] #{topic}".colorize(color: :yellow, background: :light_white).underline
end

#warn(message) ⇒ Object



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

def warn(message)
  puts "#{current_server} -> #{message}".colorize(:red)
end