class Gesund::Checks::MysqlConnection

Public Class Methods

new(options={}) click to toggle source
# File lib/gesund/checks/mysql_connection.rb, line 6
def initialize(options={})
  begin
    ::Mysql.new.ping.close # raises exception on failure
    self.pass "MySQL is answering to a ping"
  rescue => e
    self.fail "#{self.class} ERROR: #{e.class}: #{e.message}"
  end
end