Sha256: 15dbf2e8eeb2b2c8b59803c0a77d854f22b318bb4dcc145466466026a5db43b6
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
require "capistrano-rails-server/recipes/common" configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do set_default :ruby_version, "2.0.0-p247" set_default :rbenv_bootstrap, "bootstrap-ubuntu-12-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 -f #{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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-rails-server-1.2.0 | lib/capistrano-rails-server/recipes/rbenv.rb |
capistrano-rails-server-1.1 | lib/capistrano-rails-server/recipes/rbenv.rb |