Gems not loading


I wonder if someone would mind pointing out what is probably the obvious? I am unable to get gems to load in chefdk / local run.

Output below, it says the gem is installed and up to date but cannot load it;

Synchronizing Cookbooks:

  • redfish_testbook (0.1.0)
    Installing Cookbook Gems:

Running handlers:
[2019-07-10T19:29:59+01:00] ERROR: Running exception handlers
Running handlers complete
[2019-07-10T19:29:59+01:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 25 seconds
[2019-07-10T19:29:59+01:00] FATAL: Stacktrace dumped to C:/Users/chefacct/.chef/local-mode-cache/cache/chef-stacktrace.out
[2019-07-10T19:29:59+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-07-10T19:29:59+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of bundle install ----
STDERR: internal:gem_prelude:2:in require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:2:ininternal:gem_prelude'
---- End output of bundle install ----
Ran bundle install returned 1

Any suggestions welcome.


Not sure if this helps at all, but as an update to my issue;
If i run chef gem install at the cli for the redfish_client, it comes back as completed (inline with the receipe execution saying it installed), but that gems would not execute as the directory
was not in my path...... but it is. Running chef env and a manual double check of the path env confirms that.

Any suggestions welcome. Thanks.