Sha256: bcd2cb01990312eb77d2ad3152caeeec418ead05bc04185a49e8355a97a20222
Contents?: true
Size: 305 Bytes
Versions: 4
Compression:
Stored size: 305 Bytes
Contents
require "rainbow" module Tlapse class Logger ERROR_COLOR = :red def self.error(message) puts Rainbow(message).fg ERROR_COLOR end ## # Print the error message and then exit def self.error!(message, exit_code: 1) error message exit exit_code end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tlapse-0.9.0 | lib/tlapse/logger.rb |
tlapse-0.8.0 | lib/tlapse/logger.rb |
tlapse-0.7.0 | lib/tlapse/logger.rb |
tlapse-0.6.3 | lib/tlapse/logger.rb |