Ensure that all required keys are passed to bottle_filename
This commit is contained in:
parent
a3dad588a8
commit
8a777e65c4
@ -4,8 +4,11 @@ require 'extend/ARGV'
|
|||||||
require 'bottle_version'
|
require 'bottle_version'
|
||||||
|
|
||||||
def bottle_filename options={}
|
def bottle_filename options={}
|
||||||
suffix = ".#{options[:tag]}#{bottle_suffix(options[:revision])}"
|
name = options.fetch(:name)
|
||||||
"#{options[:name]}-#{options[:version]}#{suffix}"
|
version = options.fetch(:version)
|
||||||
|
tag = options.fetch(:tag)
|
||||||
|
revision = options.fetch(:revision)
|
||||||
|
"#{name}-#{version}.#{tag}#{bottle_suffix(revision)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def built_as_bottle? f
|
def built_as_bottle? f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user