From 3d3ff997c51b50742a1fa55d1bbb8045d67d4fea Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 14 Feb 2014 15:31:29 -0500 Subject: VCSDownloadStrategy: document acceptable ref types --- Library/Homebrew/download_strategy.rb | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3