lib/chef/win32/version.rb in chef-0.10.10 vs lib/chef/win32/version.rb in chef-10.12.0.rc.1

- old
+ new

@@ -18,14 +18,14 @@ require 'chef/win32/api' require 'chef/win32/api/system' class Chef - module Win32 + module ReservedNames::Win32 class Version - include Chef::Win32::API::Macros - include Chef::Win32::API::System + include Chef::ReservedNames::Win32::API::Macros + include Chef::ReservedNames::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 @@ -97,10 +97,10 @@ def get_version_ex lp_version_info = OSVERSIONINFOEX.new lp_version_info[:dw_os_version_info_size] = OSVERSIONINFOEX.size unless GetVersionExW(lp_version_info) - Chef::Win32::Error.raise! + Chef::ReservedNames::Win32::Error.raise! end lp_version_info end def get_product_info(major, minor, sp_major, sp_minor)