Issue #2954 has been reported by Luke Kanies.
----------------------------------------
Feature #2954: Classes should support attributes
http://projects.reductivelabs.com/issues/2954
Author: Luke Kanies
Status: Accepted
Priority: Normal
Assigned to:
Category: language
Target version: Rowlf
Affected version: 0.25.1
Keywords:
Branch:
Classes should support statically declared attributes, just like definitions.
It's easy to add the attribute functionality to classes, the only hard part is
the syntax.
I propose that we do a bit of hackery to the grammar and support 'class' as a
resource type, to retain the singleton behaviour:
<pre>
class foo($var) { ... }
class { foo: var => yayness }
</pre>
I think this is a touch confusing, but I don't see another way to do it.
Preferably, all of the attributes would be loaded from an external node tool;
they'd be statically declared there, and if someone just used 'include' with a
class that required attributes that weren't set externally, it would be a
compile error.
Again, set for rowlf, but unlikely to make it in.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.