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
|
||||
def resource name, &block
|
||||
@stable ||= create_spec(SoftwareSpec)
|
||||
@stable.resource(name, &block)
|
||||
specs.each { |spec| spec.resource(name, &block) }
|
||||
end
|
||||
|
||||
def dependencies
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user