aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-06 12:29:15 -0500
committerJack Nagel2014-12-06 15:02:48 -0500
commitc3c4b115cd0177c94700e9cf54b2234e5922c1b6 (patch)
tree7fdeea0cfb97331f70c5e08607021ebf462b00a3 /Library/Homebrew/download_strategy.rb
parentd068f0d4467f3e50e9f4d38aa03b3589f05f0355 (diff)
downloadhomebrew-c3c4b115cd0177c94700e9cf54b2234e5922c1b6.tar.bz2
Mark private VCSDownloadStrategy methods
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb28
1 files changed, 15 insertions, 13 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 7d6aca1bc..6132f08a7 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -46,19 +46,6 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
@clone = HOMEBREW_CACHE.join(cache_filename)
end
- def extract_ref(specs)
- key = REF_TYPES.find { |type| specs.key?(type) }
- return key, specs[key]
- end
-
- def cache_filename
- "#{name}--#{cache_tag}"
- end
-
- def cache_tag
- "__UNKNOWN__"
- end
-
def cached_location
@clone
end
@@ -70,6 +57,21 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
def head?
resource.version.head?
end
+
+ private
+
+ def cache_tag
+ "__UNKNOWN__"
+ end
+
+ def cache_filename
+ "#{name}--#{cache_tag}"
+ end
+
+ def extract_ref(specs)
+ key = REF_TYPES.find { |type| specs.key?(type) }
+ return key, specs[key]
+ end
end
class CurlDownloadStrategy < AbstractDownloadStrategy