You can use Ohai's node['platform_version']
version to determine the version,
or use Windows Helpers (https://docs.chef.io/windows.html#helpers) to
determine platform information. I would recommend using Ohai vs Windows Helpers
because helpers will cause rspec testing issues. If you do use helpers, wrap the
call in a library method so that it is easy to mock the method call and avoid
issues testing on another platform beside windows.
Created
December 7, 2015 16:16
-
-
Save dhoer/af0391e0895f86e1bef2 to your computer and use it in GitHub Desktop.
Windows development with Chef
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment