in lib/aws/codedeploy/local/deployer.rb [167:181]
def revision(location, bundle_type)
uri = URI.parse(location)
if (uri.scheme == 's3')
s3_revision(location, uri, bundle_type)
elsif (uri.scheme == 'https' && uri.host.end_with?('github.com'))
github_revision(location, uri, bundle_type)
elsif (uri.scheme == 'file' || uri.scheme.nil? || (uri.scheme.size == 1 && /[[:alpha:]]/.match(uri.scheme.chars.first)))
local_revision(location, bundle_type)
else
raise AWS::CodeDeploy::Local::CLIValidator::ValidationError.new("unknown location #{location} cannot be determined to be S3, Github, or a local file / directory")
end
end