aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_support.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-02-09 19:05:53 -0800
committerMike McQuaid2013-03-01 17:49:09 +0000
commit22aec1d0d97ee20fdc31e2df278378fe17f9d07f (patch)
treec4fff084e50c4b53fe7b59d39273d271d9468eca /Library/Homebrew/formula_support.rb
parent443bf9f287090d5c2d309e86b2673b57744dab8c (diff)
downloadbrew-22aec1d0d97ee20fdc31e2df278378fe17f9d07f.tar.bz2
Add custom bottle URL support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
-rw-r--r--Library/Homebrew/formula_support.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index 2f3b10322..c9355d641 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -79,7 +79,7 @@ end
class Bottle < SoftwareSpec
attr_writer :url
- attr_reader :revision
+ attr_reader :revision, :root_url
# TODO: Can be removed when all bottles migrated to underscored cat symbols.
attr_reader :cat_without_underscores
@@ -113,6 +113,10 @@ class Bottle < SoftwareSpec
}
end
+ def root_url val=nil
+ val.nil? ? @root_url : @root_url = val
+ end
+
def revision val=nil
val.nil? ? @revision : @revision = val
end