aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-02-14 15:31:29 -0500
committerJack Nagel2014-02-14 15:33:37 -0500
commit3d3ff997c51b50742a1fa55d1bbb8045d67d4fea (patch)
tree400618eaa3c19127bd5e905a98b13033a6634966
parenta343405894ff9dab67644a9aec2b865e4a5ef053 (diff)
downloadhomebrew-3d3ff997c51b50742a1fa55d1bbb8045d67d4fea.tar.bz2
VCSDownloadStrategy: document acceptable ref types
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index e9907cf38..e69a45b55 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -39,6 +39,8 @@ class AbstractDownloadStrategy
end
class VCSDownloadStrategy < AbstractDownloadStrategy
+ REF_TYPES = [:branch, :revision, :revisions, :tag].freeze
+
def initialize name, resource
super
@ref_type, @ref = destructure_spec_hash(resource.specs)