Permalink
Browse files

git, rvm

  • Loading branch information...
1 parent e271887 commit e3131b99c1f3791dd0cb6da9663e929c2c3b907e @jferris jferris committed Mar 28, 2011
Showing with 38 additions and 0 deletions.
  1. +2 −0 README.md
  2. +2 −0 assets/bashrc
  3. +2 −0 assets/rvm_config
  4. +4 −0 main.rb
  5. +7 −0 packages/git.rb
  6. +21 −0 packages/rvm.rb
View
@@ -4,11 +4,13 @@ Continuous Sprinkles
Continuous Sprinkles is a [Sprinkle](https://github.com/crafterm/sprinkle) recipe to setup a Hudson CI server for Ruby development. It provides:
* Hudson
+* Git
* Apache proxy to Hudson
* MySQL
* Postgres
* Redis
* Ruby
+* RVM
* IPtables rules
Usage
View
@@ -0,0 +1,2 @@
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
+
View
@@ -0,0 +1,2 @@
+#!/bin/bash
+bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
View
@@ -6,6 +6,8 @@
require 'packages/postgres'
require 'packages/redis'
require 'packages/iptables'
+require 'packages/rvm'
+require 'packages/git'
deployment do
delivery :capistrano do
@@ -21,11 +23,13 @@
policy :ci, :roles => :master do
requires :hudson
+ requires :git
requires :ruby
requires :rubygems
requires :mysql
requires :postgres
requires :redis
requires :iptables
+ requires :rvm
end
View
@@ -0,0 +1,7 @@
+package :git do
+ description "Git version control system"
+ apt %w(git)
+ verify do
+ has_executable "git"
+ end
+end
View
@@ -0,0 +1,21 @@
+package :rvm do
+ description 'Ruby Version Manager'
+ transfer "assets/rvm_config", "/tmp" do
+ post :install, %{sudo -u hudson -H bash /tmp/rvm_config}
+ end
+ requires :bashrc, :curl
+end
+
+package :bashrc do
+ description "~/.bashrc for rvm"
+ transfer "assets/bashrc", "/tmp" do
+ post :install, %{mv /tmp/bashrc /var/lib/hudson/.bashrc}
+ end
+end
+
+package :curl do
+ apt "curl"
+ verify do
+ has_executable "curl"
+ end
+end

0 comments on commit e3131b9

Please sign in to comment.