Skip to content

Instantly share code, notes, and snippets.

@valachi
Created July 26, 2012 15:39
Show Gist options
  • Save valachi/3182779 to your computer and use it in GitHub Desktop.
Save valachi/3182779 to your computer and use it in GitHub Desktop.
node['packages'].each do |package_name|
package package_name
end
bash "RVM Multi-User installing" do
code "sudo curl -L https://get.rvm.io | sudo bash -s stable"
end
bash "Updating rvm" do
code "#{node['rvm_bin']} get head"
code "#{node['rvm_bin']} reload"
end
node['rubies'].each do |ruby|
bash "Installing #{ruby}" do
code "#{node['rvm_bin']} install #{ruby}"
end
end
bash "Setting default ruby to 1.9.3" do
code "#{node['rvm_bin']} --default use 1.9.3"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment