mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Previously, libraries were loaded by instance_eval'ing them against the same execution context used for control files. All resources were registered against a single global registry when the `name` dsl method was invoked. To obtain seperation of resources, we would mutate the instance variable holding the globale registry and then change it back at the end. Now, we instance_eval library files inside an anonymous class. This class has its own version of `Inspec.resource` that returns another class with the resource DSL method and the profile-specific resource registry. |
||
---|---|---|
.. | ||
cookbooks/os_prepare | ||
functional | ||
integration/default | ||
resource | ||
unit | ||
docker_run.rb | ||
docker_test.rb | ||
helper.rb | ||
test-extra.yaml | ||
test.yaml |