'lo,

I've been toying with parametrized classes and have a question.

Given this manifest:

class foo($message) {
    notify{$message: }
}

class{"foo": message => "hello world"}


I can only have the last line once, a 2nd time the same causes duplicate 
resource warnings.  How are these classes different from defines in this case?  
Is the intention that we only ever 'include' such a class once and this makes 
them different from defines?

I recall early on some discussion that suggested you could do multiple of these 
new style include things but that the 'first' one will win as such since 
classes are still singletons, so I am not really sure here what the utility of 
these would be, what they bring to the table as they are today?


-- 
R.I.Pienaar

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

Reply via email to