Puppet Class: ruby

Defined in:
puppet/modules/ruby/manifests/init.pp

Overview

Class: ruby

Provides versions of Ruby from system packages, gems, and installation of project dependencies via Bundler.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'puppet/modules/ruby/manifests/init.pp', line 6

class ruby {
    $gem_bin_dir = '/usr/bin'

    require_package('ruby', 'ruby-dev', 'bundler')

    # Remove rbenv environment settings
    file { '/etc/profile.d/rbenv.sh':
        ensure  => absent,
        require => Package['ruby'],
    }

    file { '/etc/gemrc':
        content => 'gem: --no-ri --no-rdoc',
    }
}