Open rip747 opened 12 years ago
Unfortunately there's no way for us to hook into an Application.cfc and get this information out. If you've got a clever idea, I'm all ears, but short of scanning the file system for all Application.cfc's and then reading and parsing the file (NOT something I want to do), I don't see how it's possible.
sounds like you might be interested in https://github.com/foundrycf/foundry
@atutle the easiest way I can think of is just declare the ramen object inside the application.cfc like so
<Cfset ramen = createobject("component", "somepth.Ramen").init()>
<cfset ramen,addPackage("Whatever")>
i would also suggest maybe reaching out to the foundry project and see what differences, similarities the two projects bring. you and @joshuairl are two really talented programmers and i'm sure you guys could combine skills to make something awesome for the community.
fpm uses a foundry.json similar to npm's package.json. It is now able to determine dependencies, download and install them to a particular dir (foundry_modules) from the registry / directly from a git repo.
It does this via command prompt with the fpm install
.
Also, it has module.cfc that you can extend which allows you to require() other modules directly which operates just like nodes require.
You can also do fpm register
to add it to the FPM registry.
I'd love it if we could come up with a joint project effort that could solve this. :D :+1:
Had a poke around the foundrycf org's repo's and it looks like fpm is kind of like what I really wanted when I created Ramen. I sort of settled for something closer to the Railo extension manager. I'd be happy to contribute, but it looks like you're still pretty early-stage with everything. Do you have a sort of roadmap, or an idea for what needs to be working first? Maybe you can show me around what's already working?
first off I have to say that this is one really kewl project you all are working on.
what I'm wondering if there are plans to make ramen application specifc. basically declare ramen packages inside the application.cfc of a project sort of like how you can declare gems inside a rails project?