Add no-unzip download strategy; extracted from Jython/sbt.

This commit is contained in:
Adam Vandenberg 2009-12-01 12:01:05 -08:00 committed by Max Howell
parent 70176cb0ec
commit c3623e1bd1

View File

@ -106,6 +106,14 @@ class HttpDownloadStrategy <CurlDownloadStrategy
end
end
# Use this strategy to download but not unzip a file.
# Useful for installing jars.
class NoUnzipCurlDownloadStrategy <CurlDownloadStrategy
def stage
FileUtils.mv @dl, File.basename(@url)
end
end
class SubversionDownloadStrategy <AbstractDownloadStrategy
def fetch
ohai "Checking out #{@url}"