RiotGamesCookbooks / rbenv-cookbook

Installs and configures rbenv
http://community.opscode.com/cookbooks/rbenv
Apache License 2.0
137 stars 109 forks source link

[Question] Is gem_package supposed to still work? #72

Closed allaire closed 10 years ago

allaire commented 11 years ago

Hi, I installed ruby 2.0 globally using the rbenv-cookbook. My question is, in my other recipes, should I change all my gem_package to rbenv_gem or both should work?

rossjourdain commented 10 years ago

+1 I'm having trouble with the passenger_apache2 cookbook that is using gem_package and doesn't manage to find the Ruby I just installed...

reset commented 10 years ago

@allaire rbenv_gem does the job of installing the gem for that specific Ruby managed by rbenv. You would need to use that resource if you wanted the gem available to you there.

The gem_package resource does the job of installing the gem for your system Ruby. In many cases this will be the Ruby that is currently executing Chef.

The chef_gem resource does the job of installing a gem for the Ruby currently executing Chef and it does so at compile time so it is available to your recipes without pain.

Please close if this satisfies your question :)

allaire commented 10 years ago

Good thanks.