2012-05-03 13:30:32 +00:00
|
|
|
class ruby($version, $configure = "--disable-install-doc", $build_path = '') {
|
2012-01-31 01:28:30 +00:00
|
|
|
$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",
|
2012-05-03 13:30:32 +00:00
|
|
|
configure => $configure,
|
|
|
|
path => "${base::path}:${path}:${build_path}"
|
2012-01-31 01:28:30 +00:00
|
|
|
}
|
|
|
|
|
2012-05-01 17:31:36 +00:00
|
|
|
gem { [ 'bundler', 'penchant' ]:
|
2012-01-31 01:28:30 +00:00
|
|
|
require => Build_and_install[$name],
|
|
|
|
path => $with_ruby_path,
|
|
|
|
ensure => present
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|