mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
81dfe21a98
This takes 3 anonymous Class.new w/ no superclasses, no documentation, and no obvious clue as to what anything is and drops it down to 2 Class.new w/ superclasses, documents what it can, and makes it much more clear what is going on. (yet, still not clear) It also actually uses LibraryEvalContext. Having names is important. Probably more important than any of the rest of this diff. One extra thing this adds is Module.find_class_instance_variable and hooks it up to Resource.__resource_registry. This allows it to find a class-level registry regardless of whether it was hidden in an anonymous superclass or not. Signed-off-by: Ryan Davis <zenspider@chef.io> |
||
---|---|---|
.. | ||
bundles | ||
inspec | ||
matchers | ||
plugins | ||
resource_support | ||
resources | ||
source_readers | ||
inspec.rb |