Permalink
Browse files

add links to MSDN documentation on determining Windows version to com…

…ments.
  • Loading branch information...
1 parent 9034c3f commit f0907b96356feae4531370f6e8c3963d0c6eeb67 @schisamo schisamo committed Dec 9, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 chef/lib/chef/win32/version.rb
@@ -27,6 +27,10 @@ class Version
include Chef::Win32::API::System
+ # Ruby implementation of
+ # http://msdn.microsoft.com/en-us/library/ms724833(v=vs.85).aspx
+ # http://msdn.microsoft.com/en-us/library/ms724358(v=vs.85).aspx
+
WIN_VERSIONS = {
"Windows 7" => {:major => 6, :minor => 1, :callable => lambda{ @product_type == VER_NT_WORKSTATION }},
"Windows Server 2008 R2" => {:major => 6, :minor => 1, :callable => lambda{ @product_type != VER_NT_WORKSTATION }},

0 comments on commit f0907b9

Please sign in to comment.