Hi,
I suppose that should be possible, although the autorequire block will
be a lot more complex than those you're using right now (obviously,
since those are almost trivial - in a good way :-)
You can filter the list of all resources in the catalog for interesting
things to autorequire. This general pattern might get you going
(untested though)
autorequire(...) do
self.catalog.resources.select { |res|
# pseudo-code: resource is of desired type
# and has desired properties/parameters
}.collect { |res|
res[:name]
}
end
Not even sure if :name is the correct key, but I hope this brings the
idea across.
HTH,
Felix
On 02/07/2014 12:51 PM, Gavin Williams wrote:
> In other-words, if I want the /application/ resource type to
> auto-require the appropriate /domain/ resource type, the only
> information I have to relate is based on the '/portbase/' param[3][4].