Sha256: 0bcf3efbb2f5698bba2ef88c6f7b67f2d37845dc719127f4977f60685f308451
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
module Rbfs class Logger attr_reader :config def initialize(config) @config = config end def info(msg) puts "\033[0;32m#{msg}" if config[:verbose] end def error(msg) puts "\033[0;31m#{msg}" end def critical(msg) puts "\033[0;31m#{msg}" exit 1 end def notice(msg) puts "\033[0;33m#{msg}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbfs-0.0.4 | lib/rbfs/logger.rb |
rbfs-0.0.3 | lib/rbfs/logger.rb |