summaryrefslogtreecommitdiff
path: root/lib/chef/dsl
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-28 16:06:46 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-28 16:06:46 -0800
commite9bc7871e519285cd1f5a82837cc5d2ff6c7af8b (patch)
tree863de03f238762e9e5676824f6b1aa85d799d407 /lib/chef/dsl
parent7fa565737fb3cc984ad686266bbe3fec30312510 (diff)
downloadchef-e9bc7871e519285cd1f5a82837cc5d2ff6c7af8b.tar.gz
Deprecate the older_than_win_2012_or_8? helperolder_than_win_2012_or_8
Within Chef this is only used in the windows_feature_powershell resource which I've cleaned up. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r--lib/chef/dsl/platform_introspection.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/dsl/platform_introspection.rb b/lib/chef/dsl/platform_introspection.rb
index 8cb625d9c9..9ce3aa3513 100644
--- a/lib/chef/dsl/platform_introspection.rb
+++ b/lib/chef/dsl/platform_introspection.rb
@@ -248,6 +248,8 @@ class Chef
end
# a simple helper to determine if we're on a windows release pre-2012 / 8
+ #
+ # @deprecated Windows releases before Windows 2012 and 8 are no longer supported
# @return [Boolean] Is the system older than Windows 8 / 2012
def older_than_win_2012_or_8?(node = run_context.nil? ? nil : run_context.node)
node["platform_version"].to_f < 6.2
@@ -256,7 +258,6 @@ class Chef
# ^^^^^^ NOTE: PLEASE DO NOT CONTINUE TO ADD THESE KINDS OF PLATFORM_VERSION APIS WITHOUT ^^^^^^^
# ^^^^^^ GOING THROUGH THE DESIGN REVIEW PROCESS AND ADDRESS THE EXISTING CHEF-SUGAR ONES ^^^^^^^
# ^^^^^^ DO "THE HARD RIGHT THING" AND ADDRESS THE BROADER PROBLEM AND FIX IT ALL. ^^^^^^^
-
end
end
end