mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +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. |
||
---|---|---|
.. | ||
fetchers | ||
mock | ||
plugins | ||
resources | ||
source_readers | ||
utils | ||
control_test.rb | ||
fetchers.rb | ||
metadata_test.rb | ||
plugin_test.rb | ||
profile_context_test.rb | ||
profile_test.rb | ||
source_reader_test.rb |