Skip to content

Instantly share code, notes, and snippets.

@brettcave
Last active December 20, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettcave/6112224 to your computer and use it in GitHub Desktop.
Save brettcave/6112224 to your computer and use it in GitHub Desktop.
chef_gem strangeness
g = chef_gem "somegem" do
action :nothing
end
g.run_action(:install)
require 'somegem'
# Works
####
g = chef_gem "somegem" do
options "--no-ri --no-rdoc"
action :nothing
end
g.run_action(:install)
require 'somegem'
# Fails - moans about not being able to find some gem, after running chef_gem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment