Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
split rubies installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jun 7, 2010
1 parent e71ece1 commit f6a9591
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions cookbooks/rvm/recipes/default.rb
Expand Up @@ -6,9 +6,18 @@
code <<SH
export HOME=/home/#{node[:owner_name]}
cd $HOME/.rvm/src && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
# Install common rubies
source $HOME/.rvm/scripts/rvm
rvm install 1.8.6,1.8.7,ree,1.9.1,jruby,rbx
SH
end

%w[1.8.6 1.8.7 ree 1.9.1 jruby rbx].each { |ruby|
script "rvm install #{ruby}" do
interpreter "bash"
action :run
user node[:owner_name]
code <<-SH
source $HOME/.rvm/scripts/rvm
[[ $(rvm list strings | grep #{ruby}) ]] && exit 0
rvm install #{ruby}
SH
end
}

0 comments on commit f6a9591

Please sign in to comment.