Module: Upman::Utils::Helper

Instance Method Summary collapse

Instance Method Details

#fail(msg) ⇒ Object



18
19
20
# File 'lib/upman/utils/helper.rb', line 18

def fail(msg)
  puts "[#{Process.pid}] [#{Time.now}] " + msg.red
end

#info(msg) ⇒ Object



9
10
11
12
# File 'lib/upman/utils/helper.rb', line 9

def info(msg)

  puts "[#{Process.pid}] [#{Time.now}] " + msg.blue
end

#success(msg) ⇒ Object



22
23
24
# File 'lib/upman/utils/helper.rb', line 22

def success(msg)
  puts "[#{Process.pid}] [#{Time.now}] " + msg.green
end

#warn(msg) ⇒ Object



14
15
16
# File 'lib/upman/utils/helper.rb', line 14

def warn(msg)
  puts "[#{Process.pid}] [#{Time.now}] " + msg.yellow
end