Avoid network call in #initialize.
This commit is contained in:
parent
f66ce9ce5d
commit
b54682f709
@ -188,11 +188,8 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
||||||
attr_reader :temporary_path
|
def temporary_path
|
||||||
|
@temporary_path ||= Pathname.new("#{cached_location}.incomplete")
|
||||||
def initialize(url, name, version, **meta)
|
|
||||||
super
|
|
||||||
@temporary_path = Pathname.new("#{cached_location}.incomplete")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def symlink_location
|
def symlink_location
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user