I have a question relating to can you find out if a class has been inherited 
from? Take the follow example:

 class basemodule{
   notify{'basemodule':                                                         
                                                                                
                                            
     message => "Im being called from basemodule"
   } 
   if amiinherited($name){
     notice('Yes')
   }
 } 
 
 class extendedmodule inherits basemodule{
   Notify['basemodule']
   {
     message => "Im being called from extenedmodule",
   } 
 } 
 include basemodule
 include extended module

Within the basemodule class is there anyway to know that you have been 
inherited from. I have checked the name var, and also pocked around in the 
scope and resource object using a custom function but haven't found anything. 
Is the only way to find out if a class has been inherited, to inspect the 
catalog? Or am i missing something?

-- 
Thanks, Steve


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to