in reply to RFC - Module::Cooker - UPDATE

G'day boftx,

I wondered if this had the ability to add new modules to a distribution. For example, you create Some::Module::X; later you want subclasses Some::Module::X::Y and Some::Module::X::Z.

I looked through the code (albeit briefly) and couldn't find anything like this. The die "Distribution directory already exists: " ... in _process_template() rather suggests it's not possible.

I think this would be a nice feature to have. Of course, during my minimal tour of the code, I could have missed it; if not, perhaps consider for a later version.

As a general comment, the code looks well written, nicely formatted and easy to read. I haven't downloaded or tested any part of it; so, that's really just a (positive) report on style.

-- Ken

Replies are listed 'Best First'.
Re^2: RFC - Module::Cooker
by boftx (Deacon) on Dec 02, 2013 at 08:02 UTC

    You are correct that it does not have a mechanism for adding a module to and existing distro, yet. I read a couple of comments elsewhere that said the desire for that feature was the inspiration for writing a sub-class to enable other modules to do that. Thinking of the general use-case in a mature project environment that is something that might be needed. I have tried to keep that in mind for future enhancements.

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.