CurlUnsafeDownloadStrategy

This Download Strategy is provided for use with sites that
only provide HTTPS and also have a broken cert.
Try not to need this, as we probably won't accept the forulae
into trunk.
This commit is contained in:
Adam Vandenberg 2010-07-10 11:59:43 -07:00
parent b5ba49b90e
commit 984d0bd05d

View File

@ -143,6 +143,16 @@ class NoUnzipCurlDownloadStrategy <CurlDownloadStrategy
end
end
# This Download Strategy is provided for use with sites that
# only provide HTTPS and also have a broken cert.
# Try not to need this, as we probably won't accept the forulae
# into trunk.
class CurlUnsafeDownloadStrategy <CurlDownloadStrategy
def _fetch
curl @url, '--insecure', '-o', @tarball_path
end
end
class SubversionDownloadStrategy <AbstractDownloadStrategy
def initialize url, name, version, specs
super