summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-05-03 16:04:48 -0700
committerdanielsdeleo <dan@opscode.com>2013-05-03 16:04:48 -0700
commit2322b70112e355235b7ea375dd949c64bae3bcc8 (patch)
tree4ca545a766976bcb11d60b788aedd5045697eb72
parent3b373784b805b719c1a8821cbd831d66794347b3 (diff)
downloadchef-2322b70112e355235b7ea375dd949c64bae3bcc8.tar.gz
[CHEF-4157] remove all implementation from chef/platform
-rw-r--r--lib/chef/platform.rb21
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