Consolidate bottle defaults and remove a method
This commit is contained in:
parent
7e45cbafca
commit
7e8c693218
@ -67,13 +67,8 @@ def bottle_regex
|
|||||||
Pathname::BOTTLE_EXTNAME_RX
|
Pathname::BOTTLE_EXTNAME_RX
|
||||||
end
|
end
|
||||||
|
|
||||||
def bottle_root_url f
|
|
||||||
root_url = f.bottle.root_url
|
|
||||||
root_url ||= 'https://downloads.sf.net/project/machomebrew/Bottles'
|
|
||||||
end
|
|
||||||
|
|
||||||
def bottle_url f, tag=bottle_tag
|
def bottle_url f, tag=bottle_tag
|
||||||
"#{bottle_root_url(f)}/#{bottle_filename(f, {:tag => tag})}"
|
"#{f.bottle.root_url}/#{bottle_filename(f, :tag => tag)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def bottle_tag
|
def bottle_tag
|
||||||
|
|||||||
@ -98,7 +98,7 @@ class Bottle < SoftwareSpec
|
|||||||
@revision = 0
|
@revision = 0
|
||||||
@prefix = '/usr/local'
|
@prefix = '/usr/local'
|
||||||
@cellar = '/usr/local/Cellar'
|
@cellar = '/usr/local/Cellar'
|
||||||
@root_url = nil
|
@root_url = 'https://downloads.sf.net/project/machomebrew/Bottles'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checksum methods in the DSL's bottle block optionally take
|
# Checksum methods in the DSL's bottle block optionally take
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user