class Rbfs::Logger

Attributes

config[R]

Public Class Methods

new(config) click to toggle source
# File lib/rbfs/logger.rb, line 5
def initialize(config)
  @config = config
end

Public Instance Methods

critical(msg) click to toggle source
# File lib/rbfs/logger.rb, line 21
def critical(msg)
  puts "\033[0;31m#{msg}\033[00m"
  exit 1
end
error(msg) click to toggle source
# File lib/rbfs/logger.rb, line 17
def error(msg)
  puts "\033[0;31m#{msg}\033[00m"
end
info(msg) click to toggle source
# File lib/rbfs/logger.rb, line 9
def info(msg)
  puts "\033[0;32m#{msg}\033[00m"
end
notice(msg) click to toggle source
# File lib/rbfs/logger.rb, line 26
def notice(msg)
  puts "\033[0;33m#{msg}\033[00m"
end
puts(msg) click to toggle source
# File lib/rbfs/logger.rb, line 13
def puts(msg)
  $stdout.puts "#{msg}"
end