Skip to content

Instantly share code, notes, and snippets.

@damm
Forked from fujin/test.rb
Created Sep 18, 2009
Embed
What would you like to do?
if Gem.const_get "RubyGemsVersion" < "1.3.5"
%w{
rubygems
rubygems-doc
rubygems1.8
rubygems1.9
}.each do |p|
apt_package(p) { action :purge }
end
# install rubygems from src
remote_file "/usr/src/rubygems.tgz" do
source "rubygems-#{node[:rubygems][:version]}.tgz"
end
execute "install" do
command "ruby setup.rb"
cwd "/usr/src/rubygems-#{node[:rubygems][:version]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment