Skip to content

Instantly share code, notes, and snippets.

@eherot
Created July 3, 2013 14:51
Show Gist options
  • Save eherot/5918775 to your computer and use it in GitHub Desktop.
Save eherot/5918775 to your computer and use it in GitHub Desktop.
can't load gem from inside library during build
recipes/default.rb:
g = gem_package "fog" do
action :nothing
end
g.run_action(:install)
require 'fog'
The error:
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/ec2-dns-server/libraries/Ec2DnsServer.rb
================================================================================
LoadError
---------
cannot load such file -- fog
@ganesanuniversum
Copy link

Same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment