Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: RFC - Module::Cooker (File::ShareDir::Install)

by boftx (Chaplain)
on Dec 02, 2013 at 08:48 UTC ( #1065258=note: print w/ replies, xml ) Need Help??


in reply to Re: RFC - Module::Cooker (File::ShareDir::Install)
in thread RFC - Module::Cooker - UPDATE

I'm not quite sure what you mean. I am using File::HomeDir in the script to get what I hope is the user's home dir so I can locate an optional local config file. With regards to data files, Module::Cooker places its data files under its own directory, see _basename_dir, but that can be overridden by specifying a local data dir if desired.

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


Comment on Re^2: RFC - Module::Cooker (File::ShareDir::Install)
Select or Download Code
Re^3: RFC - Module::Cooker (File::ShareDir::Install)
by Anonymous Monk on Dec 02, 2013 at 08:52 UTC

    I'm not quite sure what you mean ... Module::Cooker places its data files under its own directory

    Pretty much what I said, don't do that, use sharedir , sharedir is the "official" way ... perldoc/pod2html... will all find your "data files" and treat them as real perl modules ... because they live in the module tree and are named like modules ... you avoid that with sharedir , its why its the "official" standard :)

    Also remember to consider version-ing or even theme-ing your template sets ...

      I need to think on this. My gut is telling me that there is a reason that what you suggest would not work, but I can't put my finger on it. :)

      As to versioning/theming of the templates, that is something I had not thought of. I just assumed (yeah, I know) that using git to handle that for the distro was enough.

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

        As to versioning/theming of the templates, that is something I had not thought of. I just assumed (yeah, I know) that using git to handle that for the distro was enough.

        Well, yeah, using git is enough for your purposes of keeping track, but what about folks who come to depend on your module? and your sharedir h2xs-1.0.0 set of templates ... which included the controversial Fuzzy.PL and the obsolete Fnork.PL , both of which are gone in Module-Cooker-0.02 .... but Module-Cooker-Fantastic-0.01 depends on both files and doesn't include a copy.... or some such fantasy scenario :)

        :D

        Your template sets probably won't change that drastically ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1065258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-10-20 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls