Class: Doctor::HealthCheck

Inherits:
Object
  • Object
show all
Defined in:
app/use_case/doctor/health_check.rb

Instance Method Summary collapse

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
11
# File 'app/use_case/doctor/health_check.rb', line 3

def perform
  result = {}

  result[:telnets] = analyze_telnet
  result[:databases] = analyze_database
  result[:hds] = analyse_hds

  OpenStruct.new(result: result, has_error?: has_error?(result))
end