small cleanup

This commit is contained in:
John Bender 2010-03-23 00:07:54 -07:00
parent 527e101cab
commit 9ba3108cc3
1 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,9 @@ module Vagrant
def self.match?(uri) def self.match?(uri)
# URI.parse barfs on '<drive letter>:\\files \on\ windows' # URI.parse barfs on '<drive letter>:\\files \on\ windows'
uri = URI.extract(uri).first # TODO temprorary
uri && uri.include?(uri) extracted = URI.extract(uri).first
extracted && extracted.include?(uri)
end end
def download!(source_url, destination_file) def download!(source_url, destination_file)