diff options
| author | Jack Nagel | 2014-02-14 15:31:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-14 15:33:37 -0500 |
| commit | 41e3b2cad0d653ddbe6e88cfe875c9903972af7e (patch) | |
| tree | 25d65ac6ce8b45a870cc69c5589bcd7127e7fdba /Library | |
| parent | a25152b5a17f17d717e1590436d4a61c6e1d1222 (diff) | |
| download | brew-41e3b2cad0d653ddbe6e88cfe875c9903972af7e.tar.bz2 | |
VCSDownloadStrategy: document acceptable ref types
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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) |
