Class: HealthMonitor::Providers::FileAbsence

Inherits:
Base
  • Object
show all
Defined in:
lib/health_monitor/providers/file_absence.rb

Defined Under Namespace

Classes: Configuration

Instance Attribute Summary

Attributes inherited from Base

#configuration, #request

Instance Method Summary collapse

Methods inherited from Base

#configure, #initialize

Constructor Details

This class inherits a constructor from HealthMonitor::Providers::Base

Instance Method Details

#check!Object



21
22
23
24
25
# File 'lib/health_monitor/providers/file_absence.rb', line 21

def check!
  return unless File.exist?(configuration.filename)

  raise FileAbsenceException.new("Unwanted file #{configuration.filename} exists!")
end