Make top-level resources apply to all specs
This commit is contained in:
parent
360a099faa
commit
b40b46e3f6
@ -711,8 +711,7 @@ class Formula
|
|||||||
|
|
||||||
# Define a named resource using a SoftwareSpec style block
|
# Define a named resource using a SoftwareSpec style block
|
||||||
def resource name, &block
|
def resource name, &block
|
||||||
@stable ||= create_spec(SoftwareSpec)
|
specs.each { |spec| spec.resource(name, &block) }
|
||||||
@stable.resource(name, &block)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def dependencies
|
def dependencies
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user