Skip to content

Instantly share code, notes, and snippets.

@brettcave
Last active December 20, 2015 08:49
Show Gist options
  • Save brettcave/6103434 to your computer and use it in GitHub Desktop.
Save brettcave/6103434 to your computer and use it in GitHub Desktop.
How to install a gem with dependencies.
include_recipe "apt"
package_list = ["ruby1.9.1-dev","make", " libxml2-dev" ]
package_list.each do |pkg|
r = package pkg do
action :install
## action :nothing
end
## r.runaction(:install)
end
chef_gem "some_gem" do
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment