Class: Kamal::Cli::Doctor::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/kamal/cli/doctor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checkObject

Returns the value of attribute check

Returns:

  • (Object)

    the current value of check



25
26
27
# File 'lib/kamal/cli/doctor.rb', line 25

def check
  @check
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



25
26
27
# File 'lib/kamal/cli/doctor.rb', line 25

def detail
  @detail
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



25
26
27
# File 'lib/kamal/cli/doctor.rb', line 25

def status
  @status
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



25
26
27
# File 'lib/kamal/cli/doctor.rb', line 25

def target
  @target
end

Instance Method Details

#fail?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/kamal/cli/doctor.rb', line 34

def fail?
  status == :fail
end

#ok?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/kamal/cli/doctor.rb', line 26

def ok?
  status == :ok
end

#titleObject



38
39
40
# File 'lib/kamal/cli/doctor.rb', line 38

def title
  CHECK_TITLES[check]
end

#to_sObject



42
43
44
# File 'lib/kamal/cli/doctor.rb', line 42

def to_s
  "#{status.to_s.upcase} #{target}: #{detail}"
end

#warn?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/kamal/cli/doctor.rb', line 30

def warn?
  status == :warn
end