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

Version Path
yardi-4.11.4 lib/yardi/utils/configuration_validator.rb
yardi-4.11.3 lib/yardi/utils/configuration_validator.rb
yardi-5.0.1 lib/yardi/utils/configuration_validator.rb
yardi-4.11.2 lib/yardi/utils/configuration_validator.rb
yardi-4.11.1 lib/yardi/utils/configuration_validator.rb
yardi-4.11.0 lib/yardi/utils/configuration_validator.rb
yardi-4.0.8 lib/yardi/utils/configuration_validator.rb