Project reference question

A

Allen Riddle

So we decided to give Ruby a shot at the company I work at. I have a
question regarding project structures. Maybe I'm going about this all
wrong because I'm used to the way we do things in Java, but what I would
like to do is have our "enterprise" ruby project that has source for all
things enterprise related. We also have a Rails app, and I want to be
able to reference the enterprise project classes in rails. When
developing locally, do we need to create a Gem for the "enterprise"
project and install that in our repo, and just have rails access that?
And after we make changes, we run rake to update the gem? We are using
Eclipse with RDT. It doesn't appear that there is such a thing as a
"Project Reference", otherwise I would just have the rails app refer to
the "enterprise" ruby application. I hope this is clear enough, but I'm
just looking to see what common practice is or to see what ideas the
community may have. Thanks.
 
L

Lyle Johnson

When developing locally, do we need to create a Gem for the "enterprise"
project and install that in our repo, and just have rails access that?

That should work. If you're using Subversion as your SCM system, you
might also consider the use of the svn:externals feature to embed the
"enterprise" code library into your Rails application(s) code. (Other
SCM tools may have similar features.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top