Sha256: e770003ce9ef71160643e1bdad41b9e92be4236e26b5fe79f8cc2df199dc5bff

Contents?: true

Size: 683 Bytes

Versions: 9

Compression:

Stored size: 683 Bytes

Contents

# == Class: rbenv
#
# Install rbenv from a system package and create an `/etc/profile.d` to do
# the following for all new shell sessions:
#
# - Set `RBENT_ROOT` to a common system path.
# - Run `rvenv init`.
#
# === Parameters:
#
# [*global_version*]
#   Version to use. A matching `Rbenv::Version[]` resource must exist,
#   unless `system` is specified.
#   Default: system
#
class rbenv(
  $global_version = 'system'
) {
  include rbenv::params

  package { 'rbenv':
    ensure => present,
  } ->
  file { '/etc/profile.d/rbenv.sh':
    ensure  => present,
    mode    => '0755',
    content => template('rbenv/etc/profile.d/rbenv.sh.erb'),
  } ->
  class { 'rbenv::global': }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
freighthop-0.2.1 modules/rbenv/manifests/init.pp
freighthop-0.2.0 modules/rbenv/manifests/init.pp
freighthop-0.1.0 modules/rbenv/manifests/init.pp
freighthop-0.0.6 modules/rbenv/manifests/init.pp
freighthop-0.0.5 modules/rbenv/manifests/init.pp
freighthop-0.0.4 modules/rbenv/manifests/init.pp
freighthop-0.0.3 modules/rbenv/manifests/init.pp
freighthop-0.0.2 modules/rbenv/manifests/init.pp
freighthop-0.0.1 modules/rbenv/manifests/init.pp