Issue #6753 has been updated by Daniel Pittman.

To reflect the various viewpoints, we have elected to move the "plumbing" parts 
of the code away from the user focus parts, but retain the majority of the 
current infrastructure.  There are some costs to this, but we aim to make it 
possible to revisit the boilerplate parts of the decision later on, once we 
have real world experience in this.
----------------------------------------
Refactor #6753: Redundant application files for interfaces is customer facing 
debt 
https://projects.puppetlabs.com/issues/6753

Author: Markus Roberts
Status: Accepted
Priority: Normal
Assignee: 
Category: interfaces
Target version: 2.6.x
Affected Puppet version: 
Keywords: 
Branch: 


The plugin form of interfaces requires a small file for each indirection noun 
of the form:

<pre>
require 'puppet/application/indirection_base'

class Puppet::Application::Catalog < Puppet::Application::IndirectionBase
end
</pre>

These share a directory with 1) base class implementations, 2) the actual 
"interface" implementation.

This has a number of unintended and confusing user-visible consequences (e.g. 
interface_base shows up in "puppet --help" as a command when it is not, etc.) 
and asking users to understand / maintain this structure imposes an unnecessary 
barrier to use / extension of the interface facility.

Therefore, in the integrated version of interfaces:

1) interface_base & indirection_base should be moved to a more appropriate 
location
2) the "boilerplate" files should be auto-discovered / created by an 
appropriate hook in core
3) the interface command should be moved into the application directory with 
agent, etc.
4) this interface-specific application directory should be eliminated





-- 
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