summaryrefslogtreecommitdiff
path: root/lib/chef/win32
diff options
context:
space:
mode:
authorChirag Jog <chirag.jog@gmail.com>2013-03-11 19:40:07 +0530
committeradamedx <adamed@opscode.com>2013-03-29 09:35:46 -0700
commit4deb3555e8c15bd3320b029b2378a326867abc50 (patch)
tree9697dd6b5018839e64f5c0eea3237ed735655470 /lib/chef/win32
parenteca7dbdf852d75c176593b66d5dcaf0fe517a87a (diff)
downloadchef-4deb3555e8c15bd3320b029b2378a326867abc50.tar.gz
Support Win8/2k12 versions
Diffstat (limited to 'lib/chef/win32')
-rw-r--r--lib/chef/win32/version.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/win32/version.rb b/lib/chef/win32/version.rb
index 004fcad5ad..c30b59b1d7 100644
--- a/lib/chef/win32/version.rb
+++ b/lib/chef/win32/version.rb
@@ -30,6 +30,8 @@ class Chef
# http://msdn.microsoft.com/en-us/library/ms724358(v=vs.85).aspx
WIN_VERSIONS = {
+ "Windows 8" => {:major => 6, :minor => 2, :callable => lambda{ @product_type == VER_NT_WORKSTATION }},
+ "Windows Server 2012" => {:major => 6, :minor => 2, :callable => lambda{ @product_type != VER_NT_WORKSTATION }},
"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 }},
"Windows Server 2008" => {:major => 6, :minor => 0, :callable => lambda{ @product_type != VER_NT_WORKSTATION }},