summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/windows_env_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/windows_env_helper.rb')
-rw-r--r--lib/chef/mixin/windows_env_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/mixin/windows_env_helper.rb b/lib/chef/mixin/windows_env_helper.rb
index 610c0cd075..756ecd25e7 100644
--- a/lib/chef/mixin/windows_env_helper.rb
+++ b/lib/chef/mixin/windows_env_helper.rb
@@ -19,16 +19,16 @@
require "chef/exceptions"
require "chef/mixin/wide_string"
require "chef/platform/query_helpers"
-require "chef/win32/error" if Chef::Platform.windows?
-require "chef/win32/api/system" if Chef::Platform.windows?
-require "chef/win32/api/unicode" if Chef::Platform.windows?
+require "chef/win32/error" if ChefHelpers.windows?
+require "chef/win32/api/system" if ChefHelpers.windows?
+require "chef/win32/api/unicode" if ChefHelpers.windows?
class Chef
module Mixin
module WindowsEnvHelper
include Chef::Mixin::WideString
- if Chef::Platform.windows?
+ if ChefHelpers.windows?
include Chef::ReservedNames::Win32::API::System
end