diff options
-rw-r--r-- | lib/chef/platform.rb | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb index 4049219897..8f494731ab 100644 --- a/lib/chef/platform.rb +++ b/lib/chef/platform.rb @@ -22,25 +22,8 @@ require 'chef/platform/query_helpers' class Chef class Platform - - class << self - def windows? - if RUBY_PLATFORM =~ /mswin|mingw|windows/ - true - else - false - end - end - - def windows_server_2003? - return false unless windows? - - require 'ruby-wmi' - - host = WMI::Win32_OperatingSystem.find(:first) - (host.version && host.version.start_with?("5.2")) - end - end + # Functionality for this class is defined in chef/platform/provider_mapping + # and chef/platform/query_helpers end end |