Class: BoringBackup::Commands::DoctorResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/boring_backup/commands/doctor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksObject

Returns the value of attribute checks

Returns:

  • (Object)

    the current value of checks



7
8
9
# File 'lib/boring_backup/commands/doctor.rb', line 7

def checks
  @checks
end

Instance Method Details

#failuresObject



10
# File 'lib/boring_backup/commands/doctor.rb', line 10

def failures = checks.select(&:failed?)

#success?Boolean

Returns:

  • (Boolean)


8
# File 'lib/boring_backup/commands/doctor.rb', line 8

def success? = checks.none?(&:failed?)