Sha256: fd912e9c1eff9bb5980fb2e218b92a3856636286c15604ca216dd2d59641ad46

Contents?: true

Size: 413 Bytes

Versions: 33

Compression:

Stored size: 413 Bytes

Contents

require 'colorize'

module Yawast
  class Utilities
    def self.puts_msg(type, msg)
      puts "#{type} #{msg}"
    end

    def self.puts_error(msg)
      puts_msg('[E]'.red, msg)
    end

    def self.puts_vuln(msg)
      puts_msg('[V]'.magenta, msg)
    end

    def self.puts_warn(msg)
      puts_msg('[W]'.yellow, msg)
    end

    def self.puts_info(msg)
      puts_msg('[I]'.green, msg)
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
yawast-0.4.0.beta5 lib/util.rb
yawast-0.4.0.beta4 lib/util.rb
yawast-0.4.0.beta3 lib/util.rb
yawast-0.4.0.beta2 lib/util.rb
yawast-0.4.0.beta1 lib/util.rb
yawast-0.3.0 lib/util.rb
yawast-0.3.0.beta2 lib/util.rb
yawast-0.3.0.beta1 lib/util.rb
yawast-0.2.2 lib/util.rb
yawast-0.2.1 lib/util.rb
yawast-0.2.0.beta3 lib/util.rb
yawast-0.2.0.beta2 lib/util.rb
yawast-0.2.0.beta1 lib/util.rb