Sha256: 3994a6429637434d4a049fde6771b83361ba6f23cfe41d3c6e4902864eb86db3

Contents?: true

Size: 721 Bytes

Versions: 9

Compression:

Stored size: 721 Bytes

Contents

Capistrano::Configuration.instance(true).load do
  set :rubygems_version, "1.3.5"

  namespace :rubygems do
    before "rubygems:setup", "ruby:setup"

    desc "install rubygems"
    task :setup, :roles => :app do
      run "wget http://rubyforge.org/frs/download.php/60718/rubygems-#{rubygems_version}.tgz"
      run "tar xvzf rubygems-#{rubygems_version}.tgz"
      run "cd rubygems-#{rubygems_version}; sudo ruby setup.rb"
      run "#{sudo} rm /usr/bin/gem; #{sudo} ln -s /usr/bin/gem1.8 /usr/bin/gem"
    end

    desc "cleanup the files"
    task :cleanup do
      run "cd; rm -rf rubygems-#{rubygems_version}; rm -rf rubygems-#{rubygems_version}.*"
    end
    after "rubygems:setup", "rubygems:cleanup"

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cap-recipes-0.3.39 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.38 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.37 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.36 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.35 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.34 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.33 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.32 lib/cap_recipes/tasks/rubygems/install.rb
cap-recipes-0.3.30 lib/cap_recipes/tasks/rubygems/install.rb