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:
parent
ccfd321ef9
commit
c495fb7c5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue