summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-05-03 07:14:19 -0700
committersersut <serdar@opscode.com>2014-05-30 13:05:48 -0700
commitefdd050a0b9933a9d5140e70ec5c388b72070c6e (patch)
tree7824879fdfee3afcd29d2c9a5ab98b23b5e70e74
parentbdabeb9fbd9df85e8dd84c1a81ffeded1eedbe82 (diff)
downloadchef-efdd050a0b9933a9d5140e70ec5c388b72070c6e.tar.gz
Move Windows-only deps to Windows only code path
-rw-r--r--lib/chef/platform/query_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/platform/query_helpers.rb b/lib/chef/platform/query_helpers.rb
index e8562233ab..1a1feeb91f 100644
--- a/lib/chef/platform/query_helpers.rb
+++ b/lib/chef/platform/query_helpers.rb
@@ -16,8 +16,6 @@
# limitations under the License.
#
-require 'chef/win32/wmi'
-
class Chef
class Platform
@@ -34,6 +32,8 @@ class Chef
return false unless windows?
require 'wmi-lite/wmi'
+ require 'chef/win32/wmi'
+
# CHEF-4888: Work around ruby #2618, expected to be fixed in Ruby 2.1.0
# https://github.com/ruby/ruby/commit/588504b20f5cc880ad51827b93e571e32446e5db
# https://github.com/ruby/ruby/commit/27ed294c7134c0de582007af3c915a635a6506cd