Class: Longleaf::ConfigurationValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/longleaf/services/configuration_validator.rb

Overview

Abstract configuration validator class

Class Method Summary collapse

Class Method Details

.assert(fail_message, assertion_passed) ⇒ Object (protected)

Raises:



6
7
8
# File 'lib/longleaf/services/configuration_validator.rb', line 6

def assert(fail_message, assertion_passed)
  raise ConfigurationError.new(fail_message) unless assertion_passed
end