Simple GEM setup
January 30th, 2007 -
At my work, I’ve manage to sneak Ruby on Rails in, with the help of my co-developers. While doing this, I’ve helped my co-workers setup their machines so that they have Ruby, Ruby Gems and Rails installed. This way they could start learning the language. I’ve also had to setup our servers, with help from our IT department.
Safe to say, I’ve had to install Ruby Gems, a lot of them, over and over. In the future, I’ll have to setup more boxes. This brings us to my new script.
I’ve written another bash script (sorry windows users – get a Mac or Linux) that will install a lot of Ruby Gems, all at once, including their dependencies. I have yet to iron out how to get past having to select a specific version of a gem, when it is given in the terminal for the user to pick.
You can either add or take away from this script to your hearts content. I just wrote it for myself when I have to setup other machines that are for Ruby applications. Perhaps you might find it helpful.
Just grab the file and let me know if it was helpful, or if you made changes so that the script handles choosing the specific version for you.
Tags: development
Comments
Robert
January 31st, 2007
Yannick: yup, yup. It has been quite an experience watching a PHP shop switch over to Ruby on Rails. Even the CEO thinks it is great.
Matt (mithrill)
January 31st, 2007
That’s very cool that you were able to get enough buy in to switch a shop from PHP to Ruby on Rails. I bet it is great experience to be involved in the conversion process. It can only strengthen your skills—getting in on the server side of things must be a blast despite some of the pain that goes along with the server environment.
I just downloaded your script. I’ll have to take a look at the code because I’m on a business trip and only have a PC with me…actually I do have a linux live cd but that won’t do me much good either.
Yet once again, thanks for sharing your knowledge and experience.
Robert
February 1st, 2007
Matt: Yeah, it has been a great ride to watch the changes being made. There are definitely a few who don’t want to switch no matter what. It has more to do with the fact that they don’t want to learn something new.
When I actually have more time, I’ll be writing these scripts in Ruby so they can be ran on any OS. It just has been much faster for me to write a bash script when I am in crunch time.
Hopefully soon, I can release these as rake tasks or write them as GEMs.
Commenting has been turned off.
Yannick
January 30th, 2007
Ahhh…so this is what you were up to while we were talking on IM. Sneaky Robert, Trix are for kids..err..wrong message.
That’s really cool that you’re getting your co-developers to give RoR a try.
I’ll be sure to give your script a test run. :)
Blessings.