Issue #6786 has been updated by Pieter van de Bruggen.

Status changed from Ready For Testing to Accepted
Assignee set to Pieter van de Bruggen

This seems to have not only broken some code (fixable), but to be a poor choice 
for the long term.  I will be revisiting this task to remove the module 
namespace solution and replace it with a lookup method.
----------------------------------------
Bug #6786: Redundant mechanisms to access interface instances
https://projects.puppetlabs.com/issues/6786

Author: Paul Berry
Status: Accepted
Priority: Normal
Assignee: Pieter van de Bruggen
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.

Reply via email to