Railblazer - configuration helpers for running lots of Rails projects under Jenkins

From: Justin S. L.
Sent on: Sunday, April 8, 2012 7:12 PM
Hi folks,

I just set up a new Jenkins server for many of our client projects (all Rails apps), and I ended up creating a gem containing the code that I used to automate project configuration for our CI builds. There are three scripts included in the gem, which I called 'railblazer':
  1. app_adapter: given a Gemfile, determines whether the application runs on mysql, mysql2, or postgres
  2. blaze: (Shell) build script that can be used by Jenkins - uses defaults and settings that have been useful to us on a bunch of projects
  3. db_config: outputs a complete database.yml when given an adapter and app name. Uses a template included in the gem by default, or a local one if desired
The code that I wrote may be useful for automatically creating database.yml files locally as well as on CI servers.

You can install the gem can be installed by typing 'gem install railblazer' and the source code is on github:  http://github.com/stackbuilders/railblazer.

Hope that some of you find this useful! Let me know if you have any comments or suggestions.

Justin

--

CEO and Lead Developer

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy