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

Version Path
pushwagner-0.0.2.6 lib/pushwagner/util.rb
pushwagner-0.0.2.5 lib/pushwagner/util.rb
pushwagner-0.0.2.4 lib/pushwagner/util.rb
pushwagner-0.0.2.3 lib/pushwagner/util.rb
pushwagner-0.0.2.2 lib/pushwagner/util.rb
pushwagner-0.0.2.1 lib/pushwagner/util.rb
pushwagner-0.0.2.0 lib/pushwagner/util.rb
pushwagner-0.0.1.12 lib/pushwagner/util.rb
pushwagner-0.0.1.11 lib/pushwagner/util.rb
pushwagner-0.0.1.10 lib/pushwagner/util.rb