Sha256: 0ceef88b3bbeefe596c9813aab5c501fabac133ea044b165130007ae1d649ceb
Contents?: true
Size: 933 Bytes
Versions: 12
Compression:
Stored size: 933 Bytes
Contents
define rbenv::client( $user, $home, $ruby, $owner, $source, $rc = ".profile" ) { if ! defined(Exec["rbenv::compile ${owner} ${ruby}"]) { fail("Ruby version ${ruby} is not compiled for ${owner}") } file {"${user}/.rbenv": ensure => link, path => "${home}/.rbenv", target => "${source}/.rbenv", } file {"${user}/${rc}": ensure => link, path => "${home}/${rc}", target => "${source}/${rc}", } file {"${user}/.gemrc": ensure => link, path => "${home}/.gemrc", target => "${source}/.gemrc", } file {"${user}/.rbenv-version": ensure => present, path => "${home}/.rbenv-version", content => "$ruby\n", } file {"${user}/bin": ensure => directory, path => "${home}/bin", owner => $user, } file {"${user}/bin/rbenv": ensure => link, path => "${home}/bin/rbenv", target => "${source}/.rbenv/bin/rbenv", } }
Version data entries
12 entries across 12 versions & 2 rubygems