class Proxy::DHCP::BlueCat::SchemeValidator

Public Instance Methods

validate!(settings) click to toggle source
# File lib/lib/smart_proxy_dhcp_bluecat/settings_validator.rb, line 3
def validate!(settings)
  return true if ['http', 'https'].include?(settings[:scheme])
  raise ::Proxy::Error::ConfigurationError, "Setting 'scheme' can be set to either 'http' or 'https'"
end