Sha256: dd959a288bc69d8a85fb433aa1bb1d54bd36093e358d66c5d1c59bebf03ebe0a

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 Bytes

Contents

set_default :ruby_version, "1.9.3-p194"

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"
    run "echo 'export PATH=\"$HOME/.rbenv/bin:$PATH\"' > ~/.bashrc"
    run "echo 'eval \"$(rbenv init -)\"' >> ~/.bashrc"
    run "rbenv install #{ruby_version}"
    run "rbenv global #{ruby_version}"
    run "gem install bundler --no-ri --no-rdoc"
    run "rbenv rehash"
    template "gemrc.erb", "/home/webmaster/.gemrc"
  end
  after "deploy:install", "rbenv:install"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redde-0.1.1 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.1.0 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.8 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.7 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.6 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.5 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.4 lib/generators/redde/deploy/templates/recipes/rbenv.rb
redde-0.0.3 lib/generators/redde/deploy/templates/recipes/rbenv.rb