Class: HealthMonitor::Providers::FileAbsence
- Defined in:
- lib/health_monitor/providers/file_absence.rb
Defined Under Namespace
Classes: Configuration
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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 |