adds options for client certs to downloader class

Adds :client_cert to the env array and then passes it into the curl
options array
This commit is contained in:
Simon Thulbourn 2013-05-21 11:39:43 +01:00
parent ccfd321ef9
commit c495fb7c5c
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ module Vagrant
options ||= {}
@insecure = options[:insecure]
@ui = options[:ui]
@client_cert = options[:client_cert]
end
# This executes the actual download, downloading the source file
@ -36,6 +37,7 @@ module Vagrant
]
options << "--insecure" if @insecure
options << "--cert" << @client_cert if @client_cert
options << @source
# Specify some options for the subprocess