Issue #1461 has been updated by Luke Kanies.
What should the syntax for this look like? It'd have to be parse-time, but I
can't think of a clean syntax. Something like:
<pre>
class foo confine(operatingsystem => somethingorother) {
...
}
</pre>
Seems a bit messy - we don't otherwise support hashes in the class prototype.
The internals of this would be very easy now that we've pulled the classes out
of the AST stuff, but the specification seems a bit hard.
----------------------------------------
Feature #1461: Class 'confine' capability
http://projects.reductivelabs.com/issues/1461
Author: Martha Greenberg
Status: Accepted
Priority: High
Assigned to:
Category: language
Target version: Rowlf
Patch: None
Affected version: 0.24.8
Keywords: class confine
Branch:
It would be very useful (especially for the CommonModules project) to be able
to confine a class to, say, a specific OS. Ideally, one should be able to
confine objects as well.
--
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.