On Mar 19, 2009, at 5:21 AM, Bruce Richardson wrote:
> > On Thu, Mar 19, 2009 at 10:12:39AM +0000, Bruce Richardson wrote: >> This isn't an idle line of thought, by the way. There's obviously >> a lot >> of interest in class/module dependencies, which are not easy to >> create >> or test. Puppet would benefit from having a test for whether or >> not a >> specific class has been included and, I think, for whether or not a >> specific class *or one that inherits from it* has been included. > > It's nice to find, though, that "require => Class[$classname]" will > create a dependency on $classname *or any class that inherits from > it*. > I don't think that's documented anywhere - hope I can remember my > username/password on the wiki. The whole inheritance tree is connected on the graph, so requiring the top of the tree implicitly requires everythimg under it. Basically, relationships just make a new edge in the DAG (directed acyclic graph), and the edges are what determine the sorting order. -- Beware of all enterprises that require new clothes. -- Henry David Thoreau --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---