2012-01-31 01:28:30 +00:00
|
|
|
class ruby($version) {
|
|
|
|
$path = bin_path($name)
|
|
|
|
$with_ruby_path = "${path}:${base::path}"
|
|
|
|
|
|
|
|
build_and_install { $name:
|
|
|
|
version => $version,
|
|
|
|
source => "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-<%= version %>.tar.gz",
|
|
|
|
require => Class['base']
|
|
|
|
}
|
|
|
|
|
|
|
|
gem { 'bundler':
|
|
|
|
require => Build_and_install[$name],
|
|
|
|
path => $with_ruby_path,
|
2012-02-12 23:42:29 +00:00
|
|
|
options => '--pre',
|
2012-01-31 01:28:30 +00:00
|
|
|
ensure => present
|
|
|
|
}
|
|
|
|
|
|
|
|
bash_rc_d { $name:
|
|
|
|
ensure => present,
|
|
|
|
path => $base::local_path,
|
|
|
|
require => Build_and_install[$name]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|