Skip to content

Instantly share code, notes, and snippets.

@damm
Forked from fujin/test.rb
Created September 18, 2009 04:38
Show Gist options
  • Save damm/188876 to your computer and use it in GitHub Desktop.
Save damm/188876 to your computer and use it in GitHub Desktop.
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