saltstack: prefer cached_location method over @clone ivar
This commit is contained in:
parent
263170e5d8
commit
131bbb6e3a
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ require "formula"
|
||||||
# This is populated from git information unfortunately.
|
# This is populated from git information unfortunately.
|
||||||
class SaltHeadDownloadStrategy < GitDownloadStrategy
|
class SaltHeadDownloadStrategy < GitDownloadStrategy
|
||||||
def stage
|
def stage
|
||||||
@clone.cd {reset}
|
cached_location.cd { reset }
|
||||||
safe_system "git", "clone", @clone, "."
|
safe_system "git", "clone", cached_location, "."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue