Hi all,
I wanted to open the feature request
http://projects.puppetlabs.com/issues/5824 for discussion.
I like to specify all dependencies not defined within the enclosed scope
using the new relationship syntax.
This leads to nice clean error messages if the required resources have not
been declared.
class foo (
$bar => 'baz'
) {
Class['foo']->Class['super-ninja-app']
.. resources and what-not
}
I often use this syntax to specify external dependencies of the class
itself. I am starting to use this pattern *a lot*
Having to specify
Class['foo']-> within class foo { }
in less than optimal for two reasons:
1. more characters
2. if the name of the class changes, then the reference to the class also
needs to change
I would like to introduce the 'self' keyword to be used in this situation.
-Dan
--
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.