lib/tlapse/doctor.rb in tlapse-0.1.1 vs lib/tlapse/doctor.rb in tlapse-0.1.2

- old
+ new

@@ -10,14 +10,18 @@ end puts "Looks good!" end - def okay? + def status CHECKS.each { |check| send "check_#{check}!" } - true - rescue StandardError - false + "OK" + rescue StandardError => e + e.message + end + + def okay? + status == "OK" end private ################################################################### def check_gphoto2!