You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows platforms, :chef does not resolve to the correct gem_binary location causing InSpec to fail to find gems installed to Chef Omnibus embedded Ruby.
InSpec and Platform Version
1.19.1
Windows 7 x64
Replication Case
describe gem('chef-vault', :chef) do
it { should be_installed }
end
fails; however this works:
describe gem('chef-vault', 'C:\opscode\chef\embedded\bin\gem.cmd') do
it { should be_installed }
end
Description
On Windows platforms,
:chef
does not resolve to the correctgem_binary
location causing InSpec to fail to find gems installed to Chef Omnibus embedded Ruby.InSpec and Platform Version
1.19.1
Windows 7 x64
Replication Case
fails; however this works:
Possible Solutions
Perhaps https://github.com/chef/inspec/blob/master/lib/resources/gem.rb#L26 just needs
.cmd
appended?@nvwls Thoughts?
The text was updated successfully, but these errors were encountered: