Hi,

I don't really know how this even compiles, but here's what I think
needs changin.

Before you go on with this - do you have pressing reasons for not using
package { "gemname": provider => "gem" } ?

On 06/27/2012 10:14 PM, llow...@oreillyauto.com wrote:
>  define ruby::gemInstall (
>   r_gem = $name,
   $r_gem = $name,
>   r_path = hiera('v_rubygem_path')
   $r_path = ...
>   ){
> 
>   r_gemName = regsubst($r_gem, '([^-]+)-.*\.gem', '\1')
   $r_gemName = ...
> 
>   exec { "gem_install_${r_gemName}":
>     command => "/usr/local/bin/gem install ${r_gemName}",
>     cwd     => $r_path,
>     unless  => "gem list -i ${r_gemName}",
>     require => Package['rubygems'],
>   }
> }

HTH,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to