class ChefCLI::Policyfile::SourceURI

def parse(uri)

Returns:
  • (ChefCLI::Policyfile::SourceURI) -

Raises:
  • (ChefCLI::InvalidPolicyfileSourceURI) -

Parameters:
  • uri (String, Addressable::URI, #to_str) -- The URI
def parse(uri)
  parsed_uri = super(uri)
  parsed_uri.send(:validate)
  parsed_uri
rescue TypeError, ArgumentError => ex
  raise ChefCLI::InvalidPolicyfileSourceURI.new(uri, ex)
end