Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
bash "install rvm" do
user project_id
environment ({'HOME' => "/home/#{user_id}"})
code "curl -L get.rvm.io | bash -s stable; echo '[[ -s \"$HOME/.rvm/scripts/rvm\" ]] && . \"$HOME/.rvm/scripts/rvm\"' >> ~/.bashrc"
not_if "test -d /home/#{project_id}/.rvm"
end
bash "install ruby #{ruby_version}" do
user project_id
environment ({'HOME' => "/home/#{user_id}"})
code "PATH=$PATH:$HOME/.rvm/bin; rvm install #{ruby_version};"
not_if "test -d /home/#{project_id}/.rvm/rubies/#{ruby_version}"
end
bash "install ruby #{ruby_version} as default in rvm" do
user user_id
environment ({'HOME' => "/home/#{user_id}"})
code "PATH=$PATH:$HOME/.rvm/bin; rvm use #{ruby_version} --default"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.