class ChefCLI::Policyfile::SourceURI
def validate
-
(ChefCLI::InvalidPolicyfileSourceURI)
-
def validate super unless VALID_SCHEMES.include?(scheme) raise InvalidPolicyfileSourceURI.new(self, "invalid URI scheme '#{scheme}'. Valid schemes: #{VALID_SCHEMES}") end rescue Addressable::URI::InvalidURIError => ex raise InvalidPolicyfileSourceURI.new(self, ex) end