Sha256: ebbb3d4513f25547ed7d850e2840242be1fbd92e1eaef00a040c5fe84c46041c
Contents?: true
Size: 482 Bytes
Versions: 10
Compression:
Stored size: 482 Bytes
Contents
# Use colorize gem to color/fmt output require 'colorize' module Pushwagner def self.ok puts '[ ' + 'OK'.colorize(:green) + ' ]' end def self.severe(str) puts str.trunc(99).colorize(color: :red, mode: :bold) end def self.begin_info(str) print str.trunc(99).ljust(101, ".").colorize(mode: :bold) end def self.info(str) puts str.trunc(99).colorize(mode: :bold) end def self.warning(str) puts str.trunc(99).colorize(color: :yellow) end end
Version data entries
10 entries across 10 versions & 1 rubygems