Corporate RubyGems Repository

R

Roustem Karimov

I am working on a few in-house ruby projects. We have different
environments and rubygems looks like a great way to install and manage
ruby apps across multiple servers.

I configured internal gems repository and setup rake to publish the
apps. Everything is perfect except one small thing. Gem tool expects to
have "/yaml.Z" or "/yaml" file in the repository with all gemspecs in
it. I create it manually for now...

Is there a code to generate yaml file out of all gems in the
repository?

- Roustem
 
J

jim

* Roustem Karimov said:
I am working on a few in-house ruby projects. We have different
environments and rubygems looks like a great way to install and manage
ruby apps across multiple servers.

Hmm, interesting.
I configured internal gems repository and setup rake to publish the
apps. Everything is perfect except one small thing. Gem tool expects to
have "/yaml.Z" or "/yaml" file in the repository with all gemspecs in
it. I create it manually for now...

Can you give some more detail.
Is each computer required to do a 'gem install'?
If so, (assuming all the computers can see a local gem repository)
why didn't you just install the apps into this directory?
Is it because of the different environments? If so, what
was the specific hindrance, if you don't mind.
 
R

Roustem Karimov

Is each computer required to do a 'gem install'? If so, (assuming
all the computers can see a local gem repository) why didn't you
just install the apps into this directory?

Yes. It is very convenient. We installed rubygems on all servers and
created .gemrc file with

gem: --source http://buildbox/

Now, the only thing administrator does to redeploy the application is
type "gem install appXYZ". He doesn't have to worry about location or
version number.

Using a common directory has some issues, e.g. firewalls between
servers, etc. Using HTTP-based repository is so much easier. Besides,
we do the same thing for Java apps as well.
 
J

jim

* Roustem Karimov said:
Yes. It is very convenient. We installed rubygems on all servers and
created .gemrc file with

gem: --source http://buildbox/

Now, the only thing administrator does to redeploy the application is
type "gem install appXYZ". He doesn't have to worry about location or
version number.

Using a common directory has some issues, e.g. firewalls between
servers, etc. Using HTTP-based repository is so much easier. Besides,
we do the same thing for Java apps as well.

This is nice.
I am curious. Why did you not use RPA?
Do you have a way to do a complete build from scratch?
 
R

Roustem Karimov

I am curious. Why did you not use RPA?
I didn't know about RPA. RubyGems had better marketing, I guess... :)
Do you have a way to do a complete build from scratch?
Rake builds, tests, and copies the gem to repository in one command.
 
C

Chad Fowler

I am working on a few in-house ruby projects. We have different
environments and rubygems looks like a great way to install and manage
ruby apps across multiple servers.

I configured internal gems repository and setup rake to publish the
apps. Everything is perfect except one small thing. Gem tool expects to
have "/yaml.Z" or "/yaml" file in the repository with all gemspecs in
it. I create it manually for now...

Very cool! David Heinemeir Hansson is also doing this for the beta
gems of Rails. For a simple solution, you can also use the gem_server
that comes with RubyGems, but it requires you to leave a webrick
process running.
Is there a code to generate yaml file out of all gems in the
repository?

Rich created this for RubyForge. I think it will do what you want:

http://rubyforge.org/cgi-bin/viewcv...rubygems&content-type=text/vnd.viewcvs-markup


--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 100,000 gems served!)
 

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

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top