Issue #8098 has been updated by eric sorenson.

To the contrary, having separate _classes_ each in a file which is named the 
same thing as the class itself is how ruby, python, etc work.

I can definitely understand if you have lots of tiny defined types that you 
would want them to all be in the same file. You can do that, as long as it's 
'init.pp'.
----------------------------------------
Feature #8098: Ability to autoload modules/modulename/manifests/modulename.pp
https://projects.puppetlabs.com/issues/8098#change-66086

Author: Giles Constant
Status: Rejected
Priority: Low
Assignee: eric sorenson
Category: 
Target version: 
Affected Puppet version: 
Keywords: module autoload filename
Branch: 


Hi!

It would be cool if you could autoload foo/manifests/foo.pp instead of init.pp.

Why?

Well, I've got about 8 files open in this editor, and they're all called 
"init.pp" which makes it difficult to switch between them using the keyboard to 
auto-complete their names.  It forces me to use the mouse.  Even then, I can't 
always remember which one to click on.  It's a slight drain on productivity 
when you can't find the file you want to refer to!

Of course, you could just put an import statement in init.pp, but that might 
discourage people from doing it, and if it isn't considered recommended 
behaviour, people probably won't do it.

What do you think?




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