Method: OkComputer::ActionMailerCheck#check

Defined in:
lib/ok_computer/built_in_checks/action_mailer_check.rb

#checkObject

Public: Return the status of the check



16
17
18
19
20
21
22
# File 'lib/ok_computer/built_in_checks/action_mailer_check.rb', line 16

def check
  tcp_socket_request
  mark_message "#{klass} check to #{host}:#{port} successful"
rescue => e
  mark_message "#{klass} at #{host}:#{port} is not accepting connections: '#{e}'"
  mark_failure
end