Issue #8098 has been updated by Giles Constant.
I'm going to comment on my own feature request.
If you had the opportunity to go back 6 years, and you'd asked me, I would've
said "do that". To go with what I'm suggesting NOW, you're risking a clash
with foo::foo. I guess we have to live with it, and possibly write a set of
puppet rules for ctags to get around my editing problem. Although I still have
to maintain, it's REALLY frustrating!
On a similar note, autoload doesn't work with resources as members of a class.
init.pp:
class foo
{
}
bar.pp:
class foo::bar
{
define thingy() P{
}
....
foo::bar::thingy doesn't autoload. It should!
----------------------------------------
Feature #8098: Ability to autoload modules/modulename/manifests/modulename.pp
https://projects.puppetlabs.com/issues/8098
Author: Giles Constant
Status: Needs Decision
Priority: Low
Assignee: Nigel Kersten
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.