Using gems with Chef

1 · Seth Vargo · Dec. 21, 2013, midnight
Installing gems with Chef is relatively painless. Most of the time, you can use the gem_package resource, which behaves very similarly to the native package resource: gem_package 'httparty' You can even specify the gem version to install: gem_package 'httparty' do version '0.12.0' end You may have also seen the chef_gem resource. What's the difference? The chef_gem and gem_package resources are both used to install Ruby gems. For any machine on which the chef-client is installed, there are...