Puppet Class: ruby::global
- Defined in:
- manifests/global.pp
Overview
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/global.pp', line 7
class ruby::global($version = '1.9.3') {
require ruby
if $ruby::provider == 'rbenv' {
if $version != 'system' {
ensure_resource('ruby::version', $version)
$require = Ruby::Version[$version]
} else {
$require = undef
}
file { "${ruby::rbenv::prefix}/version":
ensure => present,
owner => $ruby::user,
mode => '0644',
content => "${version}\n",
require => $require,
}
}
}
|