Class: GDK::Diagnostic::Base
- Inherits:
-
Object
- Object
- GDK::Diagnostic::Base
show all
- Defined in:
- lib/gdk/diagnostic/base.rb
Direct Known Subclasses
Asdf, Bundler, Chromedriver, Configuration, Dependencies, Environment, FileWatches, Geo, GitMaintenance, Gitaly, Gitlab, Golang, Hostname, MacPorts, Nginx, PendingMigrations, Pguser, Postgresql, Praefect, RubyGems, RvmAndAsdf, StaleData, StaleServices, Status, Version, Workerd
Instance Method Summary
collapse
Instance Method Details
#detail ⇒ Object
24
25
26
|
# File 'lib/gdk/diagnostic/base.rb', line 24
def detail
''
end
|
#message(content = detail) ⇒ Object
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/gdk/diagnostic/base.rb', line 13
def message(content = detail)
raise NotImplementedError unless title
<<~MESSAGE
#{title}
#{}
#{content}
MESSAGE
end
|
#success? ⇒ Boolean
9
10
11
|
# File 'lib/gdk/diagnostic/base.rb', line 9
def success?
raise NotImplementedError
end
|
#title ⇒ Object
28
29
30
|
# File 'lib/gdk/diagnostic/base.rb', line 28
def title
self.class::TITLE
end
|