Class: Proxy::Omaha::PluginValidators::DistributionValidator
- Inherits:
-
PluginValidators::Base
- Object
- PluginValidators::Base
- Proxy::Omaha::PluginValidators::DistributionValidator
- Defined in:
- lib/smart_proxy_omaha/plugin_validators.rb
Instance Method Summary collapse
Instance Method Details
#validate!(settings) ⇒ Object
5 6 7 |
# File 'lib/smart_proxy_omaha/plugin_validators.rb', line 5 def validate!(settings) raise ::Proxy::Error::ConfigurationError, "Setting '#{@setting_name}' must be a supported Omaha distribution ('coreos' or 'flatcar')" unless ['coreos', 'flatcar'].include?(settings[@setting_name]) end |