Provide VCSDownloadStrategy#head?
This commit is contained in:
parent
68a5268aef
commit
853399da44
@ -66,6 +66,10 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
|
|||||||
def clear_cache
|
def clear_cache
|
||||||
cached_location.rmtree if cached_location.exist?
|
cached_location.rmtree if cached_location.exist?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def head?
|
||||||
|
resource.version.head?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CurlDownloadStrategy < AbstractDownloadStrategy
|
class CurlDownloadStrategy < AbstractDownloadStrategy
|
||||||
@ -350,7 +354,7 @@ end
|
|||||||
|
|
||||||
class SubversionDownloadStrategy < VCSDownloadStrategy
|
class SubversionDownloadStrategy < VCSDownloadStrategy
|
||||||
def cache_tag
|
def cache_tag
|
||||||
resource.version.head? ? "svn-HEAD" : "svn"
|
head? ? "svn-HEAD" : "svn"
|
||||||
end
|
end
|
||||||
|
|
||||||
def repo_valid?
|
def repo_valid?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user