Sha256: 1d7b483a483cfc68c1fe15eac5bee8966d0d018438dd73cd66bf47374aec45d3
Contents?: true
Size: 403 Bytes
Versions: 7
Compression:
Stored size: 403 Bytes
Contents
require 'yardi/utils' module Yardi module Utils class ConfigurationValidator def validate! missing_keys = Yardi::CONFIG_KEYS.select do |key| Yardi.config.send(key).nil? end unless missing_keys.empty? raise Error::InvalidConfiguration, "Missing configuration for #{missing_keys.join(', ')}" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems