Created
April 13, 2012 14:13
-
-
Save pikesley/2377170 to your computer and use it in GitHub Desktop.
quick-n-dirty RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node['amee_projects'].each do |a| | |
user = data_bag_item(:amee_projects, a['project-owner']) | |
execute "install rvm for #{user['id']}" do | |
command "sudo su - #{user['id']} -c 'curl -L get.rvm.io | bash -s stable'" | |
end | |
execute "install ruby #{user['ruby']} for #{user['id']}" do | |
command "sudo su - #{user['id']} -c 'rvm install #{user['ruby']}'" | |
end | |
execute "set default ruby as #{user['ruby']} for #{user['id']}" do | |
command "sudo su - #{user['id']} -c 'rvm use #{user['ruby']} --default'" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment