Method: Codesake::Commons::Logging#bye

Defined in:
lib/codesake/commons/logging.rb

#bye(pid_file = nil) ⇒ Object



68
69
70
71
72
73
# File 'lib/codesake/commons/logging.rb', line 68

def bye(pid_file = nil)
  STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [*] #{@component} is leaving\n").white
  send_to_syslog("#{@component} is leaving", :helo)
  send_to_file("#{@component} is leaving", :helo)
  Codesake::Commons::Io.remove_pid_file(pid_file) unless pid_file.nil?
end