-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using provides with LWRPs fails #2552
Comments
I'm trying to understand the cause of this - when in |
self.name is actually referring to this thingy: https://github.com/opscode/chef/pull/2554/files#diff-88e9968725547cea59d31e1cde26d2b9R47, which is initially [6] pry(main)> a = Class.new(Rugged::Blame)
=> #<Class:0x00000001bcd288>
[7] pry(main)> a.name
=> nil
[8] pry(main)> Rugged::Blame.const_set("Foo", a)
=> Rugged::Blame::Foo
[9] pry(main)> a.name
=> "Rugged::Blame::Foo" |
From Metaprogramming Ruby 2:
|
Modify
spec/data/lwrp/resource/bar.rb
to boWhen it is loaded:
The text was updated successfully, but these errors were encountered: