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



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

def checks
  @checks
end

Instance Method Details

#failuresObject



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

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

#success?Boolean

Returns:

  • (Boolean)


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

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