Sha256: 426f4fb88293b6c5951a6623f0a16d7a61268b56368d67a502594c87b1346e4b

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents


def puts_info(msg)
  $stdout.puts "\e[32m[INFO] #{msg}\e[0m" if Calamum::Config[:debug]
end

def puts_error(msg)
  $stderr.puts "\e[31m[ERROR] #{msg}\e[0m" if Calamum::Config[:debug]
  exit(1)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
calamum-1.0.2 lib/calamum/calamum_helper.rb
calamum-1.0.1 lib/calamum/calamum_helper.rb
calamum-1.0.0 lib/calamum/calamum_helper.rb