Sha256: 57f39a41e356c3a231efce449f1ae6b6c6533ff5f8071b7782d2537b6c7189c8

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

module Rbfs
  class Logger
    attr_reader :config

    def initialize(config)
      @config = config
    end

    def info(msg)
      puts "\033[0;32m#{msg}\033[0;37m"
    end

    def error(msg)
      puts "\033[0;31m#{msg}\033[0;37m"
    end

    def critical(msg)
      puts "\033[0;31m#{msg}\033[0;37m"
      exit 1
    end

    def notice(msg)
      puts "\033[0;33m#{msg}\033[0;37m"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbfs-0.0.6 lib/rbfs/logger.rb