Make top-level resources apply to all specs

This commit is contained in:
Jack Nagel 2013-09-17 21:25:39 -05:00
parent 360a099faa
commit b40b46e3f6

View File

@ -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