mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
3c3d711dfd
In some instances, when running inspec shell, you dont get any resources inside of it. i.e. `inspec shell` and then `os` will lead to ```ruby NameError: undefined local variable or method `os' for from (pry):1:in `add_content' ``` This is because of instance_eval loading withing the given source/line information and not attaching to the profile context which actually has all the resources. Fix it by making sure that inspec shell always attaches to the profile context with resources by providing nil for source and line information. |
||
---|---|---|
.. | ||
bundles | ||
fetchers | ||
inspec | ||
matchers | ||
resources | ||
source_readers | ||
utils | ||
inspec.rb |