Sha256: 62267e5b95c7fcada4149e0b1a642c4a81c744be5476ef5a4887b7bbd8d85200

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

namespace :ruby do
  task :install do
    ruby_version = File.read('.ruby-version').strip[/\Aruby-(.*)\.\d\Z/,1]
    on roles :app do
      execute <<-EOBLOCK
        sudo apt-add-repository -y ppa:brightbox/ruby-ng
        apt-get update
        sudo apt-get install -y ruby#{ruby_version} ruby#{ruby_version}-dev
      EOBLOCK
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prun-ops-0.2.1 lib/capistrano/config/ruby.rake
prun-ops-0.2.0 lib/capistrano/config/ruby.rake