-
-
Save alappe/84ed444400e741c70877 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> default: NameError | |
==> default: --------- | |
==> default: undefined method `log_deprecation' for class `Class' | |
==> default: | |
==> default: Cookbook Trace: | |
==> default: --------------- | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb:6:in `method' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb:6:in `log_deprecation' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/ark/resources/default.rb:26:in `initialize' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/nodejs/recipes/nodejs_from_binary.rb:53:in `from_file' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/nodejs/recipes/install.rb:21:in `from_file' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/nodejs/recipes/default.rb:21:in `from_file' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/falcon/recipes/nodejs.rb:1:in `from_file' | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/falcon/recipes/default.rb:22:in `from_file' | |
==> default: | |
==> default: Relevant File Content: | |
==> default: ---------------------- | |
==> default: /tmp/vagrant-chef/dd7603739c3a0103c203de38526fcf58/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb: | |
==> default: | |
==> default: 1: class Chef | |
==> default: 2: NOT_PASSED = Object.new if !defined?(NOT_PASSED) | |
==> default: 3: # Earlier versions of Chef didn't have this message | |
==> default: 4: module ChefCompatDeprecation | |
==> default: 5: def log_deprecation(message, location=nil) | |
==> default: 6>> if superclass.method(:log_deprecation).owner != ChefCompatDeprecation | |
==> default: 7: if !location | |
==> default: 8: # Pick the first caller that is *not* part of the Chef or ChefCompat gem, | |
==> default: 9: # that's the thing the user wrote. | |
==> default: 10: chef_compat_gem_path = File.expand_path("../../..", __FILE__) | |
==> default: 11: chef_gem_path = File.expand_path("../..",::Chef::Resource.instance_method(:initialize).source_location[0]) | |
==> default: 12: caller(0..10).each do |c| | |
==> default: 13: if !c.start_with?(chef_gem_path) && !c.start_with?(chef_compat_gem_path) | |
==> default: 14: location = c | |
==> default: 15: break | |
==> default: | |
==> default: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment