Issue #6786 has been reported by Paul Berry.
----------------------------------------
Bug #6786: Redundant mechanisms to access interface instances
https://projects.puppetlabs.com/issues/6786
Author: Paul Berry
Status: Accepted
Priority: Normal
Assignee:
Category: interfaces
Target version: 2.6.x
Affected Puppet version:
Keywords:
Branch:
Interface instances may be accessed in two ways:
Puppet::Interface::interface(:<interface_name>)
Or:
Puppet::Interface::<Interface_name>
This is unnecessary and confusing. We should standardize on one mechanism and
eliminate the other. I recommend we keep the second mechanism, since it allows
actions to be invoked using a syntax that looks very familiar to Ruby
programmers, namely:
Puppet::Interface::<Interface_name>.<action_name>()
Note: there already exist methods in the standard ruby library for
programmatically accessing constants, so we would not give up any functionality
by making this change.
--
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://projects.puppetlabs.com/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.