Skip to content
Snippets Groups Projects
Commit b54682f7 authored by Markus Reiter's avatar Markus Reiter
Browse files

Avoid network call in `#initialize`.

parent f66ce9ce
No related branches found
No related tags found
No related merge requests found
......@@ -188,11 +188,8 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
end
class AbstractFileDownloadStrategy < AbstractDownloadStrategy
attr_reader :temporary_path
def initialize(url, name, version, **meta)
super
@temporary_path = Pathname.new("#{cached_location}.incomplete")
def temporary_path
@temporary_path ||= Pathname.new("#{cached_location}.incomplete")
end
def symlink_location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment