saltstack: prefer cached_location method over @clone ivar

This commit is contained in:
Jack Nagel 2014-12-09 14:22:35 -05:00
parent 263170e5d8
commit 131bbb6e3a

View file

@ -5,8 +5,8 @@ require "formula"
# This is populated from git information unfortunately.
class SaltHeadDownloadStrategy < GitDownloadStrategy
def stage
@clone.cd {reset}
safe_system "git", "clone", @clone, "."
cached_location.cd { reset }
safe_system "git", "clone", cached_location, "."
end
end