Sha256: db979b7b5ac7c3d040171633fe6b842e3d18499c624c9b64b5cee08d41e440e8
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
Capistrano::Configuration.instance(:must_exist).load do set_default :ruby_version, "1.9.3-p125" set_default :rbenv_bootstrap, "bootstrap-ubuntu-10-04" namespace :rbenv do desc "Install rbenv, Ruby, and the Bundler gem" task :install, roles: :app do run "#{sudo} apt-get -y install curl git-core" run "curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash" bashrc = <<-BASHRC if [ -d $HOME/.rbenv ]; then export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" fi BASHRC put bashrc, "/tmp/rbenvrc" run "cat /tmp/rbenvrc ~/.bashrc > ~/.bashrc.tmp" run "mv ~/.bashrc.tmp ~/.bashrc" run %q{export PATH="$HOME/.rbenv/bin:$PATH"} run %q{eval "$(rbenv init -)"} run "rbenv #{rbenv_bootstrap}" run "rbenv install #{ruby_version}" run "rbenv global #{ruby_version}" run "gem install bundler --no-ri --no-rdoc" run "rbenv rehash" end after "deploy:install", "rbenv:install" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cap_bootstrap-0.3.0 | lib/cap_bootstrap/recipes/rbenv.rb |
cap_bootstrap-0.2 | lib/cap_bootstrap/recipes/rbenv.rb |
cap_bootstrap-0.1 | lib/cap_bootstrap/recipes/rbenv.rb |