Closed goldhoorn closed 9 years ago
@marvin2k you are one of the internal reviewers too (cc)
to clarify, main "owner" is @doudou who has to agree
Overall, the functionality seem useful and well-integrated.
@doudou i like the "hook" naming more thatn "generation", hook make kind of clear that it's a kind of callback from the plugin and it is (for me) from a semantic point clearer. "early" is kind of "somewhere early but unknown when" for me. "pre" sayes is really "before".
However if you want to keep the old naming i remove the renaming part from this commit and leave only the extension. I updated the PR according the other remarks...
btw. you requested each_
(1) we are talking about people writing orogen plugins. That's not your standard developer. (2) a each_ method is a METHOD. It is written all the time without using inerhited_enumerable, which in any case should only be used when inheritance is a concern (i.e. if one would like its plugins to "inherit" the auto-folders that its parent class defines). Definitely not a primary concern here, I would DEFINITELY not use inheritedenumerable, but simply define the each method. (3) a each_ method would be a great fit for a base plugin class (which would be a good thing to have, if only to define a "template" for plugins and document their development/integration).
And I do agree with the new naming for hooks
updated
Still not using the #each_ method.
Maybe i should push my stuff to github ;) updated
This PR is for @jmachowinski in detail #43. The plugin is not (yet) ported, but i would like to ask @doudou for his opinion.