diff options
author | danielsdeleo <dan@opscode.com> | 2013-05-03 16:04:48 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-05-03 16:04:48 -0700 |
commit | 2322b70112e355235b7ea375dd949c64bae3bcc8 (patch) | |
tree | 4ca545a766976bcb11d60b788aedd5045697eb72 /lib/chef/platform.rb | |
parent | 3b373784b805b719c1a8821cbd831d66794347b3 (diff) | |
download | chef-2322b70112e355235b7ea375dd949c64bae3bcc8.tar.gz |
[CHEF-4157] remove all implementation from chef/platform
Diffstat (limited to 'lib/chef/platform.rb')
-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 |