Sha256: 07c97cd40d8fcfc9299a18daf8a0202a10b65a12c6bd345fe7467e9a43e5d4b0

Contents?: true

Size: 403 Bytes

Versions: 9

Compression:

Stored size: 403 Bytes

Contents

module Luffa
  def self.log_unix_cmd(msg)
    puts "\033[36mEXEC: #{msg}\033[0m" if msg
  end

  def self.log_pass(msg)
    puts "\033[32mPASS: #{msg}\033[0m" if msg
  end

  def self.log_warn(msg)
    puts "\033[34mWARN: #{msg}\033[0m"
  end

  def self.log_fail(msg)
    puts "\033[31mFAIL: #{msg}\033[0m" if msg
  end

  def self.log_info(msg)
    puts "\033[35mINFO: #{msg}\033[0m" if msg
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
luffa-2.1.0 lib/luffa/logging.rb
luffa-2.0.0 lib/luffa/logging.rb
luffa-1.1.0 lib/luffa/logging.rb
luffa-1.0.7 lib/luffa/logging.rb
luffa-1.0.6 lib/luffa/logging.rb
luffa-1.0.5 lib/luffa/logging.rb
luffa-1.0.4 lib/luffa/logging.rb
luffa-1.0.3 lib/luffa/logging.rb
luffa-1.0.2 lib/luffa/logging.rb