Skip to content

Instantly share code, notes, and snippets.

@lewg
Created June 29, 2012 14:51
Show Gist options
  • Save lewg/3018413 to your computer and use it in GitHub Desktop.
Save lewg/3018413 to your computer and use it in GitHub Desktop.
Chef gem dependency workaround
# Install Build Essentials immediately to build the ruby-shadow gem
gem_prereqs = ["build-essential"]
gem_prereqs.each do |pkg|
p = package "#{pkg}" do
action :nothing
end
p.run_action(:install)
end
# Install the Ruby Shadow Library into chef
chef_gem "ruby-shadow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment