Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2013 22:48
Show Gist options
  • Save anonymous/4638618 to your computer and use it in GitHub Desktop.
Save anonymous/4638618 to your computer and use it in GitHub Desktop.
Stripped down rbenv package install
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