Create a gist now

Instantly share code, notes, and snippets.

@notnmeyer /blah.md Secret
Last active Oct 6, 2015

Embed
What would you like to do?
module SomeModule
  class SomeClass
    require "chef/resource/chef_gem"
    Chef::Resource::ChefGem.new("fog").run_action(:install)
    require "fog"
  end
end

will produce:

NoMethodError
-------------
undefined method `events' for nil:NilClass

...

Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/gem-dep/libraries/test.rb:
1: module SomeModule
2: class SomeClass
3: require "chef/resource/chef_gem"
4>> Chef::Resource::ChefGem.new("fog").run_action(:install)
5: require "fog"
6: end
7: end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment