Skip to content

Commit

Permalink
git, rvm
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Mar 28, 2011
1 parent e271887 commit e3131b9
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions assets/bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

2 changes: 2 additions & 0 deletions assets/rvm_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
4 changes: 4 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
require 'packages/postgres'
require 'packages/redis'
require 'packages/iptables'
require 'packages/rvm'
require 'packages/git'

deployment do
delivery :capistrano do
Expand All @@ -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

7 changes: 7 additions & 0 deletions packages/git.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package :git do
description "Git version control system"
apt %w(git)
verify do
has_executable "git"
end
end
21 changes: 21 additions & 0 deletions packages/rvm.rb
Original file line number Diff line number Diff line change
@@ -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.