Displaying 1 result from an estimated 1 matches for "v_rubygem_path".
2012 Jun 27
6
Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82
...;:
path => ''/path/to/agent/local/gem/repo'',
}
ruby::gemInstall is a define, and it has some logic to get around some
problems I had when trying to install gems via a package resource, the
source is below.
define ruby::gemInstall (
gem = $title,
path = hiera(''v_rubygem_path'')
) {
$gemName = regsubst($gem, ''([^-]+)-.*\.gem'', ''\1'')
exec {"/usr/local/bin/gem install ${gem}":
cwd => $path,
unless => "gem list -i ${gemName}",
require => Package[''rubygems''];...