puppet-standalone-mashup/shared/additional-modules/ruby/manifests/init.pp

18 lines
410 B
ObjectPascal
Raw Normal View History

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",
2012-04-25 22:14:41 +00:00
configure => "--disable-install-doc"
}
2012-05-01 17:31:36 +00:00
gem { [ 'bundler', 'penchant' ]:
require => Build_and_install[$name],
path => $with_ruby_path,
ensure => present
}
}