Sha256: 6f5567031dcb333576ed063b07e5ed939d7a505f4c5e33e9397cc0ac0a225010

Contents?: true

Size: 870 Bytes

Versions: 5

Compression:

Stored size: 870 Bytes

Contents

namespace :ruby do
  task :brightbox do
    ruby_version = File.read('.ruby-version').strip[/\Aruby-(.*)\.\d\Z/,1]
    on roles :all do
      execute <<-EOBLOCK
        sudo apt-add-repository -y ppa:brightbox/ruby-ng
        sudo apt-get update
        #{apt_nointeractive}  ruby#{ruby_version} ruby#{ruby_version}-dev
      EOBLOCK
    end
  end
  task :rvm do
    on roles :all do
      execute <<-EOBLOCK
      sudo apt-add-repository -y ppa:rael-gc/rvm
      sudo apt-get update
      #{apt_nointeractive} rvm
      sudo usermod -a -G rvm $USER
      EOBLOCK
    end
  end
  task :install_rvm_project_version do
    ruby_version = File.read('.ruby-version').strip

    on roles :all do
      execute <<-EOBLOCK
      source "/etc/profile.d/rvm.sh"
      rvm install ruby-#{ruby_version}
      rvm --default use ruby-#{ruby_version}
      EOBLOCK
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prun-ops-0.3.4 lib/capistrano/config/ruby.rake
prun-ops-0.3.3 lib/capistrano/config/ruby.rake
prun-ops-0.3.2 lib/capistrano/config/ruby.rake
prun-ops-0.3.1 lib/capistrano/config/ruby.rake
prun-ops-0.3.0 lib/capistrano/config/ruby.rake