Class: Kamal::Cli::Doctor::Result
- Inherits:
-
Struct
- Object
- Struct
- Kamal::Cli::Doctor::Result
- Defined in:
- lib/kamal/cli/doctor.rb
Instance Attribute Summary collapse
-
#check ⇒ Object
Returns the value of attribute check.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#status ⇒ Object
Returns the value of attribute status.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Instance Attribute Details
#check ⇒ Object
Returns the value of attribute check
25 26 27 |
# File 'lib/kamal/cli/doctor.rb', line 25 def check @check end |
#detail ⇒ Object
Returns the value of attribute detail
25 26 27 |
# File 'lib/kamal/cli/doctor.rb', line 25 def detail @detail end |
#status ⇒ Object
Returns the value of attribute status
25 26 27 |
# File 'lib/kamal/cli/doctor.rb', line 25 def status @status end |
#target ⇒ Object
Returns the value of attribute target
25 26 27 |
# File 'lib/kamal/cli/doctor.rb', line 25 def target @target end |
Instance Method Details
#fail? ⇒ Boolean
34 35 36 |
# File 'lib/kamal/cli/doctor.rb', line 34 def fail? status == :fail end |
#ok? ⇒ Boolean
26 27 28 |
# File 'lib/kamal/cli/doctor.rb', line 26 def ok? status == :ok end |
#title ⇒ Object
38 39 40 |
# File 'lib/kamal/cli/doctor.rb', line 38 def title CHECK_TITLES[check] end |
#to_s ⇒ Object
42 43 44 |
# File 'lib/kamal/cli/doctor.rb', line 42 def to_s "#{status.to_s.upcase} #{target}: #{detail}" end |
#warn? ⇒ Boolean
30 31 32 |
# File 'lib/kamal/cli/doctor.rb', line 30 def warn? status == :warn end |