Skip to content
Browse files

fix ruby-build url

  • Loading branch information...
1 parent c85364c commit a4c84829428dbf99c43b563a2ca67a6a944f7af5 @wr0ngway committed Feb 8, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 templates/base/config/rubber/deploy-setup.rb
View
9 templates/base/config/rubber/deploy-setup.rb
@@ -7,17 +7,18 @@
task :install_ruby_build do
rubber.sudo_script "install_ruby_build", <<-ENDSCRIPT
if [[ ! `ruby-build --version 2> /dev/null` =~ "#{rubber_env.ruby_build_version}" ]]; then
- wget -q https://github.com/sstephenson/ruby-build/tarball/v#{rubber_env.ruby_build_version} -O /tmp/ruby-build.tar.gz
+ echo "Installing ruby-build v#{rubber_env.ruby_build_version}"
+ wget -q https://github.com/sstephenson/ruby-build/archive/v#{rubber_env.ruby_build_version}.tar.gz -O /tmp/ruby-build.tar.gz
# Install ruby-build.
tar -C /tmp -zxf /tmp/ruby-build.tar.gz
- cd /tmp/sstephenson-ruby-build-*
+ cd /tmp/ruby-build-*
./install.sh
# Clean up after ourselves.
cd /root
- rm -rf /tmp/sstephenson-ruby-build-*
- rm /tmp/ruby-build.tar.gz
+ rm -rf /tmp/ruby-build-*
+ rm -f /tmp/ruby-build.tar.gz
# Get rid of RVM if this is an older rubber installation.
if type rvm &> /dev/null; then

0 comments on commit a4c8482

Please sign in to comment.
Something went wrong with that request. Please try again.