Add no-unzip download strategy; extracted from Jython/sbt.
This commit is contained in:
parent
70176cb0ec
commit
c3623e1bd1
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user