Created
January 25, 2013 22:48
-
-
Save anonymous/4638618 to your computer and use it in GitHub Desktop.
Stripped down rbenv package install
This file contains hidden or 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
include_recipe 'rbenv::system_install' | |
node['rbenv']['rubies'].each do |ruby| | |
execute "Install ruby #{ruby}" do | |
command "tar xvfz /opt/chef-solo/current/vendor/rbenv-system-ubuntu-12.04-#{ruby}-x86_64.tar.gz" | |
cwd "/usr/local/rbenv/versions" | |
only_if do | |
!File.exists?("/usr/local/rbenv/versions/#{ruby}") | |
end | |
end | |
end | |
global = node['rbenv']['global'] | |
rbenv_global global |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment