Class: GDK::Diagnostic::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/gdk/diagnostic/status.rb

Constant Summary collapse

TITLE =
'GDK Status'

Instance Method Summary collapse

Methods inherited from Base

#message, #title

Instance Method Details

#detailObject



12
13
14
15
16
17
18
19
20
# File 'lib/gdk/diagnostic/status.rb', line 12

def detail
  return if success?

  <<~MESSAGE
    The following services are not running but should be:

    #{down_services.join("\n")}
  MESSAGE
end

#success?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/gdk/diagnostic/status.rb', line 8

def success?
  down_services.empty?
end