Mark deprecated download strategies as such
This commit is contained in:
parent
cd7004b579
commit
d3daa8a25b
@ -345,9 +345,7 @@ class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# This strategy is provided for use with sites that only provide HTTPS and
|
# @deprecated
|
||||||
# also have a broken cert. Try not to need this, as we probably won't accept
|
|
||||||
# the formula.
|
|
||||||
class CurlUnsafeDownloadStrategy < CurlDownloadStrategy
|
class CurlUnsafeDownloadStrategy < CurlDownloadStrategy
|
||||||
def _fetch
|
def _fetch
|
||||||
curl @url, '--insecure', '-C', downloaded_size, '-o', temporary_path
|
curl @url, '--insecure', '-C', downloaded_size, '-o', temporary_path
|
||||||
@ -492,9 +490,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
|
|||||||
alias_method :update, :clone_repo
|
alias_method :update, :clone_repo
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @deprecated
|
||||||
StrictSubversionDownloadStrategy = SubversionDownloadStrategy
|
StrictSubversionDownloadStrategy = SubversionDownloadStrategy
|
||||||
|
|
||||||
# Download from SVN servers with invalid or self-signed certs
|
# @deprecated
|
||||||
class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy
|
class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy
|
||||||
def fetch_args
|
def fetch_args
|
||||||
%w[--non-interactive --trust-server-cert]
|
%w[--non-interactive --trust-server-cert]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user