summaryrefslogtreecommitdiff
path: root/chef-config/lib/chef-config/windows.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/lib/chef-config/windows.rb')
-rw-r--r--chef-config/lib/chef-config/windows.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/chef-config/lib/chef-config/windows.rb b/chef-config/lib/chef-config/windows.rb
index 9c606110a4..411d9d3bf7 100644
--- a/chef-config/lib/chef-config/windows.rb
+++ b/chef-config/lib/chef-config/windows.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2015-2016, Chef Software, Inc.
+# Copyright:: Copyright 2015-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,14 +15,10 @@
# limitations under the License.
#
-module ChefConfig
+require 'chef-helpers'
+module ChefConfig
def self.windows?
- if RUBY_PLATFORM =~ /mswin|mingw|windows/
- true
- else
- false
- end
+ ChefHelpers.windows?
end
-
end